264 lines
6.5 KiB
Smali
264 lines
6.5 KiB
Smali
.class public Lcom/moji/user/message/MsgDetailActivity;
|
|
.super Lcom/moji/base/MJActivity;
|
|
.source "MsgDetailActivity.java"
|
|
|
|
|
|
# annotations
|
|
.annotation build Lcom/moji/router/annotation/Router;
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static MSG_TYPE:Ljava/lang/String; = "OwnerMessageTypes"
|
|
|
|
.field public static TYPE_COMMENT:Ljava/lang/String; = "type_praise"
|
|
|
|
|
|
# instance fields
|
|
.field a:Lcom/moji/base/MJFragment;
|
|
|
|
.field private b:J
|
|
|
|
.field public mType:I
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 2
|
|
|
|
.line 23
|
|
invoke-direct {p0}, Lcom/moji/base/MJActivity;-><init>()V
|
|
|
|
const/4 v0, -0x1
|
|
|
|
.line 27
|
|
iput v0, p0, Lcom/moji/user/message/MsgDetailActivity;->mType:I
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 28
|
|
iput-object v0, p0, Lcom/moji/user/message/MsgDetailActivity;->a:Lcom/moji/base/MJFragment;
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
.line 29
|
|
iput-wide v0, p0, Lcom/moji/user/message/MsgDetailActivity;->b:J
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method protected onCreate(Landroid/os/Bundle;)V
|
|
.locals 4
|
|
|
|
.line 33
|
|
invoke-super {p0, p1}, Lcom/moji/base/MJActivity;->onCreate(Landroid/os/Bundle;)V
|
|
|
|
.line 34
|
|
sget p1, Lcom/moji/user/R$layout;->activity_msg_detail:I
|
|
|
|
invoke-virtual {p0, p1}, Lcom/moji/user/message/MsgDetailActivity;->setContentView(I)V
|
|
|
|
.line 35
|
|
invoke-virtual {p0}, Lcom/moji/user/message/MsgDetailActivity;->getIntent()Landroid/content/Intent;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_5
|
|
|
|
.line 37
|
|
sget-object v0, Lcom/moji/user/message/MsgDetailActivity;->MSG_TYPE:Ljava/lang/String;
|
|
|
|
const/4 v1, -0x1
|
|
|
|
invoke-virtual {p1, v0, v1}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I
|
|
|
|
move-result v0
|
|
|
|
iput v0, p0, Lcom/moji/user/message/MsgDetailActivity;->mType:I
|
|
|
|
.line 38
|
|
sget-object v0, Lcom/moji/user/message/MsgDetailActivity;->TYPE_COMMENT:Ljava/lang/String;
|
|
|
|
invoke-virtual {p1, v0, v1}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I
|
|
|
|
move-result p1
|
|
|
|
.line 39
|
|
invoke-virtual {p0}, Lcom/moji/user/message/MsgDetailActivity;->getSupportFragmentManager()Landroid/support/v4/app/FragmentManager;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Landroid/support/v4/app/FragmentManager;->beginTransaction()Landroid/support/v4/app/FragmentTransaction;
|
|
|
|
move-result-object v0
|
|
|
|
.line 40
|
|
iget v1, p0, Lcom/moji/user/message/MsgDetailActivity;->mType:I
|
|
|
|
const/4 v2, 0x5
|
|
|
|
if-eq v1, v2, :cond_3
|
|
|
|
const/16 v2, 0xb
|
|
|
|
if-eq v1, v2, :cond_2
|
|
|
|
const/16 v2, 0xf
|
|
|
|
if-eq v1, v2, :cond_1
|
|
|
|
packed-switch v1, :pswitch_data_0
|
|
|
|
.line 63
|
|
new-instance p1, Lcom/moji/user/message/fragment/MoAnnouncementFragment;
|
|
|
|
invoke-direct {p1}, Lcom/moji/user/message/fragment/MoAnnouncementFragment;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/moji/user/message/MsgDetailActivity;->a:Lcom/moji/base/MJFragment;
|
|
|
|
goto :goto_0
|
|
|
|
.line 43
|
|
:pswitch_0
|
|
iget v1, p0, Lcom/moji/user/message/MsgDetailActivity;->mType:I
|
|
|
|
const/4 v2, 0x2
|
|
|
|
const/4 v3, 0x1
|
|
|
|
if-ne v1, v2, :cond_0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
.line 46
|
|
:cond_0
|
|
new-instance v1, Lcom/moji/user/message/fragment/MsgLiveViewFragment;
|
|
|
|
invoke-direct {v1}, Lcom/moji/user/message/fragment/MsgLiveViewFragment;-><init>()V
|
|
|
|
iput-object v1, p0, Lcom/moji/user/message/MsgDetailActivity;->a:Lcom/moji/base/MJFragment;
|
|
|
|
if-ne p1, v3, :cond_4
|
|
|
|
.line 48
|
|
new-instance p1, Landroid/os/Bundle;
|
|
|
|
invoke-direct {p1}, Landroid/os/Bundle;-><init>()V
|
|
|
|
.line 49
|
|
sget-object v1, Lcom/moji/user/message/MsgDetailActivity;->TYPE_COMMENT:Ljava/lang/String;
|
|
|
|
invoke-virtual {p1, v1, v3}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V
|
|
|
|
.line 50
|
|
iget-object v1, p0, Lcom/moji/user/message/MsgDetailActivity;->a:Lcom/moji/base/MJFragment;
|
|
|
|
invoke-virtual {v1, p1}, Lcom/moji/base/MJFragment;->setArguments(Landroid/os/Bundle;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 60
|
|
:cond_1
|
|
new-instance p1, Lcom/moji/user/message/fragment/MsgFeedFragment;
|
|
|
|
invoke-direct {p1}, Lcom/moji/user/message/fragment/MsgFeedFragment;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/moji/user/message/MsgDetailActivity;->a:Lcom/moji/base/MJFragment;
|
|
|
|
goto :goto_0
|
|
|
|
.line 57
|
|
:cond_2
|
|
new-instance p1, Lcom/moji/user/message/fragment/MsgForumFragment;
|
|
|
|
invoke-direct {p1}, Lcom/moji/user/message/fragment/MsgForumFragment;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/moji/user/message/MsgDetailActivity;->a:Lcom/moji/base/MJFragment;
|
|
|
|
goto :goto_0
|
|
|
|
.line 54
|
|
:cond_3
|
|
new-instance p1, Lcom/moji/user/message/fragment/MsgAttentionFragment;
|
|
|
|
invoke-direct {p1}, Lcom/moji/user/message/fragment/MsgAttentionFragment;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/moji/user/message/MsgDetailActivity;->a:Lcom/moji/base/MJFragment;
|
|
|
|
.line 66
|
|
:cond_4
|
|
:goto_0
|
|
sget p1, Lcom/moji/user/R$id;->rl_msg_container:I
|
|
|
|
iget-object v1, p0, Lcom/moji/user/message/MsgDetailActivity;->a:Lcom/moji/base/MJFragment;
|
|
|
|
invoke-virtual {v0, p1, v1}, Landroid/support/v4/app/FragmentTransaction;->add(ILandroid/support/v4/app/Fragment;)Landroid/support/v4/app/FragmentTransaction;
|
|
|
|
.line 67
|
|
invoke-virtual {v0}, Landroid/support/v4/app/FragmentTransaction;->commit()I
|
|
|
|
:cond_5
|
|
return-void
|
|
|
|
nop
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x2
|
|
:pswitch_0
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|
|
|
|
.method protected onPause()V
|
|
.locals 5
|
|
|
|
.line 79
|
|
invoke-super {p0}, Lcom/moji/base/MJActivity;->onPause()V
|
|
|
|
.line 80
|
|
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
|
|
|
|
move-result-wide v0
|
|
|
|
iget-wide v2, p0, Lcom/moji/user/message/MsgDetailActivity;->b:J
|
|
|
|
sub-long/2addr v0, v2
|
|
|
|
.line 81
|
|
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 73
|
|
invoke-super {p0}, Lcom/moji/base/MJActivity;->onStart()V
|
|
|
|
.line 74
|
|
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
|
|
|
|
move-result-wide v0
|
|
|
|
iput-wide v0, p0, Lcom/moji/user/message/MsgDetailActivity;->b:J
|
|
|
|
return-void
|
|
.end method
|