ForgotPasswordFragment.smali

.class public Lhurriyet/mobil/android/hurriyet/fragments/ForgotPasswordFragment;
.super Lhurriyet/mobil/android/hurriyet/fragments/BaseFragment;
.source "ForgotPasswordFragment.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# static fields
.field public static TAG:Ljava/lang/String; = "ForgotPasswordFragment"


# instance fields
.field private btnResetPassword:Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;

.field private cancel:Landroid/widget/ImageView;

.field private etEmail:Lcom/rey/material/widget/EditText;

.field private txtCreateNewAccount:Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;


# direct methods
.method static constructor <clinit>()V
    .registers 0

    return-void
.end method

.method public constructor <init>()V
    .registers 1

    .line 25
    invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/fragments/BaseFragment;-><init>()V

    return-void
.end method

.method private initViews(Landroid/view/View;)V
    .registers 3

    const v0, 0x7f0901c2

    .line 51
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/ForgotPasswordFragment;->cancel:Landroid/widget/ImageView;

    const v0, 0x7f090149

    .line 52
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/rey/material/widget/EditText;

    iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/ForgotPasswordFragment;->etEmail:Lcom/rey/material/widget/EditText;

    const v0, 0x7f090088

    .line 53
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;

    iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/ForgotPasswordFragment;->btnResetPassword:Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;

    const v0, 0x7f0903ec

    .line 54
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;

    iput-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/ForgotPasswordFragment;->txtCreateNewAccount:Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;

    .line 56
    invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/fragments/ForgotPasswordFragment;->setClickListeners()V

    return-void
.end method

.method public static newInstance()Lhurriyet/mobil/android/hurriyet/fragments/ForgotPasswordFragment;
    .registers 1

    .line 35
    new-instance v0, Lhurriyet/mobil/android/hurriyet/fragments/ForgotPasswordFragment;

    invoke-direct {v0}, Lhurriyet/mobil/android/hurriyet/fragments/ForgotPasswordFragment;-><init>()V

    return-object v0
.end method

.method private resetPasswordOperations()V
    .registers 3

    .line 66
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/ForgotPasswordFragment;->etEmail:Lcom/rey/material/widget/EditText;

    invoke-virtual {v0}, Lcom/rey/material/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    .line 67
    new-instance v1, Lhurriyet/mobil/android/hurriyet/fragments/ForgotPasswordFragment$1;

    invoke-direct {v1, p0}, Lhurriyet/mobil/android/hurriyet/fragments/ForgotPasswordFragment$1;-><init>(Lhurriyet/mobil/android/hurriyet/fragments/ForgotPasswordFragment;)V

    invoke-static {v0, v1}, Ltr/com/hurriyet/androidsdk/HurriyetSDK;->resetPassword(Ljava/lang/String;Ltr/com/hurriyet/androidsdk/callback/ResetPasswordCallback;)Lretrofit2/Call;

    return-void
.end method

.method private setClickListeners()V
    .registers 2

    .line 60
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/ForgotPasswordFragment;->cancel:Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 61
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/ForgotPasswordFragment;->txtCreateNewAccount:Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;

    invoke-virtual {v0, p0}, Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 62
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/ForgotPasswordFragment;->btnResetPassword:Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;

    invoke-virtual {v0, p0}, Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method


# virtual methods
.method protected getConfigurationsForFragment(Lcom/appcore/configuration/ConfigurationsForFragment;)V
    .registers 3

    .line 40
    invoke-super {p0, p1}, Lhurriyet/mobil/android/hurriyet/fragments/BaseFragment;->getConfigurationsForFragment(Lcom/appcore/configuration/ConfigurationsForFragment;)V

    const v0, 0x7f0c0060

    .line 41
    iput v0, p1, Lcom/appcore/configuration/ConfigurationsForFragment;->layoutID:I

    return-void
.end method

.method public isTabVisible()Z
    .registers 2

    const/4 v0, 0x0

    return v0
.end method

.method public onClick(Landroid/view/View;)V
    .registers 3

    .line 90
    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result p1

    const v0, 0x7f090088

    if-eq p1, v0, :cond_22

    const v0, 0x7f0901c2

    if-eq p1, v0, :cond_1a

    const v0, 0x7f0903ec

    if-eq p1, v0, :cond_14

    goto :goto_25

    .line 98
    :cond_14
    iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/ForgotPasswordFragment;->pageController:Lhurriyet/mobil/android/hurriyet/HurriyetPageController;

    invoke-interface {p1}, Lhurriyet/mobil/android/hurriyet/HurriyetPageController;->launchRegisterFragment()V

    goto :goto_25

    .line 92
    :cond_1a
    invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/fragments/ForgotPasswordFragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object p1

    invoke-virtual {p1}, Landroidx/fragment/app/FragmentActivity;->onBackPressed()V

    goto :goto_25

    .line 95
    :cond_22
    invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/fragments/ForgotPasswordFragment;->resetPasswordOperations()V

    :goto_25
    return-void
.end method

.method public onResume()V
    .registers 3

    .line 111
    invoke-super {p0}, Lhurriyet/mobil/android/hurriyet/fragments/BaseFragment;->onResume()V

    .line 113
    new-instance v0, Ltr/com/hurriyet/androidsdk/response/content/DataLayer;

    invoke-direct {v0}, Ltr/com/hurriyet/androidsdk/response/content/DataLayer;-><init>()V

    const v1, 0x7f100113

    .line 114
    invoke-static {v1}, Lhurriyet/mobil/android/hurriyet/HApp;->getStrWithID(I)Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Ltr/com/hurriyet/androidsdk/response/content/DataLayer;->trackingUrl:Ljava/lang/String;

    .line 115
    invoke-static {v0}, Lhurriyet/mobil/android/hurriyet/utils/HurriyetAnalytics;->logScreen(Ltr/com/hurriyet/androidsdk/response/content/DataLayer;)V

    return-void
.end method

.method public onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V
    .registers 3

    .line 46
    invoke-super {p0, p1, p2}, Lhurriyet/mobil/android/hurriyet/fragments/BaseFragment;->onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V

    .line 47
    invoke-direct {p0, p1}, Lhurriyet/mobil/android/hurriyet/fragments/ForgotPasswordFragment;->initViews(Landroid/view/View;)V

    return-void
.end method