.class Lcom/moji/member/MemberExCodeActivity$mTextWatcher;
.super Ljava/lang/Object;
.source "MemberExCodeActivity.java"

# interfaces
.implements Landroid/text/TextWatcher;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/moji/member/MemberExCodeActivity;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = "mTextWatcher"
.end annotation


# instance fields
.field final synthetic a:Lcom/moji/member/MemberExCodeActivity;


# direct methods
.method constructor <init>(Lcom/moji/member/MemberExCodeActivity;)V
    .locals 0

    .line 219
    iput-object p1, p0, Lcom/moji/member/MemberExCodeActivity$mTextWatcher;->a:Lcom/moji/member/MemberExCodeActivity;

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

    return-void
.end method


# virtual methods
.method public afterTextChanged(Landroid/text/Editable;)V
    .locals 2

    .line 234
    invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object p1

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

    move-result v0

    if-nez v0, :cond_0

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

    move-result p1

    const/16 v0, 0xa

    if-le p1, v0, :cond_0

    .line 236
    iget-object p1, p0, Lcom/moji/member/MemberExCodeActivity$mTextWatcher;->a:Lcom/moji/member/MemberExCodeActivity;

    invoke-static {p1}, Lcom/moji/member/MemberExCodeActivity;->d(Lcom/moji/member/MemberExCodeActivity;)Landroid/widget/TextView;

    move-result-object p1

    const/high16 v0, 0x3f800000    # 1.0f

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

    .line 237
    iget-object p1, p0, Lcom/moji/member/MemberExCodeActivity$mTextWatcher;->a:Lcom/moji/member/MemberExCodeActivity;

    invoke-static {p1}, Lcom/moji/member/MemberExCodeActivity;->d(Lcom/moji/member/MemberExCodeActivity;)Landroid/widget/TextView;

    move-result-object p1

    const/4 v0, 0x1

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

    goto :goto_0

    .line 239
    :cond_0
    iget-object p1, p0, Lcom/moji/member/MemberExCodeActivity$mTextWatcher;->a:Lcom/moji/member/MemberExCodeActivity;

    invoke-static {p1}, Lcom/moji/member/MemberExCodeActivity;->d(Lcom/moji/member/MemberExCodeActivity;)Landroid/widget/TextView;

    move-result-object p1

    iget-object v0, p0, Lcom/moji/member/MemberExCodeActivity$mTextWatcher;->a:Lcom/moji/member/MemberExCodeActivity;

    invoke-static {v0}, Lcom/moji/member/MemberExCodeActivity;->e(Lcom/moji/member/MemberExCodeActivity;)F

    move-result v0

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

    .line 240
    iget-object p1, p0, Lcom/moji/member/MemberExCodeActivity$mTextWatcher;->a:Lcom/moji/member/MemberExCodeActivity;

    invoke-static {p1}, Lcom/moji/member/MemberExCodeActivity;->d(Lcom/moji/member/MemberExCodeActivity;)Landroid/widget/TextView;

    move-result-object p1

    const/4 v0, 0x0

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

    .line 241
    iget-object p1, p0, Lcom/moji/member/MemberExCodeActivity$mTextWatcher;->a:Lcom/moji/member/MemberExCodeActivity;

    invoke-static {p1}, Lcom/moji/member/MemberExCodeActivity;->f(Lcom/moji/member/MemberExCodeActivity;)Landroid/widget/TextView;

    move-result-object p1

    sget v0, Lcom/moji/member/R$string;->member_active_text_remind:I

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

    .line 242
    iget-object p1, p0, Lcom/moji/member/MemberExCodeActivity$mTextWatcher;->a:Lcom/moji/member/MemberExCodeActivity;

    invoke-static {p1}, Lcom/moji/member/MemberExCodeActivity;->f(Lcom/moji/member/MemberExCodeActivity;)Landroid/widget/TextView;

    move-result-object p1

    iget-object v0, p0, Lcom/moji/member/MemberExCodeActivity$mTextWatcher;->a:Lcom/moji/member/MemberExCodeActivity;

    sget v1, Lcom/moji/member/R$color;->member_order_des:I

    invoke-static {v0, v1}, Landroid/support/v4/content/ContextCompat;->getColor(Landroid/content/Context;I)I

    move-result v0

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

    :goto_0
    return-void
.end method

.method public beforeTextChanged(Ljava/lang/CharSequence;III)V
    .locals 0

    return-void
.end method

.method public onTextChanged(Ljava/lang/CharSequence;III)V
    .locals 0

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

    move-result p1

    if-eqz p1, :cond_0

    .line 226
    iget-object p1, p0, Lcom/moji/member/MemberExCodeActivity$mTextWatcher;->a:Lcom/moji/member/MemberExCodeActivity;

    invoke-static {p1}, Lcom/moji/member/MemberExCodeActivity;->c(Lcom/moji/member/MemberExCodeActivity;)Landroid/widget/ImageView;

    move-result-object p1

    const/16 p2, 0x8

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

    goto :goto_0

    .line 228
    :cond_0
    iget-object p1, p0, Lcom/moji/member/MemberExCodeActivity$mTextWatcher;->a:Lcom/moji/member/MemberExCodeActivity;

    invoke-static {p1}, Lcom/moji/member/MemberExCodeActivity;->c(Lcom/moji/member/MemberExCodeActivity;)Landroid/widget/ImageView;

    move-result-object p1

    const/4 p2, 0x0

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

    :goto_0
    return-void
.end method
