.class public Lcom/moji/member/MemberMyCodeActivity;
.super Lcom/moji/base/MJActivity;
.source "MemberMyCodeActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;
.implements Lcom/moji/member/presenter/MemberMyCodePresenter$MemberMyCodeCallback;


# annotations
.annotation build Lcom/moji/router/annotation/Router;
.end annotation

.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/moji/member/MemberMyCodeActivity$AllChooseClick;,
        Lcom/moji/member/MemberMyCodeActivity$mRightTextClickListener;,
        Lcom/moji/member/MemberMyCodeActivity$mCodeListClickListener;
    }
.end annotation


# instance fields
.field a:Lcom/moji/titlebar/MJTitleBar;

.field b:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;

.field private c:Landroid/support/v7/widget/RecyclerView;

.field private i:Lcom/moji/member/presenter/MemberMyCodePresenter;

.field private j:Lcom/moji/member/adapter/MemberMyCodeAdapter;

.field private k:Landroid/widget/TextView;

.field private l:Lcom/moji/member/MemberMyCodeActivity$mRightTextClickListener;

.field private m:Lorg/json/JSONObject;

.field private n:I

.field private o:Z

.field private p:Lcom/moji/preferences/ProcessPrefer;

.field private q:Landroid/widget/ScrollView;

.field private r:I

.field private s:Landroid/view/View;


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

    .line 48
    invoke-direct {p0}, Lcom/moji/base/MJActivity;-><init>()V

    const/16 v0, 0x37

    .line 60
    iput v0, p0, Lcom/moji/member/MemberMyCodeActivity;->n:I

    return-void
.end method

.method static synthetic a(Lcom/moji/member/MemberMyCodeActivity;)Lcom/moji/member/presenter/MemberMyCodePresenter;
    .locals 0

    .line 48
    iget-object p0, p0, Lcom/moji/member/MemberMyCodeActivity;->i:Lcom/moji/member/presenter/MemberMyCodePresenter;

    return-object p0
.end method

.method private a()V
    .locals 4

    .line 76
    sget v0, Lcom/moji/member/R$id;->member_code_title:I

    invoke-virtual {p0, v0}, Lcom/moji/member/MemberMyCodeActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

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

    iput-object v0, p0, Lcom/moji/member/MemberMyCodeActivity;->a:Lcom/moji/titlebar/MJTitleBar;

    .line 77
    iget-object v0, p0, Lcom/moji/member/MemberMyCodeActivity;->a:Lcom/moji/titlebar/MJTitleBar;

    sget v1, Lcom/moji/member/R$string;->title_my_card:I

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

    .line 78
    iget-object v0, p0, Lcom/moji/member/MemberMyCodeActivity;->a:Lcom/moji/titlebar/MJTitleBar;

    invoke-virtual {p0}, Lcom/moji/member/MemberMyCodeActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    sget v2, Lcom/moji/member/R$color;->mj_dialog_title_color:I

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getColor(I)I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/moji/titlebar/MJTitleBar;->setActionTextColor(I)V

    .line 80
    new-instance v0, Lcom/moji/member/MemberMyCodeActivity$mRightTextClickListener;

    invoke-direct {v0, p0}, Lcom/moji/member/MemberMyCodeActivity$mRightTextClickListener;-><init>(Lcom/moji/member/MemberMyCodeActivity;)V

    iput-object v0, p0, Lcom/moji/member/MemberMyCodeActivity;->l:Lcom/moji/member/MemberMyCodeActivity$mRightTextClickListener;

    .line 81
    sget v0, Lcom/moji/member/R$id;->code_status_layout:I

    invoke-virtual {p0, v0}, Lcom/moji/member/MemberMyCodeActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;

    iput-object v0, p0, Lcom/moji/member/MemberMyCodeActivity;->b:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;

    .line 82
    sget v0, Lcom/moji/member/R$id;->my_code_recyclerview:I

    invoke-virtual {p0, v0}, Lcom/moji/member/MemberMyCodeActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/support/v7/widget/RecyclerView;

    iput-object v0, p0, Lcom/moji/member/MemberMyCodeActivity;->c:Landroid/support/v7/widget/RecyclerView;

    .line 83
    sget v0, Lcom/moji/member/R$id;->my_code_scrollview:I

    invoke-virtual {p0, v0}, Lcom/moji/member/MemberMyCodeActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ScrollView;

    iput-object v0, p0, Lcom/moji/member/MemberMyCodeActivity;->q:Landroid/widget/ScrollView;

    .line 84
    sget v0, Lcom/moji/member/R$id;->tv_delete_card:I

    invoke-virtual {p0, v0}, Lcom/moji/member/MemberMyCodeActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/moji/member/MemberMyCodeActivity;->k:Landroid/widget/TextView;

    .line 85
    iget-object v0, p0, Lcom/moji/member/MemberMyCodeActivity;->k:Landroid/widget/TextView;

    const/4 v1, 0x0

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

    .line 86
    iget-object v0, p0, Lcom/moji/member/MemberMyCodeActivity;->k:Landroid/widget/TextView;

    sget v2, Lcom/moji/member/R$color;->moji_blue_50p:I

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

    move-result v2

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

    .line 87
    iget-object v0, p0, Lcom/moji/member/MemberMyCodeActivity;->k:Landroid/widget/TextView;

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

    .line 88
    new-instance v0, Lcom/moji/member/MemberMyCodeActivity$1;

    const/4 v2, 0x1

    invoke-direct {v0, p0, p0, v2, v1}, Lcom/moji/member/MemberMyCodeActivity$1;-><init>(Lcom/moji/member/MemberMyCodeActivity;Landroid/content/Context;IZ)V

    .line 94
    iget-object v1, p0, Lcom/moji/member/MemberMyCodeActivity;->c:Landroid/support/v7/widget/RecyclerView;

    invoke-virtual {v1, v0}, Landroid/support/v7/widget/RecyclerView;->setLayoutManager(Landroid/support/v7/widget/RecyclerView$LayoutManager;)V

    .line 95
    iget-object v0, p0, Lcom/moji/member/MemberMyCodeActivity;->c:Landroid/support/v7/widget/RecyclerView;

    new-instance v1, Lcom/moji/recyclerview/RecyclerDivider;

    sget v3, Lcom/moji/member/R$drawable;->member_shape_recycler_divide:I

    invoke-direct {v1, v2, v3}, Lcom/moji/recyclerview/RecyclerDivider;-><init>(II)V

    invoke-virtual {v0, v1}, Landroid/support/v7/widget/RecyclerView;->a(Landroid/support/v7/widget/RecyclerView$ItemDecoration;)V

    .line 96
    sget v0, Lcom/moji/member/R$id;->place_view:I

    invoke-virtual {p0, v0}, Lcom/moji/member/MemberMyCodeActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/moji/member/MemberMyCodeActivity;->s:Landroid/view/View;

    return-void
.end method

.method static synthetic b(Lcom/moji/member/MemberMyCodeActivity;)Landroid/widget/TextView;
    .locals 0

    .line 48
    iget-object p0, p0, Lcom/moji/member/MemberMyCodeActivity;->k:Landroid/widget/TextView;

    return-object p0
.end method

.method private b()V
    .locals 2

    .line 100
    new-instance v0, Lcom/moji/member/presenter/MemberMyCodePresenter;

    invoke-direct {v0, p0}, Lcom/moji/member/presenter/MemberMyCodePresenter;-><init>(Lcom/moji/member/presenter/MemberMyCodePresenter$MemberMyCodeCallback;)V

    iput-object v0, p0, Lcom/moji/member/MemberMyCodeActivity;->i:Lcom/moji/member/presenter/MemberMyCodePresenter;

    .line 101
    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V

    iput-object v0, p0, Lcom/moji/member/MemberMyCodeActivity;->m:Lorg/json/JSONObject;

    .line 102
    iget-object v0, p0, Lcom/moji/member/MemberMyCodeActivity;->b:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;

    new-instance v1, Lcom/moji/member/MemberMyCodeActivity$2;

    invoke-direct {v1, p0}, Lcom/moji/member/MemberMyCodeActivity$2;-><init>(Lcom/moji/member/MemberMyCodeActivity;)V

    invoke-virtual {v0, v1}, Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;->setOnRetryClickListener(Landroid/view/View$OnClickListener;)V

    .line 109
    invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;

    move-result-object v0

    sget-object v1, Lcom/moji/statistics/EVENT_TAG;->ME_CARD_SHOW:Lcom/moji/statistics/EVENT_TAG;

    invoke-virtual {v0, v1}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;)Lcom/moji/statistics/EventManager;

    .line 110
    new-instance v0, Lcom/moji/preferences/ProcessPrefer;

    invoke-direct {v0}, Lcom/moji/preferences/ProcessPrefer;-><init>()V

    iput-object v0, p0, Lcom/moji/member/MemberMyCodeActivity;->p:Lcom/moji/preferences/ProcessPrefer;

    .line 111
    invoke-static {}, Lcom/moji/tool/DeviceTool;->c()I

    move-result v0

    const/high16 v1, 0x42c80000    # 100.0f

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

    move-result v1

    sub-int/2addr v0, v1

    iput v0, p0, Lcom/moji/member/MemberMyCodeActivity;->r:I

    return-void
.end method

.method private c()V
    .locals 2

    .line 169
    iget-object v0, p0, Lcom/moji/member/MemberMyCodeActivity;->a:Lcom/moji/titlebar/MJTitleBar;

    invoke-virtual {v0}, Lcom/moji/titlebar/MJTitleBar;->getActionCount()I

    move-result v0

    if-lez v0, :cond_0

    .line 170
    iget-object v0, p0, Lcom/moji/member/MemberMyCodeActivity;->a:Lcom/moji/titlebar/MJTitleBar;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/moji/titlebar/MJTitleBar;->b(I)V

    .line 172
    :cond_0
    iget-object v0, p0, Lcom/moji/member/MemberMyCodeActivity;->a:Lcom/moji/titlebar/MJTitleBar;

    invoke-virtual {v0}, Lcom/moji/titlebar/MJTitleBar;->g()V

    .line 173
    iget-object v0, p0, Lcom/moji/member/MemberMyCodeActivity;->a:Lcom/moji/titlebar/MJTitleBar;

    invoke-virtual {v0}, Lcom/moji/titlebar/MJTitleBar;->i()V

    .line 174
    iget-object v0, p0, Lcom/moji/member/MemberMyCodeActivity;->k:Landroid/widget/TextView;

    const/16 v1, 0x8

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

    return-void
.end method

.method static synthetic c(Lcom/moji/member/MemberMyCodeActivity;)V
    .locals 0

    .line 48
    invoke-direct {p0}, Lcom/moji/member/MemberMyCodeActivity;->d()V

    return-void
.end method

.method static synthetic d(Lcom/moji/member/MemberMyCodeActivity;)Lorg/json/JSONObject;
    .locals 0

    .line 48
    iget-object p0, p0, Lcom/moji/member/MemberMyCodeActivity;->m:Lorg/json/JSONObject;

    return-object p0
.end method

.method private d()V
    .locals 5

    .line 233
    iget-object v0, p0, Lcom/moji/member/MemberMyCodeActivity;->j:Lcom/moji/member/adapter/MemberMyCodeAdapter;

    invoke-virtual {v0}, Lcom/moji/member/adapter/MemberMyCodeAdapter;->d()Ljava/util/List;

    move-result-object v0

    .line 234
    iget-object v1, p0, Lcom/moji/member/MemberMyCodeActivity;->j:Lcom/moji/member/adapter/MemberMyCodeAdapter;

    invoke-virtual {v1}, Lcom/moji/member/adapter/MemberMyCodeAdapter;->e()Ljava/util/List;

    move-result-object v1

    const/4 v2, 0x1

    const/4 v3, 0x0

    if-eqz v0, :cond_2

    .line 235
    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v4

    if-lez v4, :cond_2

    .line 236
    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :cond_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v4

    if-eqz v4, :cond_1

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Lcom/moji/http/msc/entity/MemberExCode$MemberExCodeDetail;

    .line 237
    iget-boolean v4, v4, Lcom/moji/http/msc/entity/MemberExCode$MemberExCodeDetail;->is_select:Z

    if-eqz v4, :cond_0

    .line 238
    iget-object v0, p0, Lcom/moji/member/MemberMyCodeActivity;->k:Landroid/widget/TextView;

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

    .line 239
    iget-object v0, p0, Lcom/moji/member/MemberMyCodeActivity;->k:Landroid/widget/TextView;

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

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

    move-result v1

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

    return-void

    .line 243
    :cond_1
    iget-object v0, p0, Lcom/moji/member/MemberMyCodeActivity;->k:Landroid/widget/TextView;

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

    .line 244
    iget-object v0, p0, Lcom/moji/member/MemberMyCodeActivity;->k:Landroid/widget/TextView;

    sget v4, Lcom/moji/member/R$color;->moji_blue_50p:I

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

    move-result v4

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

    :cond_2
    if-eqz v1, :cond_5

    .line 246
    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_5

    .line 247
    invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :cond_3
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_4

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/moji/http/msc/entity/MemberExCode$MemberExCodeDetail;

    .line 248
    iget-boolean v1, v1, Lcom/moji/http/msc/entity/MemberExCode$MemberExCodeDetail;->is_select:Z

    if-eqz v1, :cond_3

    .line 249
    iget-object v0, p0, Lcom/moji/member/MemberMyCodeActivity;->k:Landroid/widget/TextView;

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

    .line 250
    iget-object v0, p0, Lcom/moji/member/MemberMyCodeActivity;->k:Landroid/widget/TextView;

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

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

    move-result v1

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

    return-void

    .line 254
    :cond_4
    iget-object v0, p0, Lcom/moji/member/MemberMyCodeActivity;->k:Landroid/widget/TextView;

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

    .line 255
    iget-object v0, p0, Lcom/moji/member/MemberMyCodeActivity;->k:Landroid/widget/TextView;

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

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

    move-result v1

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

    :cond_5
    return-void
.end method

.method static synthetic e(Lcom/moji/member/MemberMyCodeActivity;)Lcom/moji/preferences/ProcessPrefer;
    .locals 0

    .line 48
    iget-object p0, p0, Lcom/moji/member/MemberMyCodeActivity;->p:Lcom/moji/preferences/ProcessPrefer;

    return-object p0
.end method

.method static synthetic f(Lcom/moji/member/MemberMyCodeActivity;)Lcom/moji/member/adapter/MemberMyCodeAdapter;
    .locals 0

    .line 48
    iget-object p0, p0, Lcom/moji/member/MemberMyCodeActivity;->j:Lcom/moji/member/adapter/MemberMyCodeAdapter;

    return-object p0
.end method

.method static synthetic g(Lcom/moji/member/MemberMyCodeActivity;)Lcom/moji/member/MemberMyCodeActivity$mRightTextClickListener;
    .locals 0

    .line 48
    iget-object p0, p0, Lcom/moji/member/MemberMyCodeActivity;->l:Lcom/moji/member/MemberMyCodeActivity$mRightTextClickListener;

    return-object p0
.end method

.method static synthetic h(Lcom/moji/member/MemberMyCodeActivity;)Landroid/widget/ScrollView;
    .locals 0

    .line 48
    iget-object p0, p0, Lcom/moji/member/MemberMyCodeActivity;->q:Landroid/widget/ScrollView;

    return-object p0
.end method

.method static synthetic i(Lcom/moji/member/MemberMyCodeActivity;)I
    .locals 0

    .line 48
    iget p0, p0, Lcom/moji/member/MemberMyCodeActivity;->r:I

    return p0
.end method

.method static synthetic j(Lcom/moji/member/MemberMyCodeActivity;)Landroid/view/View;
    .locals 0

    .line 48
    iget-object p0, p0, Lcom/moji/member/MemberMyCodeActivity;->s:Landroid/view/View;

    return-object p0
.end method


# virtual methods
.method public CheckLoginStatus()V
    .locals 7
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "ResourceType"
        }
    .end annotation

    .line 122
    invoke-static {}, Lcom/moji/account/data/AccountProvider;->a()Lcom/moji/account/data/AccountProvider;

    move-result-object v0

    invoke-virtual {v0}, Lcom/moji/account/data/AccountProvider;->f()Z

    move-result v0

    iput-boolean v0, p0, Lcom/moji/member/MemberMyCodeActivity;->o:Z

    .line 123
    iget-boolean v0, p0, Lcom/moji/member/MemberMyCodeActivity;->o:Z

    if-nez v0, :cond_0

    .line 124
    sget v0, Lcom/moji/member/R$string;->need_login_remind:I

    invoke-virtual {p0, v0}, Lcom/moji/member/MemberMyCodeActivity;->getString(I)Ljava/lang/String;

    move-result-object v3

    .line 125
    iget-object v1, p0, Lcom/moji/member/MemberMyCodeActivity;->b:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;

    sget v2, Lcom/moji/member/R$drawable;->need_login_icon:I

    const-string v4, ""

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

    .line 126
    invoke-virtual {p0, v0}, Lcom/moji/member/MemberMyCodeActivity;->getString(I)Ljava/lang/String;

    move-result-object v5

    new-instance v6, Lcom/moji/member/MemberMyCodeActivity$3;

    invoke-direct {v6, p0}, Lcom/moji/member/MemberMyCodeActivity$3;-><init>(Lcom/moji/member/MemberMyCodeActivity;)V

    .line 125
    invoke-virtual/range {v1 .. v6}, Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;->a(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Landroid/view/View$OnClickListener;)V

    .line 135
    iget-object v0, p0, Lcom/moji/member/MemberMyCodeActivity;->b:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;

    sget v1, Lcom/moji/member/R$drawable;->member_card_use_btn:I

    invoke-virtual {v0, v1}, Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;->setActionTextBG(I)V

    goto :goto_0

    .line 137
    :cond_0
    iget-object v0, p0, Lcom/moji/member/MemberMyCodeActivity;->b:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;

    invoke-virtual {v0}, Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;->F()V

    .line 138
    iget-object v0, p0, Lcom/moji/member/MemberMyCodeActivity;->i:Lcom/moji/member/presenter/MemberMyCodePresenter;

    invoke-virtual {v0}, Lcom/moji/member/presenter/MemberMyCodePresenter;->a()V

    :goto_0
    return-void
.end method

.method public convertFailed()V
    .locals 1

    .line 192
    iget-object v0, p0, Lcom/moji/member/MemberMyCodeActivity;->i:Lcom/moji/member/presenter/MemberMyCodePresenter;

    invoke-virtual {v0, p0}, Lcom/moji/member/presenter/MemberMyCodePresenter;->a(Landroid/content/Context;)V

    return-void
.end method

.method public convertSuccess(Lcom/moji/http/msc/entity/MemberExCode$MemberExCodeDetail;Lcom/moji/requestcore/entity/MJBaseRespRc;)V
    .locals 1

    .line 179
    invoke-virtual {p2}, Lcom/moji/requestcore/entity/MJBaseRespRc;->getCode()I

    move-result v0

    if-nez v0, :cond_1

    .line 180
    iget-boolean p2, p0, Lcom/moji/member/MemberMyCodeActivity;->o:Z

    if-eqz p2, :cond_0

    iget-object p2, p0, Lcom/moji/member/MemberMyCodeActivity;->p:Lcom/moji/preferences/ProcessPrefer;

    invoke-virtual {p2}, Lcom/moji/preferences/ProcessPrefer;->g()Z

    move-result p2

    if-eqz p2, :cond_0

    .line 181
    invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;

    move-result-object p2

    sget-object v0, Lcom/moji/statistics/EVENT_TAG;->ME_CARD_MEMBER_USE_SHOW:Lcom/moji/statistics/EVENT_TAG;

    invoke-virtual {p2, v0}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;)Lcom/moji/statistics/EventManager;

    .line 183
    :cond_0
    iget-object p2, p0, Lcom/moji/member/MemberMyCodeActivity;->i:Lcom/moji/member/presenter/MemberMyCodePresenter;

    invoke-virtual {p2, p0, p1}, Lcom/moji/member/presenter/MemberMyCodePresenter;->a(Landroid/content/Context;Lcom/moji/http/msc/entity/MemberExCode$MemberExCodeDetail;)V

    .line 184
    iget-object p1, p0, Lcom/moji/member/MemberMyCodeActivity;->i:Lcom/moji/member/presenter/MemberMyCodePresenter;

    invoke-virtual {p1}, Lcom/moji/member/presenter/MemberMyCodePresenter;->a()V

    goto :goto_0

    .line 186
    :cond_1
    invoke-virtual {p2}, Lcom/moji/requestcore/entity/MJBaseRespRc;->getDesc()Ljava/lang/String;

    move-result-object p1

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

    :goto_0
    return-void
.end method

.method public deleteCodeFail(Lcom/moji/requestcore/MJException;)V
    .locals 3

    const-string v0, "MemberMyCodeActivity"

    .line 274
    new-instance v1, Ljava/lang/StringBuilder;

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

    sget v2, Lcom/moji/member/R$string;->delete_card_fail:I

    invoke-virtual {p0, v2}, Lcom/moji/member/MemberMyCodeActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

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

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

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

    move-result-object p1

    invoke-static {v0, p1}, Lcom/moji/tool/log/MJLogger;->e(Ljava/lang/String;Ljava/lang/String;)V

    .line 275
    sget p1, Lcom/moji/member/R$string;->delete_card_fail:I

    invoke-static {p1}, Lcom/moji/tool/ToastTool;->a(I)V

    return-void
.end method

.method public deleteCodeSuccess()V
    .locals 2

    .line 266
    iget-object v0, p0, Lcom/moji/member/MemberMyCodeActivity;->j:Lcom/moji/member/adapter/MemberMyCodeAdapter;

    if-eqz v0, :cond_0

    .line 267
    iget-object v0, p0, Lcom/moji/member/MemberMyCodeActivity;->j:Lcom/moji/member/adapter/MemberMyCodeAdapter;

    sget v1, Lcom/moji/member/adapter/MemberMyCodeAdapter;->b:I

    invoke-virtual {v0, v1}, Lcom/moji/member/adapter/MemberMyCodeAdapter;->f(I)V

    .line 269
    :cond_0
    iget-object v0, p0, Lcom/moji/member/MemberMyCodeActivity;->i:Lcom/moji/member/presenter/MemberMyCodePresenter;

    invoke-virtual {v0}, Lcom/moji/member/presenter/MemberMyCodePresenter;->a()V

    return-void
.end method

.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 0

    .line 280
    invoke-super {p0, p1, p2, p3}, Lcom/moji/base/MJActivity;->onActivityResult(IILandroid/content/Intent;)V

    if-eqz p1, :cond_0

    const/4 p2, 0x1

    if-ne p1, p2, :cond_2

    .line 282
    :cond_0
    invoke-static {}, Lcom/moji/account/data/AccountProvider;->a()Lcom/moji/account/data/AccountProvider;

    move-result-object p1

    invoke-virtual {p1}, Lcom/moji/account/data/AccountProvider;->f()Z

    move-result p1

    iput-boolean p1, p0, Lcom/moji/member/MemberMyCodeActivity;->o:Z

    .line 283
    iget-boolean p1, p0, Lcom/moji/member/MemberMyCodeActivity;->o:Z

    if-nez p1, :cond_1

    .line 285
    invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;

    move-result-object p1

    sget-object p2, Lcom/moji/statistics/EVENT_TAG;->ME_CARD_UNREGISTERED_ANONYMOUS_LOGIN_CLICK:Lcom/moji/statistics/EVENT_TAG;

    const-string p3, "0"

    invoke-virtual {p1, p2, p3}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;)Lcom/moji/statistics/EventManager;

    goto :goto_0

    .line 288
    :cond_1
    invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;

    move-result-object p1

    sget-object p2, Lcom/moji/statistics/EVENT_TAG;->ME_CARD_UNREGISTERED_ANONYMOUS_LOGIN_CLICK:Lcom/moji/statistics/EVENT_TAG;

    const-string p3, "1"

    invoke-virtual {p1, p2, p3}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;)Lcom/moji/statistics/EventManager;

    .line 289
    iget-object p1, p0, Lcom/moji/member/MemberMyCodeActivity;->b:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;

    invoke-virtual {p1}, Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;->F()V

    .line 290
    iget-object p1, p0, Lcom/moji/member/MemberMyCodeActivity;->i:Lcom/moji/member/presenter/MemberMyCodePresenter;

    invoke-virtual {p1}, Lcom/moji/member/presenter/MemberMyCodePresenter;->a()V

    :cond_2
    :goto_0
    return-void
.end method

.method public onBackPressed()V
    .locals 2

    .line 382
    invoke-super {p0}, Lcom/moji/base/MJActivity;->onBackPressed()V

    .line 383
    iget-object v0, p0, Lcom/moji/member/MemberMyCodeActivity;->j:Lcom/moji/member/adapter/MemberMyCodeAdapter;

    if-eqz v0, :cond_0

    .line 384
    iget-object v0, p0, Lcom/moji/member/MemberMyCodeActivity;->j:Lcom/moji/member/adapter/MemberMyCodeAdapter;

    sget v1, Lcom/moji/member/adapter/MemberMyCodeAdapter;->a:I

    invoke-virtual {v0, v1}, Lcom/moji/member/adapter/MemberMyCodeAdapter;->f(I)V

    .line 386
    :cond_0
    invoke-virtual {p0}, Lcom/moji/member/MemberMyCodeActivity;->finish()V

    return-void
.end method

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

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

    move-result p1

    sget v0, Lcom/moji/member/R$id;->tv_delete_card:I

    if-ne p1, v0, :cond_0

    .line 374
    invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;

    move-result-object p1

    sget-object v0, Lcom/moji/statistics/EVENT_TAG;->ME_CARD_DELETE:Lcom/moji/statistics/EVENT_TAG;

    invoke-virtual {p1, v0}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;)Lcom/moji/statistics/EventManager;

    .line 375
    iget-object p1, p0, Lcom/moji/member/MemberMyCodeActivity;->i:Lcom/moji/member/presenter/MemberMyCodePresenter;

    iget-object v0, p0, Lcom/moji/member/MemberMyCodeActivity;->j:Lcom/moji/member/adapter/MemberMyCodeAdapter;

    invoke-virtual {v0}, Lcom/moji/member/adapter/MemberMyCodeAdapter;->d()Ljava/util/List;

    move-result-object v0

    iget-object v1, p0, Lcom/moji/member/MemberMyCodeActivity;->j:Lcom/moji/member/adapter/MemberMyCodeAdapter;

    .line 376
    invoke-virtual {v1}, Lcom/moji/member/adapter/MemberMyCodeAdapter;->e()Ljava/util/List;

    move-result-object v1

    .line 375
    invoke-virtual {p1, p0, v0, v1}, Lcom/moji/member/presenter/MemberMyCodePresenter;->a(Landroid/content/Context;Ljava/util/List;Ljava/util/List;)V

    :cond_0
    return-void
.end method

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

    .line 69
    invoke-super {p0, p1}, Lcom/moji/base/MJActivity;->onCreate(Landroid/os/Bundle;)V

    .line 70
    sget p1, Lcom/moji/member/R$layout;->activity_member_my_code:I

    invoke-virtual {p0, p1}, Lcom/moji/member/MemberMyCodeActivity;->setContentView(I)V

    .line 71
    invoke-direct {p0}, Lcom/moji/member/MemberMyCodeActivity;->a()V

    .line 72
    invoke-direct {p0}, Lcom/moji/member/MemberMyCodeActivity;->b()V

    return-void
.end method

.method protected onResume()V
    .locals 0

    .line 116
    invoke-super {p0}, Lcom/moji/base/MJActivity;->onResume()V

    .line 117
    invoke-virtual {p0}, Lcom/moji/member/MemberMyCodeActivity;->CheckLoginStatus()V

    return-void
.end method

.method public showContent(Ljava/util/List;Ljava/util/List;)V
    .locals 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/moji/http/msc/entity/MemberExCode$MemberExCodeDetail;",
            ">;",
            "Ljava/util/List<",
            "Lcom/moji/http/msc/entity/MemberExCode$MemberExCodeDetail;",
            ">;)V"
        }
    .end annotation

    .line 198
    iget-object v0, p0, Lcom/moji/member/MemberMyCodeActivity;->b:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;

    invoke-virtual {v0}, Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;->H()V

    .line 199
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v0

    if-nez v0, :cond_0

    invoke-interface {p2}, Ljava/util/List;->size()I

    move-result v0

    if-nez v0, :cond_0

    .line 200
    iget-object p1, p0, Lcom/moji/member/MemberMyCodeActivity;->b:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;

    invoke-virtual {p1}, Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;->C()V

    .line 201
    invoke-direct {p0}, Lcom/moji/member/MemberMyCodeActivity;->c()V

    return-void

    .line 204
    :cond_0
    iget-object v0, p0, Lcom/moji/member/MemberMyCodeActivity;->b:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;

    invoke-virtual {v0}, Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;->b()V

    .line 208
    iget-object v0, p0, Lcom/moji/member/MemberMyCodeActivity;->a:Lcom/moji/titlebar/MJTitleBar;

    invoke-virtual {v0}, Lcom/moji/titlebar/MJTitleBar;->getActionCount()I

    move-result v0

    if-nez v0, :cond_1

    .line 209
    iget-object v0, p0, Lcom/moji/member/MemberMyCodeActivity;->a:Lcom/moji/titlebar/MJTitleBar;

    sget v1, Lcom/moji/member/R$string;->edit_my_card:I

    invoke-virtual {p0, v1}, Lcom/moji/member/MemberMyCodeActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    iget-object v2, p0, Lcom/moji/member/MemberMyCodeActivity;->l:Lcom/moji/member/MemberMyCodeActivity$mRightTextClickListener;

    invoke-virtual {v0, v1, v2}, Lcom/moji/titlebar/MJTitleBar;->a(Ljava/lang/String;Lcom/moji/titlebar/MJTitleBar$rightTextClickListener;)V

    .line 212
    :cond_1
    iget-object v0, p0, Lcom/moji/member/MemberMyCodeActivity;->j:Lcom/moji/member/adapter/MemberMyCodeAdapter;

    if-nez v0, :cond_2

    .line 213
    new-instance v0, Lcom/moji/member/adapter/MemberMyCodeAdapter;

    invoke-direct {v0, p1, p2}, Lcom/moji/member/adapter/MemberMyCodeAdapter;-><init>(Ljava/util/List;Ljava/util/List;)V

    iput-object v0, p0, Lcom/moji/member/MemberMyCodeActivity;->j:Lcom/moji/member/adapter/MemberMyCodeAdapter;

    .line 214
    iget-object p2, p0, Lcom/moji/member/MemberMyCodeActivity;->c:Landroid/support/v7/widget/RecyclerView;

    iget-object v0, p0, Lcom/moji/member/MemberMyCodeActivity;->j:Lcom/moji/member/adapter/MemberMyCodeAdapter;

    invoke-virtual {p2, v0}, Landroid/support/v7/widget/RecyclerView;->setAdapter(Landroid/support/v7/widget/RecyclerView$Adapter;)V

    .line 215
    iget-object p2, p0, Lcom/moji/member/MemberMyCodeActivity;->j:Lcom/moji/member/adapter/MemberMyCodeAdapter;

    new-instance v0, Lcom/moji/member/MemberMyCodeActivity$mCodeListClickListener;

    const/4 v1, 0x0

    invoke-direct {v0, p0, p1, v1}, Lcom/moji/member/MemberMyCodeActivity$mCodeListClickListener;-><init>(Lcom/moji/member/MemberMyCodeActivity;Ljava/util/List;Lcom/moji/member/MemberMyCodeActivity$1;)V

    invoke-virtual {p2, v0}, Lcom/moji/member/adapter/MemberMyCodeAdapter;->a(Lcom/moji/member/adapter/MemberMyCodeAdapter$MemberMyCodeClickListener;)V

    .line 216
    iget-object p1, p0, Lcom/moji/member/MemberMyCodeActivity;->j:Lcom/moji/member/adapter/MemberMyCodeAdapter;

    new-instance p2, Lcom/moji/member/MemberMyCodeActivity$4;

    invoke-direct {p2, p0}, Lcom/moji/member/MemberMyCodeActivity$4;-><init>(Lcom/moji/member/MemberMyCodeActivity;)V

    invoke-virtual {p1, p2}, Lcom/moji/member/adapter/MemberMyCodeAdapter;->a(Lcom/moji/member/adapter/MemberMyCodeAdapter$CheckChangeListener;)V

    goto :goto_0

    .line 228
    :cond_2
    iget-object v0, p0, Lcom/moji/member/MemberMyCodeActivity;->j:Lcom/moji/member/adapter/MemberMyCodeAdapter;

    invoke-virtual {v0, p1, p2}, Lcom/moji/member/adapter/MemberMyCodeAdapter;->a(Ljava/util/List;Ljava/util/List;)V

    :goto_0
    return-void
.end method

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

    .line 261
    iget-object p1, p0, Lcom/moji/member/MemberMyCodeActivity;->b:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;

    invoke-virtual {p1}, Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;->E()V

    return-void
.end method

.method public showNoCard()V
    .locals 4
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "ResourceType"
        }
    .end annotation

    .line 146
    sget v0, Lcom/moji/member/R$string;->member_no_card_remind:I

    invoke-virtual {p0, v0}, Lcom/moji/member/MemberMyCodeActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 148
    iget-object v1, p0, Lcom/moji/member/MemberMyCodeActivity;->b:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;

    sget v2, Lcom/moji/member/R$drawable;->no_card_icon:I

    const-string v3, ""

    invoke-virtual {v1, v2, v0, v3}, Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;->a(ILjava/lang/String;Ljava/lang/String;)V

    .line 149
    iget-object v0, p0, Lcom/moji/member/MemberMyCodeActivity;->b:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;

    iget v1, p0, Lcom/moji/member/MemberMyCodeActivity;->n:I

    invoke-virtual {v0, v1}, Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;->setLeftRightMargin(I)V

    .line 165
    invoke-direct {p0}, Lcom/moji/member/MemberMyCodeActivity;->c()V

    return-void
.end method
