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

# interfaces
.implements Lcom/moji/mjweather/me/view/IEditPassView;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "<P:",
        "Lcom/moji/mjweather/me/presenter/BasePassEditPresenter;",
        ">",
        "Lcom/moji/mjweather/me/activity/BaseAccountInputActivity<",
        "TP;>;",
        "Lcom/moji/mjweather/me/view/IEditPassView;"
    }
.end annotation


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

.field protected b:Landroid/widget/RelativeLayout;

.field protected c:Landroid/widget/EditText;

.field protected i:Landroid/widget/TextView;

.field protected j:Landroid/widget/EditText;

.field protected k:Landroid/widget/TextView;

.field protected l:Landroid/widget/TextView;

.field private m:Landroid/widget/TextView;

.field private n:Lcom/moji/titlebar/MJTitleBar;

.field private o:Landroid/widget/TextView;

.field private p:Landroid/widget/ImageView;

.field private q:Landroid/widget/ImageView;


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

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

    return-void
.end method

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

    .line 25
    iget-object p0, p0, Lcom/moji/mjweather/me/activity/BasePassEditActivity;->p:Landroid/widget/ImageView;

    return-object p0
.end method

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

    .line 25
    iget-object p0, p0, Lcom/moji/mjweather/me/activity/BasePassEditActivity;->q:Landroid/widget/ImageView;

    return-object p0
.end method


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

    const v0, 0x7f0b0056

    return v0
.end method

.method protected addListener()V
    .locals 1

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

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

    return-void
.end method

.method protected b(I)Landroid/widget/TextView;
    .locals 0

    packed-switch p1, :pswitch_data_0

    .line 136
    iget-object p1, p0, Lcom/moji/mjweather/me/activity/BasePassEditActivity;->k:Landroid/widget/TextView;

    return-object p1

    .line 134
    :pswitch_0
    iget-object p1, p0, Lcom/moji/mjweather/me/activity/BasePassEditActivity;->l:Landroid/widget/TextView;

    return-object p1

    .line 132
    :pswitch_1
    iget-object p1, p0, Lcom/moji/mjweather/me/activity/BasePassEditActivity;->k:Landroid/widget/TextView;

    return-object p1

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

.method protected abstract b()Ljava/lang/String;
.end method

.method protected onDestroy()V
    .locals 2

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

    const v0, 0x7f010031

    const v1, 0x7f010024

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

    return-void
.end method

.method protected onResume()V
    .locals 2

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

    .line 148
    iget-object v0, p0, Lcom/moji/mjweather/me/activity/BasePassEditActivity;->j:Landroid/widget/EditText;

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

    move-result-object v0

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

    move-result v0

    const/4 v1, 0x4

    if-eqz v0, :cond_0

    .line 149
    iget-object v0, p0, Lcom/moji/mjweather/me/activity/BasePassEditActivity;->q:Landroid/widget/ImageView;

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

    .line 151
    :cond_0
    iget-object v0, p0, Lcom/moji/mjweather/me/activity/BasePassEditActivity;->c:Landroid/widget/EditText;

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

    move-result-object v0

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

    move-result v0

    if-eqz v0, :cond_1

    .line 152
    iget-object v0, p0, Lcom/moji/mjweather/me/activity/BasePassEditActivity;->p:Landroid/widget/ImageView;

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

    :cond_1
    return-void
.end method

.method protected setUpView()V
    .locals 2

    const v0, 0x7f0905c4

    .line 47
    invoke-virtual {p0, v0}, Lcom/moji/mjweather/me/activity/BasePassEditActivity;->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/BasePassEditActivity;->n:Lcom/moji/titlebar/MJTitleBar;

    const v0, 0x7f090b2d

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

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

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

    const v0, 0x7f090b2e

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

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

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

    const v0, 0x7f090205

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

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

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

    const v0, 0x7f090759

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

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

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

    const v0, 0x7f090a75

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

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

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

    const v0, 0x7f090200

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

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

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

    const v0, 0x7f0909af

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

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

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

    const v0, 0x7f090a74

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

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

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

    const v0, 0x7f090a73

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

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

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

    const v0, 0x7f09039f

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

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

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

    const v0, 0x7f09039e

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

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

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

    .line 60
    iget-object v0, p0, Lcom/moji/mjweather/me/activity/BasePassEditActivity;->a:Landroid/widget/TextView;

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

    .line 61
    iget-object v0, p0, Lcom/moji/mjweather/me/activity/BasePassEditActivity;->q:Landroid/widget/ImageView;

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

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

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

    .line 67
    iget-object v0, p0, Lcom/moji/mjweather/me/activity/BasePassEditActivity;->p:Landroid/widget/ImageView;

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

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

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

    .line 74
    iget-object v0, p0, Lcom/moji/mjweather/me/activity/BasePassEditActivity;->n:Lcom/moji/titlebar/MJTitleBar;

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

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/moji/titlebar/MJTitleBar;->setTitleText(Ljava/lang/CharSequence;)V

    .line 76
    iget-object v0, p0, Lcom/moji/mjweather/me/activity/BasePassEditActivity;->c:Landroid/widget/EditText;

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

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

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

    .line 97
    iget-object v0, p0, Lcom/moji/mjweather/me/activity/BasePassEditActivity;->j:Landroid/widget/EditText;

    new-instance v1, Lcom/moji/mjweather/me/activity/BasePassEditActivity$4;

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

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

    return-void
.end method
