WalletReceiveActivity.smali

.class public Lcom/cmcm/safewallet/ui/property/WalletReceiveActivity;
.super Lcom/cmcm/safewallet/ui/base/activity/AbsMvpActivity;
.source "WalletReceiveActivity.java"

# interfaces
.implements Lcom/cmcm/safewallet/ui/property/at;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/cmcm/safewallet/ui/base/activity/AbsMvpActivity",
        "<",
        "Lcom/cmcm/safewallet/ui/property/au;",
        ">;",
        "Lcom/cmcm/safewallet/ui/property/at;"
    }
.end annotation


# instance fields
.field mAddress:Landroid/widget/TextView;
    .annotation build Lbutterknife/BindView;
    .end annotation
.end field

.field mCopy:Landroid/widget/TextView;
    .annotation build Lbutterknife/BindView;
    .end annotation
.end field

.field mIcon:Lcom/cmcm/safewallet/ui/widget/coin/CoinImageView;
    .annotation build Lbutterknife/BindView;
    .end annotation
.end field

.field mLeftText:Landroid/widget/TextView;
    .annotation build Lbutterknife/BindView;
    .end annotation
.end field

.field mName:Landroid/widget/TextView;
    .annotation build Lbutterknife/BindView;
    .end annotation
.end field

.field mQrImage:Landroid/widget/ImageView;
    .annotation build Lbutterknife/BindView;
    .end annotation
.end field

.field mReceiveDesc:Landroid/widget/TextView;
    .annotation build Lbutterknife/BindView;
    .end annotation
.end field

.field mRightImage:Landroid/widget/ImageView;
    .annotation build Lbutterknife/BindView;
    .end annotation
.end field


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

    .prologue
    .line 31
    invoke-direct {p0}, Lcom/cmcm/safewallet/ui/base/activity/AbsMvpActivity;-><init>()V

    return-void
.end method

.method public static a(Landroid/content/Context;Lcom/cmcm/safewallet/data/models/property/WalletOperateModel;Lcom/cmcm/safewallet/data/models/property/HDCoinOperateModel;)Landroid/content/Intent;
    .registers 5

    .prologue
    .line 58
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/cmcm/safewallet/ui/property/WalletReceiveActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 59
    const-string v1, "model"

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

    .line 60
    const-string v1, "model_1"

    invoke-virtual {v0, v1, p2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;

    .line 61
    const/high16 v1, 0x10000000

    invoke-virtual {v0, v1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 62
    return-object v0
.end method


# virtual methods
.method protected final synthetic ab(Landroid/content/Context;)Lcom/cmcm/safewallet/ui/base/c/b;
    .registers 3

    .prologue
    .line 17137
    new-instance v0, Lcom/cmcm/safewallet/ui/property/au;

    invoke-direct {v0, p1}, Lcom/cmcm/safewallet/ui/property/au;-><init>(Landroid/content/Context;)V

    .line 31
    return-object v0
.end method

.method public final aw(Z)V
    .registers 6

    .prologue
    .line 147
    if-eqz p1, :cond_c

    .line 148
    iget-object v0, p0, Lcom/cmcm/safewallet/ui/property/WalletReceiveActivity;->mIcon:Lcom/cmcm/safewallet/ui/widget/coin/CoinImageView;

    .line 15033
    const v1, 0x7f020139

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Lcom/cmcm/safewallet/ui/widget/coin/CoinImageView;->i(ILjava/lang/String;)V

    .line 152
    :goto_b
    return-void

    .line 15095
    :cond_c
    iget-object v0, p0, Lcom/cmcm/safewallet/ui/base/activity/AbsMvpActivity;->agc:Lcom/cmcm/safewallet/ui/base/c/b;

    .line 150
    check-cast v0, Lcom/cmcm/safewallet/ui/property/au;

    invoke-virtual {v0}, Lcom/cmcm/safewallet/ui/property/au;->tl()I

    move-result v1

    iget-object v2, p0, Lcom/cmcm/safewallet/ui/property/WalletReceiveActivity;->mIcon:Lcom/cmcm/safewallet/ui/widget/coin/CoinImageView;

    .line 16095
    iget-object v0, p0, Lcom/cmcm/safewallet/ui/base/activity/AbsMvpActivity;->agc:Lcom/cmcm/safewallet/ui/base/c/b;

    .line 150
    check-cast v0, Lcom/cmcm/safewallet/ui/property/au;

    .line 17051
    iget-object v3, v0, Lcom/cmcm/safewallet/ui/property/au;->auQ:Lcom/cmcm/safewallet/data/models/property/WalletOperateModel;

    iget-object v0, v0, Lcom/cmcm/safewallet/ui/property/au;->avs:Lcom/cmcm/safewallet/data/models/property/HDCoinOperateModel;

    invoke-static {v3, v0}, Lcom/cmcm/safewallet/ui/property/b/e;->j(Lcom/cmcm/safewallet/data/models/property/WalletOperateModel;Lcom/cmcm/safewallet/data/models/property/HDCoinOperateModel;)Ljava/lang/String;

    move-result-object v0

    .line 150
    invoke-static {v1, v2, v0}, Lcom/cmcm/safewallet/data/ctrl/d;->a(ILcom/cmcm/safewallet/ui/widget/coin/CoinImageView;Ljava/lang/String;)V

    goto :goto_b
.end method

.method protected final mB()I
    .registers 2

    .prologue
    .line 99
    const v0, 0x7f030056

    return v0
.end method

.method protected final my()V
    .registers 1

    .prologue
    .line 68
    return-void
.end method

.method protected final mz()V
    .registers 5

    .prologue
    const/4 v3, 0x1

    .line 72
    iget-object v1, p0, Lcom/cmcm/safewallet/ui/property/WalletReceiveActivity;->mLeftText:Landroid/widget/TextView;

    .line 1095
    iget-object v0, p0, Lcom/cmcm/safewallet/ui/base/activity/AbsMvpActivity;->agc:Lcom/cmcm/safewallet/ui/base/c/b;

    .line 72
    check-cast v0, Lcom/cmcm/safewallet/ui/property/au;

    invoke-virtual {v0}, Lcom/cmcm/safewallet/ui/property/au;->getTitle()Ljava/lang/String;

    move-result-object v0

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

    .line 73
    iget-object v0, p0, Lcom/cmcm/safewallet/ui/property/WalletReceiveActivity;->mRightImage:Landroid/widget/ImageView;

    const/4 v1, 0x0

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

    .line 74
    iget-object v0, p0, Lcom/cmcm/safewallet/ui/property/WalletReceiveActivity;->mRightImage:Landroid/widget/ImageView;

    const v1, 0x7f0201a1

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

    .line 75
    iget-object v1, p0, Lcom/cmcm/safewallet/ui/property/WalletReceiveActivity;->mName:Landroid/widget/TextView;

    .line 2095
    iget-object v0, p0, Lcom/cmcm/safewallet/ui/base/activity/AbsMvpActivity;->agc:Lcom/cmcm/safewallet/ui/base/c/b;

    .line 75
    check-cast v0, Lcom/cmcm/safewallet/ui/property/au;

    .line 3043
    iget-object v2, v0, Lcom/cmcm/safewallet/ui/property/au;->auQ:Lcom/cmcm/safewallet/data/models/property/WalletOperateModel;

    iget-object v0, v0, Lcom/cmcm/safewallet/ui/property/au;->avs:Lcom/cmcm/safewallet/data/models/property/HDCoinOperateModel;

    invoke-static {v2, v0}, Lcom/cmcm/safewallet/ui/property/b/e;->e(Lcom/cmcm/safewallet/data/models/property/WalletOperateModel;Lcom/cmcm/safewallet/data/models/property/HDCoinOperateModel;)Ljava/lang/String;

    move-result-object v0

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

    .line 3095
    iget-object v0, p0, Lcom/cmcm/safewallet/ui/base/activity/AbsMvpActivity;->agc:Lcom/cmcm/safewallet/ui/base/c/b;

    .line 76
    check-cast v0, Lcom/cmcm/safewallet/ui/property/au;

    .line 3130
    iget-object v1, v0, Lcom/cmcm/safewallet/ui/base/c/a;->agf:Lcom/cmcm/safewallet/ui/base/view/c;

    .line 3125
    check-cast v1, Lcom/cmcm/safewallet/ui/property/at;

    invoke-virtual {v0}, Lcom/cmcm/safewallet/ui/property/au;->ti()Z

    move-result v0

    invoke-interface {v1, v0}, Lcom/cmcm/safewallet/ui/property/at;->aw(Z)V

    .line 77
    iget-object v1, p0, Lcom/cmcm/safewallet/ui/property/WalletReceiveActivity;->mAddress:Landroid/widget/TextView;

    .line 4095
    iget-object v0, p0, Lcom/cmcm/safewallet/ui/base/activity/AbsMvpActivity;->agc:Lcom/cmcm/safewallet/ui/base/c/b;

    .line 77
    check-cast v0, Lcom/cmcm/safewallet/ui/property/au;

    invoke-virtual {v0}, Lcom/cmcm/safewallet/ui/property/au;->getAddress()Ljava/lang/String;

    move-result-object v0

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

    .line 78
    iget-object v1, p0, Lcom/cmcm/safewallet/ui/property/WalletReceiveActivity;->mReceiveDesc:Landroid/widget/TextView;

    .line 5095
    iget-object v0, p0, Lcom/cmcm/safewallet/ui/base/activity/AbsMvpActivity;->agc:Lcom/cmcm/safewallet/ui/base/c/b;

    .line 78
    check-cast v0, Lcom/cmcm/safewallet/ui/property/au;

    invoke-virtual {v0}, Lcom/cmcm/safewallet/ui/property/au;->tm()Ljava/lang/String;

    move-result-object v0

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

    .line 6095
    iget-object v0, p0, Lcom/cmcm/safewallet/ui/base/activity/AbsMvpActivity;->agc:Lcom/cmcm/safewallet/ui/base/c/b;

    .line 79
    check-cast v0, Lcom/cmcm/safewallet/ui/property/au;

    .line 7055
    new-instance v1, Lcom/cmcm/safewallet/ui/property/au$1;

    invoke-direct {v1, v0}, Lcom/cmcm/safewallet/ui/property/au$1;-><init>(Lcom/cmcm/safewallet/ui/property/au;)V

    invoke-static {v1}, Lcom/cmcm/safewallet/utils/concurrent/c;->execute(Ljava/lang/Runnable;)V

    .line 7095
    iget-object v0, p0, Lcom/cmcm/safewallet/ui/base/activity/AbsMvpActivity;->agc:Lcom/cmcm/safewallet/ui/base/c/b;

    .line 82
    check-cast v0, Lcom/cmcm/safewallet/ui/property/au;

    .line 8039
    iget-object v0, v0, Lcom/cmcm/safewallet/ui/property/au;->avs:Lcom/cmcm/safewallet/data/models/property/HDCoinOperateModel;

    invoke-static {v0}, Lcom/cmcm/safewallet/ui/property/b/e;->a(Lcom/cmcm/safewallet/data/models/property/HDCoinOperateModel;)I

    move-result v0

    .line 82
    if-ne v3, v0, :cond_77

    .line 83
    const/16 v0, 0x64

    const-string v1, "M#ui#"

    const-string v2, "hd receive,show wallet receive activity"

    invoke-static {v0, v1, v3, v2}, Lcom/cmcm/a/b/b;->a(ILjava/lang/String;ILjava/lang/String;)V

    .line 85
    :cond_77
    return-void
.end method

.method public onBackPressed()V
    .registers 5

    .prologue
    const/4 v3, 0x1

    .line 128
    .line 13095
    iget-object v0, p0, Lcom/cmcm/safewallet/ui/base/activity/AbsMvpActivity;->agc:Lcom/cmcm/safewallet/ui/base/c/b;

    .line 128
    check-cast v0, Lcom/cmcm/safewallet/ui/property/au;

    .line 14039
    iget-object v0, v0, Lcom/cmcm/safewallet/ui/property/au;->avs:Lcom/cmcm/safewallet/data/models/property/HDCoinOperateModel;

    invoke-static {v0}, Lcom/cmcm/safewallet/ui/property/b/e;->a(Lcom/cmcm/safewallet/data/models/property/HDCoinOperateModel;)I

    move-result v0

    .line 128
    if-ne v3, v0, :cond_16

    .line 129
    const/16 v0, 0x64

    const-string v1, "M#ui#"

    const-string v2, "hd receive,click back btn"

    invoke-static {v0, v1, v3, v2}, Lcom/cmcm/a/b/b;->a(ILjava/lang/String;ILjava/lang/String;)V

    .line 131
    :cond_16
    invoke-super {p0}, Lcom/cmcm/safewallet/ui/base/activity/AbsMvpActivity;->onBackPressed()V

    .line 132
    return-void
.end method

.method public onCopyClick()V
    .registers 5
    .annotation build Lbutterknife/OnClick;
    .end annotation

    .prologue
    const/4 v3, 0x1

    .line 89
    invoke-virtual {p0}, Lcom/cmcm/safewallet/ui/property/WalletReceiveActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    .line 8095
    iget-object v0, p0, Lcom/cmcm/safewallet/ui/base/activity/AbsMvpActivity;->agc:Lcom/cmcm/safewallet/ui/base/c/b;

    .line 89
    check-cast v0, Lcom/cmcm/safewallet/ui/property/au;

    invoke-virtual {v0}, Lcom/cmcm/safewallet/ui/property/au;->getAddress()Ljava/lang/String;

    move-result-object v0

    invoke-static {v1, v0}, Lcom/cmcm/safewallet/utils/f;->w(Landroid/content/Context;Ljava/lang/String;)V

    .line 90
    invoke-virtual {p0}, Lcom/cmcm/safewallet/ui/property/WalletReceiveActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    const v1, 0x7f080082

    invoke-virtual {p0, v1}, Lcom/cmcm/safewallet/ui/property/WalletReceiveActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    .line 9095
    iget-object v0, p0, Lcom/cmcm/safewallet/ui/base/activity/AbsMvpActivity;->agc:Lcom/cmcm/safewallet/ui/base/c/b;

    .line 92
    check-cast v0, Lcom/cmcm/safewallet/ui/property/au;

    .line 10039
    iget-object v0, v0, Lcom/cmcm/safewallet/ui/property/au;->avs:Lcom/cmcm/safewallet/data/models/property/HDCoinOperateModel;

    invoke-static {v0}, Lcom/cmcm/safewallet/ui/property/b/e;->a(Lcom/cmcm/safewallet/data/models/property/HDCoinOperateModel;)I

    move-result v0

    .line 92
    if-ne v3, v0, :cond_38

    .line 93
    const/16 v0, 0x64

    const-string v1, "M#ui#"

    const-string v2, "hd receive,click copy btn"

    invoke-static {v0, v1, v3, v2}, Lcom/cmcm/a/b/b;->a(ILjava/lang/String;ILjava/lang/String;)V

    .line 95
    :cond_38
    return-void
.end method

.method public onLeftImageClick()V
    .registers 5
    .annotation build Lbutterknife/OnClick;
    .end annotation

    .prologue
    const/4 v3, 0x1

    .line 119
    .line 12095
    iget-object v0, p0, Lcom/cmcm/safewallet/ui/base/activity/AbsMvpActivity;->agc:Lcom/cmcm/safewallet/ui/base/c/b;

    .line 119
    check-cast v0, Lcom/cmcm/safewallet/ui/property/au;

    .line 13039
    iget-object v0, v0, Lcom/cmcm/safewallet/ui/property/au;->avs:Lcom/cmcm/safewallet/data/models/property/HDCoinOperateModel;

    invoke-static {v0}, Lcom/cmcm/safewallet/ui/property/b/e;->a(Lcom/cmcm/safewallet/data/models/property/HDCoinOperateModel;)I

    move-result v0

    .line 119
    if-ne v3, v0, :cond_16

    .line 120
    const/16 v0, 0x64

    const-string v1, "M#ui#"

    const-string v2, "hd receive,click back btn"

    invoke-static {v0, v1, v3, v2}, Lcom/cmcm/a/b/b;->a(ILjava/lang/String;ILjava/lang/String;)V

    .line 122
    :cond_16
    invoke-virtual {p0}, Lcom/cmcm/safewallet/ui/property/WalletReceiveActivity;->finish()V

    .line 123
    return-void
.end method

.method public onLeftTextClick()V
    .registers 5
    .annotation build Lbutterknife/OnClick;
    .end annotation

    .prologue
    const/4 v3, 0x1

    .line 105
    .line 10095
    iget-object v0, p0, Lcom/cmcm/safewallet/ui/base/activity/AbsMvpActivity;->agc:Lcom/cmcm/safewallet/ui/base/c/b;

    .line 105
    check-cast v0, Lcom/cmcm/safewallet/ui/property/au;

    .line 11039
    iget-object v0, v0, Lcom/cmcm/safewallet/ui/property/au;->avs:Lcom/cmcm/safewallet/data/models/property/HDCoinOperateModel;

    invoke-static {v0}, Lcom/cmcm/safewallet/ui/property/b/e;->a(Lcom/cmcm/safewallet/data/models/property/HDCoinOperateModel;)I

    move-result v0

    .line 105
    if-ne v3, v0, :cond_16

    .line 106
    const/16 v0, 0x64

    const-string v1, "M#ui#"

    const-string v2, "hd receive,click back btn"

    invoke-static {v0, v1, v3, v2}, Lcom/cmcm/a/b/b;->a(ILjava/lang/String;ILjava/lang/String;)V

    .line 108
    :cond_16
    invoke-virtual {p0}, Lcom/cmcm/safewallet/ui/property/WalletReceiveActivity;->finish()V

    .line 109
    return-void
.end method

.method public onShareClick()V
    .registers 5
    .annotation build Lbutterknife/OnClick;
    .end annotation

    .prologue
    .line 113
    invoke-virtual {p0}, Lcom/cmcm/safewallet/ui/property/WalletReceiveActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    .line 11095
    iget-object v0, p0, Lcom/cmcm/safewallet/ui/base/activity/AbsMvpActivity;->agc:Lcom/cmcm/safewallet/ui/base/c/b;

    .line 113
    check-cast v0, Lcom/cmcm/safewallet/ui/property/au;

    invoke-virtual {v0}, Lcom/cmcm/safewallet/ui/property/au;->getAddress()Ljava/lang/String;

    move-result-object v0

    .line 12020
    :try_start_c
    new-instance v2, Landroid/content/Intent;

    invoke-direct {v2}, Landroid/content/Intent;-><init>()V

    .line 12021
    const-string v3, "android.intent.action.SEND"

    invoke-virtual {v2, v3}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;

    .line 12022
    const-string v3, "android.intent.extra.TEXT"

    invoke-virtual {v2, v3, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 12023
    const-string v0, "text/plain"

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

    .line 12024
    const/high16 v0, 0x10000000

    invoke-virtual {v2, v0}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 12025
    const v0, 0x7f0802b3

    invoke-virtual {v1, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-static {v2, v0}, Landroid/content/Intent;->createChooser(Landroid/content/Intent;Ljava/lang/CharSequence;)Landroid/content/Intent;

    move-result-object v0

    .line 12026
    const/high16 v2, 0x10000000

    invoke-virtual {v0, v2}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 12027
    invoke-virtual {v1, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
    :try_end_38
    .catch Ljava/lang/Exception; {:try_start_c .. :try_end_38} :catch_39

    .line 12031
    :goto_38
    return-void

    .line 12029
    :catch_39
    move-exception v0

    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    .line 12030
    const v0, 0x7f0802b2

    invoke-virtual {v1, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    const/4 v2, 0x0

    invoke-static {v1, v0, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    goto :goto_38
.end method

.method public final r(Landroid/graphics/Bitmap;)V
    .registers 3

    .prologue
    .line 142
    iget-object v0, p0, Lcom/cmcm/safewallet/ui/property/WalletReceiveActivity;->mQrImage:Landroid/widget/ImageView;

    invoke-virtual {v0, p1}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    .line 143
    return-void
.end method