613 lines
18 KiB
Smali
613 lines
18 KiB
Smali
.class public Lcom/moji/user/message/MsgCenterActivity;
|
|
.super Lcom/moji/base/MJActivity;
|
|
.source "MsgCenterActivity.java"
|
|
|
|
# interfaces
|
|
.implements Lcom/moji/user/message/cell/MsgCell$MsgCellCallBack;
|
|
.implements Lcom/moji/user/message/presenter/MessageCenterPresenter$NewMessageCallBack;
|
|
|
|
|
|
# annotations
|
|
.annotation build Lcom/moji/router/annotation/Router;
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private a:Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;
|
|
|
|
.field private b:Landroid/support/v7/widget/RecyclerView;
|
|
|
|
.field private c:Lcom/moji/user/message/presenter/MessageCenterPresenter;
|
|
|
|
.field private i:Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;
|
|
|
|
.field private j:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;
|
|
|
|
.field private k:J
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 2
|
|
|
|
.line 31
|
|
invoke-direct {p0}, Lcom/moji/base/MJActivity;-><init>()V
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
.line 38
|
|
iput-wide v0, p0, Lcom/moji/user/message/MsgCenterActivity;->k:J
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/user/message/MsgCenterActivity;)Lcom/moji/user/message/presenter/MessageCenterPresenter;
|
|
.locals 0
|
|
|
|
.line 31
|
|
iget-object p0, p0, Lcom/moji/user/message/MsgCenterActivity;->c:Lcom/moji/user/message/presenter/MessageCenterPresenter;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private a()V
|
|
.locals 3
|
|
|
|
.line 49
|
|
sget v0, Lcom/moji/user/R$id;->mj_title_bar:I
|
|
|
|
invoke-virtual {p0, v0}, Lcom/moji/user/message/MsgCenterActivity;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/moji/titlebar/MJTitleBar;
|
|
|
|
const/high16 v1, 0x41800000 # 16.0f
|
|
|
|
.line 50
|
|
invoke-virtual {v0, v1}, Lcom/moji/titlebar/MJTitleBar;->setTitleSize(F)V
|
|
|
|
.line 51
|
|
sget v0, Lcom/moji/user/R$id;->status_layout:I
|
|
|
|
invoke-virtual {p0, v0}, Lcom/moji/user/message/MsgCenterActivity;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;
|
|
|
|
iput-object v0, p0, Lcom/moji/user/message/MsgCenterActivity;->j:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;
|
|
|
|
.line 52
|
|
iget-object v0, p0, Lcom/moji/user/message/MsgCenterActivity;->j:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;
|
|
|
|
invoke-virtual {v0}, Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;->F()V
|
|
|
|
.line 53
|
|
sget v0, Lcom/moji/user/R$id;->pulltofresh:I
|
|
|
|
invoke-virtual {p0, v0}, Lcom/moji/user/message/MsgCenterActivity;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;
|
|
|
|
iput-object v0, p0, Lcom/moji/user/message/MsgCenterActivity;->a:Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;
|
|
|
|
.line 54
|
|
iget-object v0, p0, Lcom/moji/user/message/MsgCenterActivity;->a:Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;
|
|
|
|
const-wide/16 v1, 0x320
|
|
|
|
invoke-virtual {v0, v1, v2}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->setMinKeepTime(J)V
|
|
|
|
.line 55
|
|
sget v0, Lcom/moji/user/R$id;->rv:I
|
|
|
|
invoke-virtual {p0, v0}, Lcom/moji/user/message/MsgCenterActivity;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/support/v7/widget/RecyclerView;
|
|
|
|
iput-object v0, p0, Lcom/moji/user/message/MsgCenterActivity;->b:Landroid/support/v7/widget/RecyclerView;
|
|
|
|
.line 56
|
|
new-instance v0, Landroid/support/v7/widget/LinearLayoutManager;
|
|
|
|
invoke-direct {v0, p0}, Landroid/support/v7/widget/LinearLayoutManager;-><init>(Landroid/content/Context;)V
|
|
|
|
const/4 v1, 0x1
|
|
|
|
.line 57
|
|
invoke-virtual {v0, v1}, Landroid/support/v7/widget/LinearLayoutManager;->b(I)V
|
|
|
|
.line 58
|
|
iget-object v1, p0, Lcom/moji/user/message/MsgCenterActivity;->b:Landroid/support/v7/widget/RecyclerView;
|
|
|
|
invoke-virtual {v1, v0}, Landroid/support/v7/widget/RecyclerView;->setLayoutManager(Landroid/support/v7/widget/RecyclerView$LayoutManager;)V
|
|
|
|
.line 59
|
|
new-instance v0, Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;
|
|
|
|
invoke-direct {v0}, Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/moji/user/message/MsgCenterActivity;->i:Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;
|
|
|
|
.line 60
|
|
iget-object v0, p0, Lcom/moji/user/message/MsgCenterActivity;->b:Landroid/support/v7/widget/RecyclerView;
|
|
|
|
iget-object v1, p0, Lcom/moji/user/message/MsgCenterActivity;->i:Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;
|
|
|
|
invoke-virtual {v0, v1}, Landroid/support/v7/widget/RecyclerView;->setAdapter(Landroid/support/v7/widget/RecyclerView$Adapter;)V
|
|
|
|
.line 61
|
|
new-instance v0, Lcom/moji/user/message/presenter/MessageCenterPresenter;
|
|
|
|
invoke-direct {v0, p0}, Lcom/moji/user/message/presenter/MessageCenterPresenter;-><init>(Lcom/moji/user/message/presenter/MessageCenterPresenter$NewMessageCallBack;)V
|
|
|
|
iput-object v0, p0, Lcom/moji/user/message/MsgCenterActivity;->c:Lcom/moji/user/message/presenter/MessageCenterPresenter;
|
|
|
|
.line 62
|
|
iget-object v0, p0, Lcom/moji/user/message/MsgCenterActivity;->c:Lcom/moji/user/message/presenter/MessageCenterPresenter;
|
|
|
|
invoke-virtual {v0}, Lcom/moji/user/message/presenter/MessageCenterPresenter;->a()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic b(Lcom/moji/user/message/MsgCenterActivity;)Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;
|
|
.locals 0
|
|
|
|
.line 31
|
|
iget-object p0, p0, Lcom/moji/user/message/MsgCenterActivity;->j:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private b()V
|
|
.locals 2
|
|
|
|
.line 66
|
|
iget-object v0, p0, Lcom/moji/user/message/MsgCenterActivity;->a:Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;
|
|
|
|
new-instance v1, Lcom/moji/user/message/MsgCenterActivity$1;
|
|
|
|
invoke-direct {v1, p0}, Lcom/moji/user/message/MsgCenterActivity$1;-><init>(Lcom/moji/user/message/MsgCenterActivity;)V
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->setOnRefreshListener(Lcom/moji/swiperefreshlayout/SwipeRefreshLayout$OnRefreshListener;)V
|
|
|
|
.line 72
|
|
iget-object v0, p0, Lcom/moji/user/message/MsgCenterActivity;->j:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;
|
|
|
|
new-instance v1, Lcom/moji/user/message/MsgCenterActivity$2;
|
|
|
|
invoke-direct {v1, p0}, Lcom/moji/user/message/MsgCenterActivity$2;-><init>(Lcom/moji/user/message/MsgCenterActivity;)V
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;->setOnRetryClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public clearRedPoint(I)V
|
|
.locals 2
|
|
|
|
const/4 v0, 0x1
|
|
|
|
if-eq p1, v0, :cond_4
|
|
|
|
const/4 v0, 0x3
|
|
|
|
if-eq p1, v0, :cond_3
|
|
|
|
const/4 v0, 0x5
|
|
|
|
if-eq p1, v0, :cond_2
|
|
|
|
const/16 v0, 0xb
|
|
|
|
if-eq p1, v0, :cond_1
|
|
|
|
const/16 v0, 0xf
|
|
|
|
if-eq p1, v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 146
|
|
:cond_0
|
|
invoke-static {}, Lcom/moji/redpoint/RedPointManager;->a()Lcom/moji/redpoint/RedPointManager;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1, v0}, Lcom/moji/redpoint/RedPointManager;->a(I)V
|
|
|
|
.line 147
|
|
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_INFORMATION_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 142
|
|
:cond_1
|
|
invoke-static {}, Lcom/moji/redpoint/RedPointManager;->a()Lcom/moji/redpoint/RedPointManager;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1, v0}, Lcom/moji/redpoint/RedPointManager;->a(I)V
|
|
|
|
.line 143
|
|
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_CIRCLECITY_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 138
|
|
:cond_2
|
|
invoke-static {}, Lcom/moji/redpoint/RedPointManager;->a()Lcom/moji/redpoint/RedPointManager;
|
|
|
|
move-result-object p1
|
|
|
|
const/16 v0, 0x17
|
|
|
|
invoke-virtual {p1, v0}, Lcom/moji/redpoint/RedPointManager;->a(I)V
|
|
|
|
.line 139
|
|
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_NOTICE_FOLLOW_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 135
|
|
:cond_3
|
|
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_TIMELINE_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 131
|
|
:cond_4
|
|
invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;
|
|
|
|
move-result-object p1
|
|
|
|
sget-object v1, Lcom/moji/statistics/EVENT_TAG;->ME_NEWS_NOTICE_CLICK:Lcom/moji/statistics/EVENT_TAG;
|
|
|
|
invoke-virtual {p1, v1}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;)Lcom/moji/statistics/EventManager;
|
|
|
|
.line 132
|
|
invoke-static {}, Lcom/moji/redpoint/RedPointManager;->a()Lcom/moji/redpoint/RedPointManager;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1, v0}, Lcom/moji/redpoint/RedPointManager;->a(I)V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public fillMsgToList(Ljava/util/ArrayList;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/ArrayList<",
|
|
"Lcom/moji/newliveview/dynamic/base/Cell;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 83
|
|
iget-object v0, p0, Lcom/moji/user/message/MsgCenterActivity;->i:Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;
|
|
|
|
invoke-virtual {v0}, Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;->d()V
|
|
|
|
.line 84
|
|
iget-object v0, p0, Lcom/moji/user/message/MsgCenterActivity;->i:Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;
|
|
|
|
invoke-virtual {v0, p1}, Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;->a(Ljava/util/ArrayList;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public loadOnComplete(Z)V
|
|
.locals 6
|
|
|
|
.line 89
|
|
iget-object v0, p0, Lcom/moji/user/message/MsgCenterActivity;->a:Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;
|
|
|
|
invoke-virtual {v0}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->b()V
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 91
|
|
iget-object p1, p0, Lcom/moji/user/message/MsgCenterActivity;->i:Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;
|
|
|
|
invoke-virtual {p1}, Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;->a()I
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
.line 92
|
|
iget-object v0, p0, Lcom/moji/user/message/MsgCenterActivity;->j:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;
|
|
|
|
sget v1, Lcom/moji/user/R$drawable;->view_icon_empty_no_message:I
|
|
|
|
sget p1, Lcom/moji/user/R$string;->point_title_pity:I
|
|
|
|
.line 93
|
|
invoke-static {p1}, Lcom/moji/tool/DeviceTool;->f(I)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
sget p1, Lcom/moji/user/R$string;->point_title_no_message:I
|
|
|
|
.line 94
|
|
invoke-static {p1}, Lcom/moji/tool/DeviceTool;->f(I)Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const/4 v5, 0x0
|
|
|
|
.line 92
|
|
invoke-virtual/range {v0 .. v5}, Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;->a(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Landroid/view/View$OnClickListener;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 98
|
|
:cond_0
|
|
iget-object p1, p0, Lcom/moji/user/message/MsgCenterActivity;->j:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;
|
|
|
|
invoke-virtual {p1}, Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;->G()V
|
|
|
|
goto :goto_0
|
|
|
|
.line 101
|
|
:cond_1
|
|
iget-object p1, p0, Lcom/moji/user/message/MsgCenterActivity;->i:Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;
|
|
|
|
invoke-virtual {p1}, Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;->a()I
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_3
|
|
|
|
.line 102
|
|
invoke-static {}, Lcom/moji/tool/DeviceTool;->m()Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_2
|
|
|
|
.line 103
|
|
iget-object p1, p0, Lcom/moji/user/message/MsgCenterActivity;->j:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;
|
|
|
|
invoke-static {}, Lcom/moji/tool/AppDelegate;->a()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
sget v1, Lcom/moji/user/R$string;->no_network:I
|
|
|
|
invoke-virtual {v0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1, v0}, Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;->showErrorView(Ljava/lang/String;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 105
|
|
:cond_2
|
|
iget-object p1, p0, Lcom/moji/user/message/MsgCenterActivity;->j:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;
|
|
|
|
invoke-static {}, Lcom/moji/tool/AppDelegate;->a()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
sget v1, Lcom/moji/user/R$string;->server_error:I
|
|
|
|
invoke-virtual {v0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1, v0}, Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;->showErrorView(Ljava/lang/String;)V
|
|
|
|
:cond_3
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method protected onCreate(Landroid/os/Bundle;)V
|
|
.locals 0
|
|
|
|
.line 42
|
|
invoke-super {p0, p1}, Lcom/moji/base/MJActivity;->onCreate(Landroid/os/Bundle;)V
|
|
|
|
.line 43
|
|
sget p1, Lcom/moji/user/R$layout;->activity_message_center:I
|
|
|
|
invoke-virtual {p0, p1}, Lcom/moji/user/message/MsgCenterActivity;->setContentView(I)V
|
|
|
|
.line 44
|
|
invoke-direct {p0}, Lcom/moji/user/message/MsgCenterActivity;->a()V
|
|
|
|
.line 45
|
|
invoke-direct {p0}, Lcom/moji/user/message/MsgCenterActivity;->b()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected onPause()V
|
|
.locals 5
|
|
|
|
.line 160
|
|
invoke-super {p0}, Lcom/moji/base/MJActivity;->onPause()V
|
|
|
|
.line 161
|
|
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
|
|
|
|
move-result-wide v0
|
|
|
|
iget-wide v2, p0, Lcom/moji/user/message/MsgCenterActivity;->k:J
|
|
|
|
sub-long/2addr v0, v2
|
|
|
|
.line 162
|
|
invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;
|
|
|
|
move-result-object v2
|
|
|
|
sget-object v3, Lcom/moji/statistics/EVENT_TAG;->ME_NEWS_DURATION:Lcom/moji/statistics/EVENT_TAG;
|
|
|
|
const-string v4, ""
|
|
|
|
invoke-virtual {v2, v3, v4, v0, v1}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;J)Lcom/moji/statistics/EventManager;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected onStart()V
|
|
.locals 2
|
|
|
|
.line 154
|
|
invoke-super {p0}, Lcom/moji/base/MJActivity;->onStart()V
|
|
|
|
.line 155
|
|
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
|
|
|
|
move-result-wide v0
|
|
|
|
iput-wide v0, p0, Lcom/moji/user/message/MsgCenterActivity;->k:J
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public startToActivity(Lcom/moji/user/message/NewMessage;)V
|
|
.locals 4
|
|
|
|
.line 113
|
|
new-instance v0, Landroid/content/Intent;
|
|
|
|
const-class v1, Lcom/moji/user/message/MsgDetailActivity;
|
|
|
|
invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V
|
|
|
|
.line 114
|
|
sget-object v1, Lcom/moji/user/message/MsgDetailActivity;->MSG_TYPE:Ljava/lang/String;
|
|
|
|
iget v2, p1, Lcom/moji/user/message/NewMessage;->f:I
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;
|
|
|
|
.line 115
|
|
iget v1, p1, Lcom/moji/user/message/NewMessage;->f:I
|
|
|
|
const/4 v2, 0x3
|
|
|
|
if-ne v1, v2, :cond_2
|
|
|
|
.line 116
|
|
iget v1, p1, Lcom/moji/user/message/NewMessage;->i:I
|
|
|
|
const/4 v2, 0x1
|
|
|
|
if-ne v1, v2, :cond_0
|
|
|
|
invoke-static {}, Lcom/moji/redpoint/RedPointManager;->a()Lcom/moji/redpoint/RedPointManager;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Lcom/moji/redpoint/RedPointManager;->e()I
|
|
|
|
move-result v1
|
|
|
|
if-lez v1, :cond_0
|
|
|
|
.line 117
|
|
sget-object v1, Lcom/moji/user/message/MsgDetailActivity;->TYPE_COMMENT:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;
|
|
|
|
goto :goto_0
|
|
|
|
.line 118
|
|
:cond_0
|
|
iget v1, p1, Lcom/moji/user/message/NewMessage;->i:I
|
|
|
|
const/4 v3, 0x2
|
|
|
|
if-ne v1, v3, :cond_1
|
|
|
|
invoke-static {}, Lcom/moji/redpoint/RedPointManager;->a()Lcom/moji/redpoint/RedPointManager;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Lcom/moji/redpoint/RedPointManager;->e()I
|
|
|
|
move-result v1
|
|
|
|
if-lez v1, :cond_1
|
|
|
|
invoke-static {}, Lcom/moji/redpoint/RedPointManager;->a()Lcom/moji/redpoint/RedPointManager;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Lcom/moji/redpoint/RedPointManager;->f()I
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
.line 119
|
|
sget-object v1, Lcom/moji/user/message/MsgDetailActivity;->TYPE_COMMENT:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;
|
|
|
|
goto :goto_0
|
|
|
|
.line 121
|
|
:cond_1
|
|
sget-object v1, Lcom/moji/user/message/MsgDetailActivity;->TYPE_COMMENT:Ljava/lang/String;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;
|
|
|
|
.line 124
|
|
:cond_2
|
|
:goto_0
|
|
invoke-virtual {p0, v0}, Lcom/moji/user/message/MsgCenterActivity;->startActivity(Landroid/content/Intent;)V
|
|
|
|
.line 125
|
|
iget p1, p1, Lcom/moji/user/message/NewMessage;->f:I
|
|
|
|
invoke-virtual {p0, p1}, Lcom/moji/user/message/MsgCenterActivity;->clearRedPoint(I)V
|
|
|
|
return-void
|
|
.end method
|