.class public Lcom/moji/mjweather/me/control/MeHeadActionControl;
.super Lcom/moji/viewcontrol/MJViewControl;
.source "MeHeadActionControl.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/moji/viewcontrol/MJViewControl<",
        "Lcom/moji/account/data/UserInfo;",
        ">;",
        "Landroid/view/View$OnClickListener;"
    }
.end annotation


# instance fields
.field a:Lcom/moji/preferences/ProcessPrefer;

.field private b:Landroid/widget/TextView;

.field private c:Landroid/widget/LinearLayout;

.field private d:Landroid/widget/LinearLayout;

.field private e:Landroid/widget/LinearLayout;

.field private f:Landroid/widget/TextView;

.field private g:Landroid/widget/LinearLayout;

.field private h:Landroid/widget/TextView;

.field private i:Landroid/widget/TextView;

.field private j:Landroid/widget/LinearLayout;

.field private k:Landroid/widget/LinearLayout;

.field private l:Landroid/widget/LinearLayout;

.field private m:Lcom/moji/badge/BadgeView;

.field private n:Lcom/moji/badge/BadgeView;

.field private o:Ljava/lang/String;

.field private p:Lcom/moji/account/data/UserInfoSQLiteManager;

.field private q:Lcom/moji/badge/BadgeView;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 0

    .line 66
    invoke-direct {p0, p1}, Lcom/moji/viewcontrol/MJViewControl;-><init>(Landroid/content/Context;)V

    .line 67
    new-instance p1, Lcom/moji/preferences/ProcessPrefer;

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

    iput-object p1, p0, Lcom/moji/mjweather/me/control/MeHeadActionControl;->a:Lcom/moji/preferences/ProcessPrefer;

    .line 68
    invoke-virtual {p0}, Lcom/moji/mjweather/me/control/MeHeadActionControl;->getContext()Landroid/content/Context;

    move-result-object p1

    invoke-static {p1}, Lcom/moji/account/data/UserInfoSQLiteManager;->a(Landroid/content/Context;)Lcom/moji/account/data/UserInfoSQLiteManager;

    move-result-object p1

    iput-object p1, p0, Lcom/moji/mjweather/me/control/MeHeadActionControl;->p:Lcom/moji/account/data/UserInfoSQLiteManager;

    return-void
.end method

.method private a(Landroid/content/Context;)I
    .locals 2

    const/4 v0, -0x1

    if-nez p1, :cond_0

    return v0

    .line 265
    :cond_0
    new-instance v1, Lcom/moji/credit/util/CreditSharedPref;

    invoke-direct {v1, p1}, Lcom/moji/credit/util/CreditSharedPref;-><init>(Landroid/content/Context;)V

    .line 266
    sget-object p1, Lcom/moji/credit/util/CreditSharedPref$KeyConstant;->USER_CREDIT:Lcom/moji/credit/util/CreditSharedPref$KeyConstant;

    invoke-virtual {v1, p1, v0}, Lcom/moji/credit/util/CreditSharedPref;->a(Lcom/moji/tool/preferences/core/IPreferKey;I)I

    move-result p1

    return p1
.end method

.method private b()V
    .locals 2

    .line 88
    iget-object v0, p0, Lcom/moji/mjweather/me/control/MeHeadActionControl;->c:Landroid/widget/LinearLayout;

    const/16 v1, 0x8

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

    .line 89
    iget-object v0, p0, Lcom/moji/mjweather/me/control/MeHeadActionControl;->d:Landroid/widget/LinearLayout;

    const/4 v1, 0x0

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

    return-void
.end method

.method private b(Landroid/content/Context;Ljava/lang/String;)V
    .locals 1

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

    move-result v0

    if-eqz v0, :cond_0

    return-void

    .line 273
    :cond_0
    new-instance v0, Lcom/moji/http/cs/UserCreditRequest;

    invoke-direct {v0, p2}, Lcom/moji/http/cs/UserCreditRequest;-><init>(Ljava/lang/String;)V

    .line 274
    new-instance p2, Lcom/moji/credit/util/CreditSharedPref;

    invoke-direct {p2, p1}, Lcom/moji/credit/util/CreditSharedPref;-><init>(Landroid/content/Context;)V

    .line 275
    new-instance p1, Lcom/moji/mjweather/me/control/MeHeadActionControl$4;

    invoke-direct {p1, p0, p2}, Lcom/moji/mjweather/me/control/MeHeadActionControl$4;-><init>(Lcom/moji/mjweather/me/control/MeHeadActionControl;Lcom/moji/credit/util/CreditSharedPref;)V

    invoke-virtual {v0, p1}, Lcom/moji/http/cs/UserCreditRequest;->a(Lcom/moji/requestcore/MJBaseHttpCallback;)V

    return-void
.end method

.method private c()V
    .locals 1

    .line 126
    iget-object v0, p0, Lcom/moji/mjweather/me/control/MeHeadActionControl;->l:Landroid/widget/LinearLayout;

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

    .line 127
    iget-object v0, p0, Lcom/moji/mjweather/me/control/MeHeadActionControl;->j:Landroid/widget/LinearLayout;

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

    .line 128
    iget-object v0, p0, Lcom/moji/mjweather/me/control/MeHeadActionControl;->k:Landroid/widget/LinearLayout;

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

    .line 129
    iget-object v0, p0, Lcom/moji/mjweather/me/control/MeHeadActionControl;->b:Landroid/widget/TextView;

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

    return-void
.end method

.method private d()V
    .locals 4

    .line 133
    new-instance v0, Lcom/moji/badge/BadgeView;

    invoke-virtual {p0}, Lcom/moji/mjweather/me/control/MeHeadActionControl;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/moji/badge/BadgeView;-><init>(Landroid/content/Context;)V

    const/4 v1, 0x2

    invoke-virtual {v0, v1}, Lcom/moji/badge/BadgeView;->a(I)Lcom/moji/badge/BadgeView;

    move-result-object v0

    const/4 v2, 0x0

    invoke-virtual {v0, v2, v2, v2, v2}, Lcom/moji/badge/BadgeView;->a(IIII)Lcom/moji/badge/BadgeView;

    move-result-object v0

    iget-object v3, p0, Lcom/moji/mjweather/me/control/MeHeadActionControl;->e:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v3}, Lcom/moji/badge/BadgeView;->a(Landroid/view/View;)Lcom/moji/badge/BadgeView;

    move-result-object v0

    iput-object v0, p0, Lcom/moji/mjweather/me/control/MeHeadActionControl;->m:Lcom/moji/badge/BadgeView;

    .line 134
    iget-object v0, p0, Lcom/moji/mjweather/me/control/MeHeadActionControl;->m:Lcom/moji/badge/BadgeView;

    sget-object v3, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_MINE:Lcom/moji/badge/BadgeEvent$TYPE;

    invoke-virtual {v0, v3}, Lcom/moji/badge/BadgeView;->a(Lcom/moji/badge/BadgeEvent$TYPE;)Z

    .line 135
    new-instance v0, Lcom/moji/badge/BadgeView;

    invoke-virtual {p0}, Lcom/moji/mjweather/me/control/MeHeadActionControl;->getContext()Landroid/content/Context;

    move-result-object v3

    invoke-direct {v0, v3}, Lcom/moji/badge/BadgeView;-><init>(Landroid/content/Context;)V

    invoke-virtual {v0, v1}, Lcom/moji/badge/BadgeView;->a(I)Lcom/moji/badge/BadgeView;

    move-result-object v0

    invoke-virtual {v0, v2, v2, v2, v2}, Lcom/moji/badge/BadgeView;->a(IIII)Lcom/moji/badge/BadgeView;

    move-result-object v0

    iget-object v1, p0, Lcom/moji/mjweather/me/control/MeHeadActionControl;->g:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v1}, Lcom/moji/badge/BadgeView;->a(Landroid/view/View;)Lcom/moji/badge/BadgeView;

    move-result-object v0

    iput-object v0, p0, Lcom/moji/mjweather/me/control/MeHeadActionControl;->n:Lcom/moji/badge/BadgeView;

    .line 136
    iget-object v0, p0, Lcom/moji/mjweather/me/control/MeHeadActionControl;->n:Lcom/moji/badge/BadgeView;

    sget-object v1, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_FRIEND_DYNAMIC:Lcom/moji/badge/BadgeEvent$TYPE;

    invoke-virtual {v0, v1}, Lcom/moji/badge/BadgeView;->a(Lcom/moji/badge/BadgeEvent$TYPE;)Z

    .line 137
    new-instance v0, Lcom/moji/badge/BadgeView;

    invoke-virtual {p0}, Lcom/moji/mjweather/me/control/MeHeadActionControl;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/moji/badge/BadgeView;-><init>(Landroid/content/Context;)V

    const/16 v1, 0x9

    invoke-virtual {v0, v1}, Lcom/moji/badge/BadgeView;->a(I)Lcom/moji/badge/BadgeView;

    move-result-object v0

    invoke-virtual {p0}, Lcom/moji/mjweather/me/control/MeHeadActionControl;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v3, 0x7f07023c

    invoke-virtual {v1, v3}, Landroid/content/res/Resources;->getDimension(I)F

    move-result v1

    float-to-int v1, v1

    invoke-virtual {v0, v2, v2, v1, v2}, Lcom/moji/badge/BadgeView;->a(IIII)Lcom/moji/badge/BadgeView;

    move-result-object v0

    iget-object v1, p0, Lcom/moji/mjweather/me/control/MeHeadActionControl;->b:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Lcom/moji/badge/BadgeView;->a(Landroid/view/View;)Lcom/moji/badge/BadgeView;

    move-result-object v0

    iput-object v0, p0, Lcom/moji/mjweather/me/control/MeHeadActionControl;->q:Lcom/moji/badge/BadgeView;

    .line 138
    iget-object v0, p0, Lcom/moji/mjweather/me/control/MeHeadActionControl;->q:Lcom/moji/badge/BadgeView;

    sget-object v1, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_XIAOMO_COUNT:Lcom/moji/badge/BadgeEvent$TYPE;

    invoke-virtual {v0, v1}, Lcom/moji/badge/BadgeView;->a(Lcom/moji/badge/BadgeEvent$TYPE;)Z

    return-void
.end method

.method private e()V
    .locals 5

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

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

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

    move-result-object v0

    .line 190
    new-instance v1, Lcom/moji/dialog/RealNameDialogHelper$Builder;

    invoke-virtual {p0}, Lcom/moji/mjweather/me/control/MeHeadActionControl;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-direct {v1, v2}, Lcom/moji/dialog/RealNameDialogHelper$Builder;-><init>(Landroid/content/Context;)V

    new-instance v2, Lcom/moji/mjweather/me/control/MeHeadActionControl$1;

    invoke-direct {v2, p0}, Lcom/moji/mjweather/me/control/MeHeadActionControl$1;-><init>(Lcom/moji/mjweather/me/control/MeHeadActionControl;)V

    .line 191
    invoke-virtual {v1, v2}, Lcom/moji/dialog/RealNameDialogHelper$Builder;->a(Lcom/moji/dialog/RealNameDialogHelper$PositiveCallback;)Lcom/moji/dialog/RealNameDialogHelper$Builder;

    move-result-object v1

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

    move-result v2

    const/4 v3, 0x0

    if-nez v2, :cond_1

    const-string v2, "null"

    invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    goto :goto_1

    :cond_1
    :goto_0
    const/4 v0, 0x1

    :goto_1
    invoke-virtual {v1, v0}, Lcom/moji/dialog/RealNameDialogHelper$Builder;->a(Z)Lcom/moji/dialog/RealNameDialogHelper$Builder;

    move-result-object v0

    .line 198
    invoke-virtual {v0}, Lcom/moji/dialog/RealNameDialogHelper$Builder;->a()Z

    move-result v0

    if-nez v0, :cond_2

    .line 200
    invoke-virtual {p0}, Lcom/moji/mjweather/me/control/MeHeadActionControl;->getContext()Landroid/content/Context;

    move-result-object v0

    check-cast v0, Lcom/moji/base/MJActivity;

    .line 201
    new-instance v1, Landroid/content/Intent;

    invoke-virtual {p0}, Lcom/moji/mjweather/me/control/MeHeadActionControl;->getContext()Landroid/content/Context;

    move-result-object v2

    const-class v4, Lcom/moji/user/frienddynamic/FriendDynamicActivity;

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

    .line 202
    invoke-virtual {v0, v1}, Lcom/moji/base/MJActivity;->startActivity(Landroid/content/Intent;)V

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

    move-result-object v0

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

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

    .line 204
    iget-object v0, p0, Lcom/moji/mjweather/me/control/MeHeadActionControl;->n:Lcom/moji/badge/BadgeView;

    if-eqz v0, :cond_2

    .line 205
    invoke-static {}, Lcom/moji/redpoint/RedPointManager;->a()Lcom/moji/redpoint/RedPointManager;

    move-result-object v0

    const/16 v1, 0x12

    invoke-virtual {v0, v1, v3}, Lcom/moji/redpoint/RedPointManager;->a(IZ)V

    :cond_2
    return-void
.end method

.method private f()V
    .locals 3

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

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

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

    move-result-object v0

    .line 212
    new-instance v1, Lcom/moji/dialog/RealNameDialogHelper$Builder;

    invoke-virtual {p0}, Lcom/moji/mjweather/me/control/MeHeadActionControl;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-direct {v1, v2}, Lcom/moji/dialog/RealNameDialogHelper$Builder;-><init>(Landroid/content/Context;)V

    new-instance v2, Lcom/moji/mjweather/me/control/MeHeadActionControl$2;

    invoke-direct {v2, p0}, Lcom/moji/mjweather/me/control/MeHeadActionControl$2;-><init>(Lcom/moji/mjweather/me/control/MeHeadActionControl;)V

    .line 213
    invoke-virtual {v1, v2}, Lcom/moji/dialog/RealNameDialogHelper$Builder;->a(Lcom/moji/dialog/RealNameDialogHelper$PositiveCallback;)Lcom/moji/dialog/RealNameDialogHelper$Builder;

    move-result-object v1

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

    move-result v2

    if-nez v2, :cond_1

    const-string v2, "null"

    invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    goto :goto_1

    :cond_1
    :goto_0
    const/4 v0, 0x1

    :goto_1
    invoke-virtual {v1, v0}, Lcom/moji/dialog/RealNameDialogHelper$Builder;->a(Z)Lcom/moji/dialog/RealNameDialogHelper$Builder;

    move-result-object v0

    .line 220
    invoke-virtual {v0}, Lcom/moji/dialog/RealNameDialogHelper$Builder;->a()Z

    move-result v0

    if-nez v0, :cond_2

    .line 222
    invoke-virtual {p0}, Lcom/moji/mjweather/me/control/MeHeadActionControl;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/moji/mjweather/NavigationManager;->q(Landroid/content/Context;)V

    .line 223
    invoke-static {}, Lcom/moji/redpoint/RedPointManager;->a()Lcom/moji/redpoint/RedPointManager;

    move-result-object v0

    const/16 v1, 0x14

    invoke-virtual {v0, v1}, Lcom/moji/redpoint/RedPointManager;->a(I)V

    :cond_2
    return-void
.end method

.method private g()V
    .locals 3

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

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

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

    move-result-object v0

    .line 229
    new-instance v1, Lcom/moji/dialog/RealNameDialogHelper$Builder;

    invoke-virtual {p0}, Lcom/moji/mjweather/me/control/MeHeadActionControl;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-direct {v1, v2}, Lcom/moji/dialog/RealNameDialogHelper$Builder;-><init>(Landroid/content/Context;)V

    new-instance v2, Lcom/moji/mjweather/me/control/MeHeadActionControl$3;

    invoke-direct {v2, p0}, Lcom/moji/mjweather/me/control/MeHeadActionControl$3;-><init>(Lcom/moji/mjweather/me/control/MeHeadActionControl;)V

    .line 230
    invoke-virtual {v1, v2}, Lcom/moji/dialog/RealNameDialogHelper$Builder;->a(Lcom/moji/dialog/RealNameDialogHelper$PositiveCallback;)Lcom/moji/dialog/RealNameDialogHelper$Builder;

    move-result-object v1

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

    move-result v2

    if-nez v2, :cond_1

    const-string v2, "null"

    invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    goto :goto_1

    :cond_1
    :goto_0
    const/4 v0, 0x1

    :goto_1
    invoke-virtual {v1, v0}, Lcom/moji/dialog/RealNameDialogHelper$Builder;->a(Z)Lcom/moji/dialog/RealNameDialogHelper$Builder;

    move-result-object v0

    .line 237
    invoke-virtual {v0}, Lcom/moji/dialog/RealNameDialogHelper$Builder;->a()Z

    move-result v0

    if-nez v0, :cond_2

    .line 239
    new-instance v0, Landroid/content/ComponentName;

    invoke-virtual {p0}, Lcom/moji/mjweather/me/control/MeHeadActionControl;->getContext()Landroid/content/Context;

    move-result-object v1

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

    move-result-object v1

    const-string v2, "com.moji.credit.MyCreditActivity"

    invoke-direct {v0, v1, v2}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    .line 240
    new-instance v1, Landroid/content/Intent;

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

    .line 241
    invoke-virtual {v1, v0}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;

    .line 242
    invoke-virtual {p0}, Lcom/moji/mjweather/me/control/MeHeadActionControl;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    .line 243
    invoke-virtual {p0}, Lcom/moji/mjweather/me/control/MeHeadActionControl;->getContext()Landroid/content/Context;

    move-result-object v0

    instance-of v0, v0, Lcom/moji/base/MJActivity;

    if-eqz v0, :cond_2

    .line 244
    invoke-virtual {p0}, Lcom/moji/mjweather/me/control/MeHeadActionControl;->getContext()Landroid/content/Context;

    move-result-object v0

    check-cast v0, Lcom/moji/base/MJActivity;

    const v1, 0x7f01000a

    const v2, 0x7f010015

    .line 245
    invoke-virtual {v0, v1, v2}, Lcom/moji/base/MJActivity;->overridePendingTransition(II)V

    :cond_2
    return-void
.end method


# virtual methods
.method public a()V
    .locals 2

    .line 83
    iget-object v0, p0, Lcom/moji/mjweather/me/control/MeHeadActionControl;->c:Landroid/widget/LinearLayout;

    const/4 v1, 0x0

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

    .line 84
    iget-object v0, p0, Lcom/moji/mjweather/me/control/MeHeadActionControl;->d:Landroid/widget/LinearLayout;

    const/16 v1, 0x8

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

    return-void
.end method

.method public a(I)V
    .locals 1

    .line 152
    iget-object v0, p0, Lcom/moji/mjweather/me/control/MeHeadActionControl;->f:Landroid/widget/TextView;

    if-eqz v0, :cond_1

    if-ltz p1, :cond_1

    const v0, 0x1869f

    if-le p1, v0, :cond_0

    .line 154
    iget-object p1, p0, Lcom/moji/mjweather/me/control/MeHeadActionControl;->f:Landroid/widget/TextView;

    const-string v0, "99999+"

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

    goto :goto_0

    .line 156
    :cond_0
    iget-object v0, p0, Lcom/moji/mjweather/me/control/MeHeadActionControl;->f:Landroid/widget/TextView;

    invoke-static {p1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object p1

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

    :cond_1
    :goto_0
    return-void
.end method

.method public a(Landroid/content/Context;Ljava/lang/String;)V
    .locals 1

    if-nez p1, :cond_0

    return-void

    .line 254
    :cond_0
    invoke-direct {p0, p1}, Lcom/moji/mjweather/me/control/MeHeadActionControl;->a(Landroid/content/Context;)I

    move-result v0

    if-ltz v0, :cond_1

    .line 256
    invoke-virtual {p0, v0}, Lcom/moji/mjweather/me/control/MeHeadActionControl;->a(I)V

    .line 258
    :cond_1
    invoke-direct {p0, p1, p2}, Lcom/moji/mjweather/me/control/MeHeadActionControl;->b(Landroid/content/Context;Ljava/lang/String;)V

    return-void
.end method

.method public a(Lcom/moji/account/data/UserInfo;)V
    .locals 1

    if-nez p1, :cond_0

    return-void

    .line 145
    :cond_0
    invoke-direct {p0}, Lcom/moji/mjweather/me/control/MeHeadActionControl;->b()V

    .line 147
    iget-object v0, p1, Lcom/moji/account/data/UserInfo;->sns_id:Ljava/lang/String;

    iput-object v0, p0, Lcom/moji/mjweather/me/control/MeHeadActionControl;->o:Ljava/lang/String;

    .line 148
    invoke-virtual {p0}, Lcom/moji/mjweather/me/control/MeHeadActionControl;->getContext()Landroid/content/Context;

    move-result-object v0

    iget-object p1, p1, Lcom/moji/account/data/UserInfo;->sns_id:Ljava/lang/String;

    invoke-virtual {p0, v0, p1}, Lcom/moji/mjweather/me/control/MeHeadActionControl;->a(Landroid/content/Context;Ljava/lang/String;)V

    return-void
.end method

.method protected getResLayoutId()I
    .locals 1

    const v0, 0x7f0b0157

    return v0
.end method

.method public synthetic onBindViewData(Ljava/lang/Object;)V
    .locals 0

    .line 41
    check-cast p1, Lcom/moji/account/data/UserInfo;

    invoke-virtual {p0, p1}, Lcom/moji/mjweather/me/control/MeHeadActionControl;->a(Lcom/moji/account/data/UserInfo;)V

    return-void
.end method

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

    .line 163
    invoke-static {}, Lcom/moji/tool/Utils;->b()Z

    move-result v0

    if-eqz v0, :cond_0

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

    move-result p1

    sparse-switch p1, :sswitch_data_0

    goto :goto_0

    .line 179
    :sswitch_0
    invoke-virtual {p0}, Lcom/moji/mjweather/me/control/MeHeadActionControl;->getContext()Landroid/content/Context;

    move-result-object p1

    invoke-static {p1}, Lcom/moji/mjweather/NavigationManager;->r(Landroid/content/Context;)V

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

    move-result-object p1

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

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

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

    move-result-object p1

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

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

    .line 182
    invoke-static {}, Lcom/moji/redpoint/RedPointManager;->a()Lcom/moji/redpoint/RedPointManager;

    move-result-object p1

    const/16 v0, 0x13

    invoke-virtual {p1, v0}, Lcom/moji/redpoint/RedPointManager;->a(I)V

    goto :goto_0

    .line 175
    :sswitch_1
    invoke-direct {p0}, Lcom/moji/mjweather/me/control/MeHeadActionControl;->g()V

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

    move-result-object p1

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

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

    goto :goto_0

    .line 170
    :sswitch_2
    invoke-direct {p0}, Lcom/moji/mjweather/me/control/MeHeadActionControl;->f()V

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

    move-result-object p1

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

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

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

    move-result-object p1

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

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

    goto :goto_0

    .line 166
    :sswitch_3
    invoke-direct {p0}, Lcom/moji/mjweather/me/control/MeHeadActionControl;->e()V

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

    move-result-object p1

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

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

    :cond_0
    :goto_0
    return-void

    nop

    :sswitch_data_0
    .sparse-switch
        0x7f0904f3 -> :sswitch_3
        0x7f09051f -> :sswitch_2
        0x7f090520 -> :sswitch_1
        0x7f090ad6 -> :sswitch_0
    .end sparse-switch
.end method

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

    .line 303
    invoke-super {p0, p1}, Lcom/moji/viewcontrol/MJViewControl;->onCreate(Landroid/os/Bundle;)V

    .line 304
    invoke-static {}, Lorg/greenrobot/eventbus/EventBus;->a()Lorg/greenrobot/eventbus/EventBus;

    move-result-object p1

    invoke-virtual {p1, p0}, Lorg/greenrobot/eventbus/EventBus;->a(Ljava/lang/Object;)V

    return-void
.end method

.method protected onCreatedView(Landroid/view/View;)V
    .locals 2

    const v0, 0x7f090526

    .line 101
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/moji/mjweather/me/control/MeHeadActionControl;->c:Landroid/widget/LinearLayout;

    const v0, 0x7f090ad6

    .line 102
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

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

    const v0, 0x7f090527

    .line 104
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/moji/mjweather/me/control/MeHeadActionControl;->d:Landroid/widget/LinearLayout;

    const v0, 0x7f09024f

    .line 105
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/moji/mjweather/me/control/MeHeadActionControl;->e:Landroid/widget/LinearLayout;

    const v0, 0x7f090afc

    .line 106
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/moji/mjweather/me/control/MeHeadActionControl;->f:Landroid/widget/TextView;

    const v0, 0x7f090242

    .line 107
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/moji/mjweather/me/control/MeHeadActionControl;->g:Landroid/widget/LinearLayout;

    const v0, 0x7f090a8b

    .line 108
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/moji/mjweather/me/control/MeHeadActionControl;->h:Landroid/widget/TextView;

    const v0, 0x7f090a8c

    .line 109
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

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

    const v0, 0x7f0904f3

    .line 112
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/moji/mjweather/me/control/MeHeadActionControl;->j:Landroid/widget/LinearLayout;

    const v0, 0x7f090520

    .line 113
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/moji/mjweather/me/control/MeHeadActionControl;->k:Landroid/widget/LinearLayout;

    const v0, 0x7f09051f

    .line 114
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/LinearLayout;

    iput-object p1, p0, Lcom/moji/mjweather/me/control/MeHeadActionControl;->l:Landroid/widget/LinearLayout;

    .line 116
    invoke-virtual {p0}, Lcom/moji/mjweather/me/control/MeHeadActionControl;->getContext()Landroid/content/Context;

    move-result-object p1

    iget-object v0, p0, Lcom/moji/mjweather/me/control/MeHeadActionControl;->b:Landroid/widget/TextView;

    const v1, 0x7f080434

    invoke-static {p1, v0, v1}, Lcom/moji/mjweather/me/control/MeHeadViewControl;->setMeItemLeftDrawable(Landroid/content/Context;Landroid/widget/TextView;I)V

    .line 118
    iget-object p1, p0, Lcom/moji/mjweather/me/control/MeHeadActionControl;->b:Landroid/widget/TextView;

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

    .line 120
    invoke-direct {p0}, Lcom/moji/mjweather/me/control/MeHeadActionControl;->c()V

    .line 122
    invoke-direct {p0}, Lcom/moji/mjweather/me/control/MeHeadActionControl;->d()V

    return-void
.end method

.method public onDestroy()V
    .locals 1

    .line 309
    invoke-super {p0}, Lcom/moji/viewcontrol/MJViewControl;->onDestroy()V

    .line 310
    invoke-static {}, Lorg/greenrobot/eventbus/EventBus;->a()Lorg/greenrobot/eventbus/EventBus;

    move-result-object v0

    invoke-virtual {v0, p0}, Lorg/greenrobot/eventbus/EventBus;->c(Ljava/lang/Object;)V

    return-void
.end method

.method public onResume()V
    .locals 2

    .line 73
    iget-object v0, p0, Lcom/moji/mjweather/me/control/MeHeadActionControl;->a:Lcom/moji/preferences/ProcessPrefer;

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

    move-result v0

    if-nez v0, :cond_0

    .line 74
    invoke-virtual {p0}, Lcom/moji/mjweather/me/control/MeHeadActionControl;->a()V

    goto :goto_0

    .line 76
    :cond_0
    iget-object v0, p0, Lcom/moji/mjweather/me/control/MeHeadActionControl;->a:Lcom/moji/preferences/ProcessPrefer;

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

    move-result-object v0

    .line 77
    iget-object v1, p0, Lcom/moji/mjweather/me/control/MeHeadActionControl;->p:Lcom/moji/account/data/UserInfoSQLiteManager;

    invoke-virtual {v1, v0}, Lcom/moji/account/data/UserInfoSQLiteManager;->a(Ljava/lang/String;)Lcom/moji/account/data/UserInfo;

    move-result-object v0

    .line 78
    invoke-virtual {p0, v0}, Lcom/moji/mjweather/me/control/MeHeadActionControl;->a(Lcom/moji/account/data/UserInfo;)V

    :goto_0
    return-void
.end method

.method public refreshCredit(Lcom/moji/credit/CreditEvent;)V
    .locals 1
    .annotation runtime Lorg/greenrobot/eventbus/Subscribe;
        a = .enum Lorg/greenrobot/eventbus/ThreadMode;->MAIN:Lorg/greenrobot/eventbus/ThreadMode;
    .end annotation

    if-eqz p1, :cond_0

    .line 296
    invoke-virtual {p1}, Lcom/moji/credit/CreditEvent;->a()I

    move-result p1

    const/16 v0, 0xd

    if-ne p1, v0, :cond_0

    iget-object p1, p0, Lcom/moji/mjweather/me/control/MeHeadActionControl;->o:Ljava/lang/String;

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

    move-result p1

    if-nez p1, :cond_0

    .line 297
    invoke-virtual {p0}, Lcom/moji/mjweather/me/control/MeHeadActionControl;->getContext()Landroid/content/Context;

    move-result-object p1

    iget-object v0, p0, Lcom/moji/mjweather/me/control/MeHeadActionControl;->o:Ljava/lang/String;

    invoke-virtual {p0, p1, v0}, Lcom/moji/mjweather/me/control/MeHeadActionControl;->a(Landroid/content/Context;Ljava/lang/String;)V

    :cond_0
    return-void
.end method
