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

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


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


# instance fields
.field protected a:Landroid/widget/EditText;

.field protected b:Landroid/widget/TextView;

.field protected c:Landroid/widget/TextView;

.field protected i:Landroid/widget/TextView;

.field protected j:Landroid/widget/TextView;

.field protected k:Lcom/moji/titlebar/MJTitleBar;

.field protected l:Landroid/widget/RelativeLayout;

.field protected m:Landroid/widget/ImageView;

.field protected n:Lcom/moji/mjweather/me/control/LoginBottomViewControl;


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

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

    return-void
.end method

.method static synthetic a(Lcom/moji/mjweather/me/activity/BaseMobileInputActivity;)Lcom/moji/mvpframe/BasePresenter;
    .locals 0

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

    move-result-object p0

    return-object p0
.end method

.method private o()V
    .locals 3

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

    move-result-object v0

    if-eqz v0, :cond_0

    const-string v1, "from_other"

    const/4 v2, 0x0

    .line 140
    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    :cond_0
    return-void
.end method


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

    const v0, 0x7f0b0007

    return v0
.end method

.method protected a(Ljava/lang/String;)V
    .locals 1

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

    move-result-object v0

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

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

    return-void
.end method

.method public addListener()V
    .locals 5

    .line 83
    iget-object v0, p0, Lcom/moji/mjweather/me/activity/BaseMobileInputActivity;->i:Landroid/widget/TextView;

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

    .line 84
    iget-object v0, p0, Lcom/moji/mjweather/me/activity/BaseMobileInputActivity;->a:Landroid/widget/EditText;

    new-instance v1, Lcom/moji/mjweather/me/listener/PhoneTextWatcher;

    iget-object v2, p0, Lcom/moji/mjweather/me/activity/BaseMobileInputActivity;->a:Landroid/widget/EditText;

    iget-object v3, p0, Lcom/moji/mjweather/me/activity/BaseMobileInputActivity;->i:Landroid/widget/TextView;

    iget-object v4, p0, Lcom/moji/mjweather/me/activity/BaseMobileInputActivity;->m:Landroid/widget/ImageView;

    invoke-direct {v1, v2, v3, v4}, Lcom/moji/mjweather/me/listener/PhoneTextWatcher;-><init>(Landroid/widget/EditText;Landroid/view/View;Landroid/widget/ImageView;)V

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

    .line 85
    iget-object v0, p0, Lcom/moji/mjweather/me/activity/BaseMobileInputActivity;->m:Landroid/widget/ImageView;

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

    return-void
.end method

.method protected b()Ljava/lang/String;
    .locals 3

    .line 76
    iget-object v0, p0, Lcom/moji/mjweather/me/activity/BaseMobileInputActivity;->a: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-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v0

    const-string v1, " "

    const-string v2, ""

    .line 77
    invoke-virtual {v0, v1, v2}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public clearErrorView()V
    .locals 2

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

    const-string v1, ""

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

    return-void
.end method

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

    .line 32
    invoke-virtual {p0}, Lcom/moji/mjweather/me/activity/BaseMobileInputActivity;->l()Lcom/moji/mjweather/me/presenter/BaseMobileInputPresenter;

    move-result-object v0

    return-object v0
.end method

.method protected abstract e()V
.end method

.method protected abstract k()V
.end method

.method protected l()Lcom/moji/mjweather/me/presenter/BaseMobileInputPresenter;
    .locals 1

    .line 171
    new-instance v0, Lcom/moji/mjweather/me/presenter/BaseMobileInputPresenter;

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

    return-object v0
.end method

.method public onBackPressed()V
    .locals 2

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

    const v0, 0x7f010015

    const v1, 0x7f010002

    .line 196
    invoke-virtual {p0, v0, v1}, Lcom/moji/mjweather/me/activity/BaseMobileInputActivity;->overridePendingTransition(II)V

    return-void
.end method

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

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

    move-result p1

    const v0, 0x7f09039c

    if-eq p1, v0, :cond_2

    const v0, 0x7f0909af

    if-eq p1, v0, :cond_0

    goto :goto_0

    .line 49
    :cond_0
    iget-object p1, p0, Lcom/moji/mjweather/me/activity/BaseMobileInputActivity;->c:Landroid/widget/TextView;

    const-string v0, ""

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

    .line 50
    iget-object p1, p0, Lcom/moji/mjweather/me/activity/BaseMobileInputActivity;->a:Landroid/widget/EditText;

    invoke-static {p1}, Lcom/moji/tool/DeviceTool;->b(Landroid/view/View;)V

    .line 51
    invoke-virtual {p0}, Lcom/moji/mjweather/me/activity/BaseMobileInputActivity;->b()Ljava/lang/String;

    move-result-object p1

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

    move-result-object v0

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

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

    move-result v0

    if-nez v0, :cond_1

    return-void

    .line 55
    :cond_1
    invoke-virtual {p0, p1}, Lcom/moji/mjweather/me/activity/BaseMobileInputActivity;->a(Ljava/lang/String;)V

    goto :goto_0

    .line 58
    :cond_2
    iget-object p1, p0, Lcom/moji/mjweather/me/activity/BaseMobileInputActivity;->a:Landroid/widget/EditText;

    const-string v0, ""

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

    .line 59
    invoke-virtual {p0}, Lcom/moji/mjweather/me/activity/BaseMobileInputActivity;->clearErrorView()V

    :goto_0
    return-void
.end method

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

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

    .line 150
    iget-object v0, p0, Lcom/moji/mjweather/me/activity/BaseMobileInputActivity;->n:Lcom/moji/mjweather/me/control/LoginBottomViewControl;

    invoke-virtual {v0, p1}, Lcom/moji/mjweather/me/control/LoginBottomViewControl;->onCreate(Landroid/os/Bundle;)V

    return-void
.end method

.method protected onDestroy()V
    .locals 1

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

    .line 162
    iget-object v0, p0, Lcom/moji/mjweather/me/activity/BaseMobileInputActivity;->n:Lcom/moji/mjweather/me/control/LoginBottomViewControl;

    invoke-virtual {v0}, Lcom/moji/mjweather/me/control/LoginBottomViewControl;->onDestroy()V

    return-void
.end method

.method protected onResume()V
    .locals 1

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

    .line 156
    iget-object v0, p0, Lcom/moji/mjweather/me/activity/BaseMobileInputActivity;->n:Lcom/moji/mjweather/me/control/LoginBottomViewControl;

    invoke-virtual {v0}, Lcom/moji/mjweather/me/control/LoginBottomViewControl;->onResume()V

    return-void
.end method

.method public setUpView()V
    .locals 5

    const v0, 0x7f090203

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

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

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

    const v0, 0x7f090a72

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

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

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

    const v0, 0x7f090b3a

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

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

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

    const v0, 0x7f0909af

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

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

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

    const v0, 0x7f090737

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

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    iput-object v0, p0, Lcom/moji/mjweather/me/activity/BaseMobileInputActivity;->l:Landroid/widget/RelativeLayout;

    const v0, 0x7f090a83

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

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

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

    const v0, 0x7f090952

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

    move-result-object v0

    check-cast v0, Lcom/moji/titlebar/MJTitleBar;

    iput-object v0, p0, Lcom/moji/mjweather/me/activity/BaseMobileInputActivity;->k:Lcom/moji/titlebar/MJTitleBar;

    const v0, 0x7f09039c

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

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

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

    .line 105
    iget-object v0, p0, Lcom/moji/mjweather/me/activity/BaseMobileInputActivity;->i:Landroid/widget/TextView;

    const/4 v1, 0x0

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

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

    move-result-object v0

    invoke-virtual {v0}, Lcom/moji/preferences/AccountPrefer;->d()Ljava/lang/String;

    move-result-object v0

    const/4 v2, 0x1

    if-eqz v0, :cond_0

    const-string v3, "@"

    .line 108
    invoke-virtual {v0, v3}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v3

    if-nez v3, :cond_0

    const-string v3, "1"

    invoke-virtual {v0, v3}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_0

    .line 109
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const/4 v4, 0x3

    invoke-virtual {v0, v1, v4}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, " "

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const/4 v1, 0x7

    invoke-virtual {v0, v4, v1}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v4, " "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v4

    invoke-virtual {v0, v1, v4}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 110
    iget-object v1, p0, Lcom/moji/mjweather/me/activity/BaseMobileInputActivity;->a:Landroid/widget/EditText;

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

    .line 111
    iget-object v0, p0, Lcom/moji/mjweather/me/activity/BaseMobileInputActivity;->i:Landroid/widget/TextView;

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

    .line 113
    :cond_0
    invoke-direct {p0}, Lcom/moji/mjweather/me/activity/BaseMobileInputActivity;->o()V

    .line 115
    new-instance v0, Lcom/moji/mjweather/me/control/LoginBottomViewControl;

    invoke-direct {v0, p0}, Lcom/moji/mjweather/me/control/LoginBottomViewControl;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/moji/mjweather/me/activity/BaseMobileInputActivity;->n:Lcom/moji/mjweather/me/control/LoginBottomViewControl;

    .line 116
    new-instance v0, Landroid/widget/RelativeLayout$LayoutParams;

    const/4 v1, -0x1

    const/4 v3, -0x2

    invoke-direct {v0, v1, v3}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/16 v1, 0xa

    .line 117
    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    const/high16 v1, 0x43480000    # 200.0f

    .line 118
    invoke-static {v1}, Lcom/moji/tool/DeviceTool;->a(F)I

    move-result v1

    iput v1, v0, Landroid/widget/RelativeLayout$LayoutParams;->topMargin:I

    .line 119
    iget-object v1, p0, Lcom/moji/mjweather/me/activity/BaseMobileInputActivity;->n:Lcom/moji/mjweather/me/control/LoginBottomViewControl;

    invoke-virtual {v1}, Lcom/moji/mjweather/me/control/LoginBottomViewControl;->createView()Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/LinearLayout;

    .line 120
    invoke-virtual {v1, v2}, Landroid/widget/LinearLayout;->setGravity(I)V

    .line 121
    iget-object v3, p0, Lcom/moji/mjweather/me/activity/BaseMobileInputActivity;->l:Landroid/widget/RelativeLayout;

    invoke-virtual {v3, v1, v2, v0}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V

    .line 124
    invoke-virtual {p0}, Lcom/moji/mjweather/me/activity/BaseMobileInputActivity;->e()V

    .line 126
    iget-object v0, p0, Lcom/moji/mjweather/me/activity/BaseMobileInputActivity;->k:Lcom/moji/titlebar/MJTitleBar;

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

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

    invoke-virtual {v0, v1}, Lcom/moji/titlebar/MJTitleBar;->setOnClickBackListener(Lcom/moji/titlebar/MJTitleBar$OnClickBack;)V

    return-void
.end method

.method public showMobileHasBeenBindPoint()V
    .locals 2

    .line 177
    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, 0x7f0e0137

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

    move-result-object v0

    const v1, 0x7f0e0462

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

    move-result-object v0

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

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

    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

    const v1, 0x7f0e0461

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

    move-result-object v0

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

    return-void
.end method

.method public showMobileHasBeenRegisteredPoint()V
    .locals 0

    return-void
.end method
