.class public Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;
.super Lcom/moji/mjweather/me/activity/BaseAccountInputActivity;
.source "InputSnsCodeActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;
.implements Lcom/moji/mjweather/me/view/IInputSnsCodeView;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/moji/mjweather/me/activity/InputSnsCodeActivity$RemainCountDownTimer;
    }
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/moji/mjweather/me/activity/BaseAccountInputActivity<",
        "Lcom/moji/mjweather/me/presenter/InputSnsCodePresenter;",
        ">;",
        "Landroid/view/View$OnClickListener;",
        "Lcom/moji/mjweather/me/view/IInputSnsCodeView;"
    }
.end annotation


# static fields
.field public static final PENDING_SOURCE_TYPE_JS:I = 0x8

.field public static final PENDING_SOURCE_TYPE_NATIVE:I = 0x7

.field public static final PENDING_TYPE_FOR_BIND_PHONE:I = 0x3

.field public static final PENDING_TYPE_FOR_FIND_PASS:I = 0x2

.field public static final PENDING_TYPE_FOR_MANAGER_ACCOUNT:I = 0x5

.field public static final PENDING_TYPE_FOR_SNS_LOGIN:I = 0x1

.field public static final PENDING_TYPE_FOR_UPDATE_BIND_PHONE:I = 0x4


# instance fields
.field private a:Landroid/widget/TextView;

.field private b:Landroid/widget/TextView;

.field private c:Landroid/widget/TextView;

.field private i:Landroid/widget/EditText;

.field private j:Landroid/widget/ImageView;

.field private k:I

.field private l:Lcom/moji/mjweather/me/activity/InputSnsCodeActivity$RemainCountDownTimer;

.field private m:Landroid/widget/TextView;


# direct methods
.method public constructor <init>()V
    .locals 0

    .line 43
    invoke-direct {p0}, Lcom/moji/mjweather/me/activity/BaseAccountInputActivity;-><init>()V

    return-void
.end method

.method static synthetic a(Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;)Landroid/widget/ImageView;
    .locals 0

    .line 43
    iget-object p0, p0, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->j:Landroid/widget/ImageView;

    return-object p0
.end method

.method static synthetic b(Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;)Landroid/widget/TextView;
    .locals 0

    .line 43
    iget-object p0, p0, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->c:Landroid/widget/TextView;

    return-object p0
.end method

.method static synthetic c(Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;)Landroid/widget/TextView;
    .locals 0

    .line 43
    iget-object p0, p0, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->b:Landroid/widget/TextView;

    return-object p0
.end method

.method private e()V
    .locals 1

    .line 161
    iget-object v0, p0, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->l:Lcom/moji/mjweather/me/activity/InputSnsCodeActivity$RemainCountDownTimer;

    invoke-virtual {v0}, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity$RemainCountDownTimer;->cancel()V

    .line 162
    iget-object v0, p0, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->l:Lcom/moji/mjweather/me/activity/InputSnsCodeActivity$RemainCountDownTimer;

    invoke-virtual {v0}, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity$RemainCountDownTimer;->start()Landroid/os/CountDownTimer;

    return-void
.end method

.method private k()V
    .locals 2

    .line 302
    iget-object v0, p0, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->m:Landroid/widget/TextView;

    const-string v1, ""

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    return-void
.end method


# virtual methods
.method protected a()I
    .locals 3

    .line 103
    invoke-virtual {p0}, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string v1, "pending_action_type"

    const/4 v2, 0x1

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v0

    iput v0, p0, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->k:I

    .line 104
    iget v0, p0, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->k:I

    const/4 v1, 0x2

    if-ne v0, v1, :cond_0

    const v0, 0x7f0b010a

    return v0

    :cond_0
    const v0, 0x7f0b0006

    return v0
.end method

.method protected addListener()V
    .locals 1

    .line 94
    iget-object v0, p0, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->b:Landroid/widget/TextView;

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

    .line 95
    iget-object v0, p0, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->j:Landroid/widget/ImageView;

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

    .line 97
    iget-object v0, p0, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->c:Landroid/widget/TextView;

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

    return-void
.end method

.method protected b()Lcom/moji/mjweather/me/presenter/InputSnsCodePresenter;
    .locals 1

    .line 89
    new-instance v0, Lcom/moji/mjweather/me/presenter/InputSnsCodePresenter;

    invoke-direct {v0, p0}, Lcom/moji/mjweather/me/presenter/InputSnsCodePresenter;-><init>(Lcom/moji/mjweather/me/view/IInputSnsCodeView;)V

    return-object v0
.end method

.method public bindPhoneSuccess(Ljava/lang/String;)V
    .locals 4

    .line 308
    new-instance v0, Lcom/moji/bus/event/BusEventCommon$BusEventStringData;

    invoke-virtual {p0}, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->m()Lcom/moji/mvpframe/BasePresenter;

    move-result-object v1

    check-cast v1, Lcom/moji/mjweather/me/presenter/InputSnsCodePresenter;

    invoke-virtual {p0}, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->getIntent()Landroid/content/Intent;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/moji/mjweather/me/presenter/InputSnsCodePresenter;->a(Landroid/content/Intent;)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/moji/bus/event/BusEventCommon$BusEventStringData;-><init>(Ljava/lang/String;)V

    .line 309
    invoke-static {}, Lcom/moji/bus/Bus;->a()Lcom/moji/bus/Bus;

    move-result-object v1

    const-string v2, "eventUpdateBindPhoneSuccess"

    new-instance v3, Lcom/moji/bus/event/BusEventCommon$BindPhoneSuccessEvent;

    invoke-direct {v3, v0}, Lcom/moji/bus/event/BusEventCommon$BindPhoneSuccessEvent;-><init>(Lcom/moji/bus/event/IBusEvent;)V

    invoke-virtual {v1, v2, v3}, Lcom/moji/bus/Bus;->a(Ljava/lang/String;Lcom/moji/bus/event/BusEventData;)V

    .line 310
    invoke-virtual {p0}, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string v1, "pending_source_type"

    const/4 v2, 0x7

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v0

    const/16 v1, 0x8

    if-eq v0, v1, :cond_0

    .line 311
    invoke-static {p0, p1}, Lcom/moji/mjweather/NavigationManager;->f(Landroid/content/Context;Ljava/lang/String;)V

    goto :goto_0

    .line 314
    :cond_0
    invoke-static {}, Lcom/moji/bus/Bus;->a()Lcom/moji/bus/Bus;

    move-result-object v0

    new-instance v1, Lcom/moji/webview/event/BindPhoneEvent;

    const/4 v2, 0x1

    invoke-direct {v1, v2, p1}, Lcom/moji/webview/event/BindPhoneEvent;-><init>(ILjava/lang/String;)V

    invoke-virtual {v0, v1}, Lcom/moji/bus/Bus;->c(Ljava/lang/Object;)V

    .line 316
    :goto_0
    invoke-virtual {p0}, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->finish()V

    return-void
.end method

.method public changeAccount(Lcom/moji/mjweather/event/ChangeAccountEvent;)V
    .locals 0
    .annotation runtime Lorg/greenrobot/eventbus/Subscribe;
        a = .enum Lorg/greenrobot/eventbus/ThreadMode;->MAIN:Lorg/greenrobot/eventbus/ThreadMode;
    .end annotation

    .line 392
    invoke-virtual {p0}, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->finish()V

    return-void
.end method

.method protected synthetic d()Lcom/moji/mvpframe/BasePresenter;
    .locals 1

    .line 43
    invoke-virtual {p0}, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->b()Lcom/moji/mjweather/me/presenter/InputSnsCodePresenter;

    move-result-object v0

    return-object v0
.end method

.method public dealRequestError(Lcom/moji/requestcore/MJException;)V
    .locals 0

    .line 228
    invoke-super {p0, p1}, Lcom/moji/mjweather/me/activity/BaseAccountInputActivity;->dealRequestError(Lcom/moji/requestcore/MJException;)V

    return-void
.end method

.method public dealResponseResult(Lcom/moji/requestcore/entity/IResult;Z)V
    .locals 1

    .line 235
    invoke-super {p0, p1, p2}, Lcom/moji/mjweather/me/activity/BaseAccountInputActivity;->dealResponseResult(Lcom/moji/requestcore/entity/IResult;Z)V

    .line 237
    iget-object p2, p0, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->m:Landroid/widget/TextView;

    const/4 v0, 0x0

    invoke-virtual {p2, v0}, Landroid/widget/TextView;->setVisibility(I)V

    .line 238
    iget-object p2, p0, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->m:Landroid/widget/TextView;

    invoke-virtual {p1}, Lcom/moji/requestcore/entity/IResult;->b()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p2, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 239
    iget-object p1, p0, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->a:Landroid/widget/TextView;

    const/4 p2, 0x4

    invoke-virtual {p1, p2}, Landroid/widget/TextView;->setVisibility(I)V

    return-void
.end method

.method public eventCancelFindPass(Lcom/moji/bus/event/BusEventCommon$CancelFindPassByMobile;)V
    .locals 0
    .annotation runtime Lorg/greenrobot/eventbus/Subscribe;
        a = .enum Lorg/greenrobot/eventbus/ThreadMode;->MAIN:Lorg/greenrobot/eventbus/ThreadMode;
    .end annotation

    .line 377
    invoke-virtual {p0}, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->finish()V

    return-void
.end method

.method public eventResetPassSuccess(Lcom/moji/bus/event/BusEventCommon$ResetPassSuccessEvent;)V
    .locals 0
    .annotation runtime Lorg/greenrobot/eventbus/Subscribe;
        a = .enum Lorg/greenrobot/eventbus/ThreadMode;->MAIN:Lorg/greenrobot/eventbus/ThreadMode;
    .end annotation

    .line 387
    invoke-virtual {p0}, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->finish()V

    return-void
.end method

.method public getUserInfoSuccess(Lcom/moji/http/ugc/bean/account/UserInfoEntity;I)V
    .locals 1

    .line 250
    invoke-virtual {p0}, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->m()Lcom/moji/mvpframe/BasePresenter;

    move-result-object v0

    check-cast v0, Lcom/moji/mjweather/me/presenter/InputSnsCodePresenter;

    invoke-virtual {v0, p1, p2}, Lcom/moji/mjweather/me/presenter/InputSnsCodePresenter;->a(Lcom/moji/http/ugc/bean/account/UserInfoEntity;I)V

    return-void
.end method

.method public getValidateCodeSuccess(Lcom/moji/requestcore/entity/MJBaseRespRc;)V
    .locals 0

    .line 217
    invoke-direct {p0}, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->e()V

    return-void
.end method

.method protected h()Z
    .locals 1

    const/4 v0, 0x1

    return v0
.end method

.method public onBackPressed()V
    .locals 2

    .line 348
    new-instance v0, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;

    invoke-direct {v0, p0}, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;-><init>(Landroid/content/Context;)V

    const v1, 0x7f0e0922

    .line 349
    invoke-virtual {v0, v1}, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;->a(I)Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;

    move-result-object v0

    const v1, 0x7f0e0673

    .line 350
    invoke-virtual {v0, v1}, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;->b(I)Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;

    move-result-object v0

    const v1, 0x7f0e012b

    .line 351
    invoke-virtual {v0, v1}, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;->d(I)Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;

    move-result-object v0

    const v1, 0x7f0e0022

    .line 352
    invoke-virtual {v0, v1}, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;->e(I)Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;

    move-result-object v0

    new-instance v1, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity$3;

    invoke-direct {v1, p0}, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity$3;-><init>(Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;)V

    .line 353
    invoke-virtual {v0, v1}, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;->a(Lcom/moji/dialog/control/MJDialogDefaultControl$SingleButtonCallback;)Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;

    move-result-object v0

    new-instance v1, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity$2;

    invoke-direct {v1, p0}, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity$2;-><init>(Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;)V

    .line 359
    invoke-virtual {v0, v1}, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;->b(Lcom/moji/dialog/control/MJDialogDefaultControl$SingleButtonCallback;)Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;

    move-result-object v0

    const/4 v1, 0x0

    .line 365
    invoke-virtual {v0, v1}, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;->c(Z)Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;

    move-result-object v0

    .line 366
    invoke-virtual {v0}, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;->a()Lcom/moji/dialog/MJDialog;

    move-result-object v0

    .line 367
    invoke-virtual {v0}, Lcom/moji/dialog/MJDialog;->show()V

    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 2

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

    move-result p1

    const v0, 0x7f09039c

    if-eq p1, v0, :cond_3

    const v0, 0x7f0909b0

    if-eq p1, v0, :cond_2

    const v0, 0x7f090b60

    if-eq p1, v0, :cond_0

    goto/16 :goto_0

    .line 170
    :cond_0
    iget-object p1, p0, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->b:Landroid/widget/TextView;

    invoke-virtual {p1}, Landroid/widget/TextView;->requestFocus()Z

    .line 171
    iget-object p1, p0, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->b:Landroid/widget/TextView;

    invoke-virtual {p1}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object p1

    invoke-interface {p1}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object p1

    const v0, 0x7f0e046f

    .line 172
    invoke-virtual {p0, v0}, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

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

    move-result p1

    if-nez p1, :cond_1

    return-void

    .line 175
    :cond_1
    invoke-virtual {p0}, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->m()Lcom/moji/mvpframe/BasePresenter;

    move-result-object p1

    check-cast p1, Lcom/moji/mjweather/me/presenter/InputSnsCodePresenter;

    invoke-virtual {p0}, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->m()Lcom/moji/mvpframe/BasePresenter;

    move-result-object v0

    check-cast v0, Lcom/moji/mjweather/me/presenter/InputSnsCodePresenter;

    invoke-virtual {p0}, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/moji/mjweather/me/presenter/InputSnsCodePresenter;->a(Landroid/content/Intent;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Lcom/moji/mjweather/me/presenter/InputSnsCodePresenter;->d(Ljava/lang/String;)V

    goto/16 :goto_0

    .line 178
    :cond_2
    invoke-direct {p0}, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->k()V

    .line 179
    iget p1, p0, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->k:I

    packed-switch p1, :pswitch_data_0

    goto/16 :goto_0

    .line 191
    :pswitch_0
    invoke-virtual {p0}, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->m()Lcom/moji/mvpframe/BasePresenter;

    move-result-object p1

    check-cast p1, Lcom/moji/mjweather/me/presenter/InputSnsCodePresenter;

    invoke-virtual {p0}, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->m()Lcom/moji/mvpframe/BasePresenter;

    move-result-object v0

    check-cast v0, Lcom/moji/mjweather/me/presenter/InputSnsCodePresenter;

    invoke-virtual {p0}, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/moji/mjweather/me/presenter/InputSnsCodePresenter;->a(Landroid/content/Intent;)Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->i:Landroid/widget/EditText;

    invoke-virtual {v1}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v1

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

    move-result-object v1

    invoke-virtual {p1, v0, v1}, Lcom/moji/mjweather/me/presenter/InputSnsCodePresenter;->b(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 188
    :pswitch_1
    invoke-virtual {p0}, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->m()Lcom/moji/mvpframe/BasePresenter;

    move-result-object p1

    check-cast p1, Lcom/moji/mjweather/me/presenter/InputSnsCodePresenter;

    invoke-virtual {p0}, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->m()Lcom/moji/mvpframe/BasePresenter;

    move-result-object v0

    check-cast v0, Lcom/moji/mjweather/me/presenter/InputSnsCodePresenter;

    invoke-virtual {p0}, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/moji/mjweather/me/presenter/InputSnsCodePresenter;->a(Landroid/content/Intent;)Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->i:Landroid/widget/EditText;

    invoke-virtual {v1}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v1

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

    move-result-object v1

    invoke-virtual {p1, v0, v1}, Lcom/moji/mjweather/me/presenter/InputSnsCodePresenter;->c(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 185
    :pswitch_2
    invoke-virtual {p0}, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->m()Lcom/moji/mvpframe/BasePresenter;

    move-result-object p1

    check-cast p1, Lcom/moji/mjweather/me/presenter/InputSnsCodePresenter;

    invoke-virtual {p0}, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->m()Lcom/moji/mvpframe/BasePresenter;

    move-result-object v0

    check-cast v0, Lcom/moji/mjweather/me/presenter/InputSnsCodePresenter;

    invoke-virtual {p0}, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/moji/mjweather/me/presenter/InputSnsCodePresenter;->a(Landroid/content/Intent;)Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->i:Landroid/widget/EditText;

    invoke-virtual {v1}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v1

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

    move-result-object v1

    invoke-virtual {p1, v0, v1}, Lcom/moji/mjweather/me/presenter/InputSnsCodePresenter;->b(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 182
    :pswitch_3
    invoke-virtual {p0}, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->m()Lcom/moji/mvpframe/BasePresenter;

    move-result-object p1

    check-cast p1, Lcom/moji/mjweather/me/presenter/InputSnsCodePresenter;

    invoke-virtual {p0}, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->m()Lcom/moji/mvpframe/BasePresenter;

    move-result-object v0

    check-cast v0, Lcom/moji/mjweather/me/presenter/InputSnsCodePresenter;

    invoke-virtual {p0}, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/moji/mjweather/me/presenter/InputSnsCodePresenter;->a(Landroid/content/Intent;)Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->i:Landroid/widget/EditText;

    invoke-virtual {v1}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v1

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

    move-result-object v1

    invoke-virtual {p1, v0, v1}, Lcom/moji/mjweather/me/presenter/InputSnsCodePresenter;->a(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 196
    :cond_3
    iget-object p1, p0, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->i:Landroid/widget/EditText;

    const-string v0, ""

    invoke-virtual {p1, v0}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    :goto_0
    return-void

    nop

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_3
        :pswitch_2
        :pswitch_1
        :pswitch_0
        :pswitch_3
    .end packed-switch
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 6

    .line 79
    invoke-super {p0, p1}, Lcom/moji/mjweather/me/activity/BaseAccountInputActivity;->onCreate(Landroid/os/Bundle;)V

    .line 80
    invoke-virtual {p0}, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->getIntent()Landroid/content/Intent;

    move-result-object p1

    const-string v0, "pending_action_type"

    const/4 v1, 0x1

    invoke-virtual {p1, v0, v1}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result p1

    iput p1, p0, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->k:I

    .line 83
    new-instance p1, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity$RemainCountDownTimer;

    const-wide/32 v2, 0xea60

    const-wide/16 v4, 0x3e8

    move-object v0, p1

    move-object v1, p0

    invoke-direct/range {v0 .. v5}, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity$RemainCountDownTimer;-><init>(Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;JJ)V

    iput-object p1, p0, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->l:Lcom/moji/mjweather/me/activity/InputSnsCodeActivity$RemainCountDownTimer;

    .line 84
    invoke-direct {p0}, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->e()V

    return-void
.end method

.method protected onDestroy()V
    .locals 1

    .line 397
    invoke-super {p0}, Lcom/moji/mjweather/me/activity/BaseAccountInputActivity;->onDestroy()V

    .line 398
    iget-object v0, p0, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->l:Lcom/moji/mjweather/me/activity/InputSnsCodeActivity$RemainCountDownTimer;

    if-eqz v0, :cond_0

    .line 399
    iget-object v0, p0, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->l:Lcom/moji/mjweather/me/activity/InputSnsCodeActivity$RemainCountDownTimer;

    invoke-virtual {v0}, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity$RemainCountDownTimer;->cancel()V

    :cond_0
    return-void
.end method

.method public onLoginFailed()V
    .locals 1

    .line 212
    invoke-virtual {p0}, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->m()Lcom/moji/mvpframe/BasePresenter;

    move-result-object v0

    check-cast v0, Lcom/moji/mjweather/me/presenter/InputSnsCodePresenter;

    invoke-virtual {v0}, Lcom/moji/mjweather/me/presenter/InputSnsCodePresenter;->h()V

    return-void
.end method

.method public onLoginSuccess(Lcom/moji/http/ugc/bean/account/LoginResultEntity;I)V
    .locals 1

    .line 204
    invoke-virtual {p0}, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->m()Lcom/moji/mvpframe/BasePresenter;

    move-result-object v0

    check-cast v0, Lcom/moji/mjweather/me/presenter/InputSnsCodePresenter;

    invoke-virtual {v0, p1, p2}, Lcom/moji/mjweather/me/presenter/InputSnsCodePresenter;->a(Lcom/moji/http/ugc/bean/account/LoginResultEntity;I)V

    .line 205
    invoke-virtual {p0}, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->m()Lcom/moji/mvpframe/BasePresenter;

    move-result-object p1

    check-cast p1, Lcom/moji/mjweather/me/presenter/InputSnsCodePresenter;

    invoke-virtual {p0}, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->getIntent()Landroid/content/Intent;

    move-result-object p2

    invoke-virtual {p1, p2}, Lcom/moji/mjweather/me/presenter/InputSnsCodePresenter;->a(Landroid/content/Intent;)Ljava/lang/String;

    move-result-object p1

    .line 206
    invoke-static {}, Lcom/moji/preferences/AccountPrefer;->c()Lcom/moji/preferences/AccountPrefer;

    move-result-object p2

    invoke-virtual {p2, p1}, Lcom/moji/preferences/AccountPrefer;->a(Ljava/lang/String;)V

    return-void
.end method

.method public saveLoginInfoFail()V
    .locals 1

    const-string v0, "\u4fdd\u5b58\u7528\u6237\u4fe1\u606f\u5931\u8d25\u4e86"

    .line 222
    invoke-static {v0}, Lcom/moji/tool/ToastTool;->a(Ljava/lang/String;)V

    return-void
.end method

.method public saveLoginInfoSuccess(Lcom/moji/http/ugc/bean/account/LoginResultEntity;I)V
    .locals 3

    .line 245
    invoke-virtual {p0}, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->m()Lcom/moji/mvpframe/BasePresenter;

    move-result-object v0

    check-cast v0, Lcom/moji/mjweather/me/presenter/InputSnsCodePresenter;

    const-string v1, ""

    iget-object p1, p1, Lcom/moji/http/ugc/bean/account/LoginResultEntity;->access_token:Ljava/lang/String;

    const/4 v2, 0x1

    invoke-virtual {v0, v2, v1, p1, p2}, Lcom/moji/mjweather/me/presenter/InputSnsCodePresenter;->a(ILjava/lang/String;Ljava/lang/String;I)V

    return-void
.end method

.method public saveUserInfoSuccess(Lcom/moji/account/data/UserInfo;)V
    .locals 3

    .line 255
    new-instance v0, Lcom/moji/push/info/PushInfoSynchronous;

    invoke-direct {v0}, Lcom/moji/push/info/PushInfoSynchronous;-><init>()V

    invoke-virtual {v0}, Lcom/moji/push/info/PushInfoSynchronous;->syncAllPushInfo()V

    .line 256
    invoke-virtual {p0}, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->m()Lcom/moji/mvpframe/BasePresenter;

    move-result-object v0

    check-cast v0, Lcom/moji/mjweather/me/presenter/InputSnsCodePresenter;

    invoke-virtual {p0}, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/moji/mjweather/me/presenter/InputSnsCodePresenter;->a(Landroid/content/Intent;)Ljava/lang/String;

    move-result-object v0

    .line 257
    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_0

    .line 258
    invoke-virtual {p0}, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->m()Lcom/moji/mvpframe/BasePresenter;

    move-result-object v1

    check-cast v1, Lcom/moji/mjweather/me/presenter/InputSnsCodePresenter;

    invoke-virtual {v1, v0}, Lcom/moji/mjweather/me/presenter/InputSnsCodePresenter;->e(Ljava/lang/String;)V

    .line 260
    :cond_0
    invoke-virtual {p0}, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->m()Lcom/moji/mvpframe/BasePresenter;

    move-result-object v0

    check-cast v0, Lcom/moji/mjweather/me/presenter/InputSnsCodePresenter;

    invoke-virtual {v0}, Lcom/moji/mjweather/me/presenter/InputSnsCodePresenter;->i()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 261
    invoke-static {p0}, Lcom/moji/mjweather/NavigationManager;->h(Landroid/content/Context;)V

    goto :goto_0

    .line 263
    :cond_1
    invoke-static {}, Lcom/moji/bus/Bus;->a()Lcom/moji/bus/Bus;

    move-result-object v0

    const-string v1, "eventLoginSuccess"

    new-instance v2, Lcom/moji/bus/event/BusEventCommon$LoginSuccessEvent;

    invoke-direct {v2, p1}, Lcom/moji/bus/event/BusEventCommon$LoginSuccessEvent;-><init>(Lcom/moji/bus/event/IBusEvent;)V

    invoke-virtual {v0, v1, v2}, Lcom/moji/bus/Bus;->a(Ljava/lang/String;Lcom/moji/bus/event/BusEventData;)V

    .line 264
    invoke-virtual {p0}, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->finish()V

    :goto_0
    return-void
.end method

.method public saveUserMobileInfoToLocalDBFail()V
    .locals 0

    return-void
.end method

.method protected setUpView()V
    .locals 5

    const v0, 0x7f090b3a

    .line 112
    invoke-virtual {p0, v0}, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->a:Landroid/widget/TextView;

    const v0, 0x7f090b60

    .line 113
    invoke-virtual {p0, v0}, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->b:Landroid/widget/TextView;

    const v0, 0x7f0909b0

    .line 114
    invoke-virtual {p0, v0}, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->c:Landroid/widget/TextView;

    const v0, 0x7f0901e2

    .line 115
    invoke-virtual {p0, v0}, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    iput-object v0, p0, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->i:Landroid/widget/EditText;

    const v0, 0x7f09039c

    .line 116
    invoke-virtual {p0, v0}, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->j:Landroid/widget/ImageView;

    const v0, 0x7f090a72

    .line 117
    invoke-virtual {p0, v0}, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->m:Landroid/widget/TextView;

    .line 118
    invoke-virtual {p0}, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->m()Lcom/moji/mvpframe/BasePresenter;

    move-result-object v0

    check-cast v0, Lcom/moji/mjweather/me/presenter/InputSnsCodePresenter;

    invoke-virtual {p0}, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/moji/mjweather/me/presenter/InputSnsCodePresenter;->a(Landroid/content/Intent;)Ljava/lang/String;

    move-result-object v0

    const v1, 0x7f0e0470

    .line 119
    invoke-virtual {p0, v1}, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x1

    new-array v3, v2, [Ljava/lang/Object;

    const/4 v4, 0x0

    aput-object v0, v3, v4

    invoke-static {v1, v3}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    .line 120
    iget-object v1, p0, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->a:Landroid/widget/TextView;

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 123
    iget-object v0, p0, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->i:Landroid/widget/EditText;

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

    move-result-object v0

    invoke-interface {v0}, Landroid/text/Editable;->length()I

    move-result v0

    const/4 v1, 0x6

    if-ne v0, v1, :cond_0

    .line 124
    iget-object v0, p0, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->c:Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setEnabled(Z)V

    goto :goto_0

    .line 126
    :cond_0
    iget-object v0, p0, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->c:Landroid/widget/TextView;

    invoke-virtual {v0, v4}, Landroid/widget/TextView;->setEnabled(Z)V

    .line 129
    :goto_0
    iget-object v0, p0, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->i:Landroid/widget/EditText;

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

    move-result-object v0

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

    move-result-object v0

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 130
    iget-object v0, p0, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->j:Landroid/widget/ImageView;

    const/4 v1, 0x4

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 132
    :cond_1
    iget-object v0, p0, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->i:Landroid/widget/EditText;

    new-instance v1, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity$1;

    invoke-direct {v1, p0}, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity$1;-><init>(Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->addTextChangedListener(Landroid/text/TextWatcher;)V

    return-void
.end method

.method public validateMobileFail(Ljava/lang/String;)V
    .locals 2

    .line 292
    iget-object v0, p0, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->m:Landroid/widget/TextView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    .line 293
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 294
    iget-object p1, p0, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->m:Landroid/widget/TextView;

    const v0, 0x7f0e02f9

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(I)V

    goto :goto_0

    .line 296
    :cond_0
    iget-object v0, p0, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->m:Landroid/widget/TextView;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 298
    :goto_0
    iget-object p1, p0, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->a:Landroid/widget/TextView;

    const/4 v0, 0x4

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setVisibility(I)V

    return-void
.end method

.method public validateMobileSuccess()V
    .locals 2

    .line 276
    iget v0, p0, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->k:I

    const/4 v1, 0x2

    if-eq v0, v1, :cond_0

    goto :goto_0

    .line 278
    :cond_0
    invoke-virtual {p0}, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->m()Lcom/moji/mvpframe/BasePresenter;

    move-result-object v0

    check-cast v0, Lcom/moji/mjweather/me/presenter/InputSnsCodePresenter;

    invoke-virtual {p0}, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/moji/mjweather/me/presenter/InputSnsCodePresenter;->a(Landroid/content/Intent;)Ljava/lang/String;

    move-result-object v0

    .line 279
    iget-object v1, p0, Lcom/moji/mjweather/me/activity/InputSnsCodeActivity;->i:Landroid/widget/EditText;

    invoke-virtual {v1}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v1

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

    move-result-object v1

    .line 280
    invoke-static {p0, v0, v1}, Lcom/moji/mjweather/NavigationManager;->b(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    :goto_0
    return-void
.end method
