374 lines
11 KiB
Smali
374 lines
11 KiB
Smali
.class public Lcom/moji/user/message/fragment/MsgLiveViewFragment;
|
|
.super Lcom/moji/base/MJFragment;
|
|
.source "MsgLiveViewFragment.java"
|
|
|
|
# interfaces
|
|
.implements Landroid/view/View$OnClickListener;
|
|
|
|
|
|
# instance fields
|
|
.field public b:I
|
|
|
|
.field public c:Z
|
|
|
|
.field private d:Landroid/view/View;
|
|
|
|
.field private e:Landroid/support/v4/view/ViewPager;
|
|
|
|
.field private f:Lcom/moji/titlebar/MJTitleBar;
|
|
|
|
.field private g:Landroid/util/SparseArray;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Landroid/util/SparseArray<",
|
|
"Lcom/moji/user/message/fragment/BaseMsgFragment;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private h:Lcom/moji/user/message/fragment/BaseMsgFragment;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
.line 26
|
|
invoke-direct {p0}, Lcom/moji/base/MJFragment;-><init>()V
|
|
|
|
.line 31
|
|
new-instance v0, Landroid/util/SparseArray;
|
|
|
|
invoke-direct {v0}, Landroid/util/SparseArray;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/moji/user/message/fragment/MsgLiveViewFragment;->g:Landroid/util/SparseArray;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/user/message/fragment/MsgLiveViewFragment;)Lcom/moji/user/message/fragment/BaseMsgFragment;
|
|
.locals 0
|
|
|
|
.line 26
|
|
iget-object p0, p0, Lcom/moji/user/message/fragment/MsgLiveViewFragment;->h:Lcom/moji/user/message/fragment/BaseMsgFragment;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/user/message/fragment/MsgLiveViewFragment;Lcom/moji/user/message/fragment/BaseMsgFragment;)Lcom/moji/user/message/fragment/BaseMsgFragment;
|
|
.locals 0
|
|
|
|
.line 26
|
|
iput-object p1, p0, Lcom/moji/user/message/fragment/MsgLiveViewFragment;->h:Lcom/moji/user/message/fragment/BaseMsgFragment;
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method private a()V
|
|
.locals 2
|
|
|
|
.line 47
|
|
invoke-virtual {p0}, Lcom/moji/user/message/fragment/MsgLiveViewFragment;->getArguments()Landroid/os/Bundle;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 49
|
|
sget-object v1, Lcom/moji/user/message/MsgDetailActivity;->TYPE_COMMENT:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v1}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I
|
|
|
|
move-result v0
|
|
|
|
iput v0, p0, Lcom/moji/user/message/fragment/MsgLiveViewFragment;->b:I
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic b(Lcom/moji/user/message/fragment/MsgLiveViewFragment;)Landroid/util/SparseArray;
|
|
.locals 0
|
|
|
|
.line 26
|
|
iget-object p0, p0, Lcom/moji/user/message/fragment/MsgLiveViewFragment;->g:Landroid/util/SparseArray;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private b()V
|
|
.locals 3
|
|
|
|
.line 54
|
|
iget-object v0, p0, Lcom/moji/user/message/fragment/MsgLiveViewFragment;->d:Landroid/view/View;
|
|
|
|
sget v1, Lcom/moji/user/R$id;->title_layout:I
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/moji/titlebar/MJTitleBar;
|
|
|
|
iput-object v0, p0, Lcom/moji/user/message/fragment/MsgLiveViewFragment;->f:Lcom/moji/titlebar/MJTitleBar;
|
|
|
|
.line 55
|
|
iget-object v0, p0, Lcom/moji/user/message/fragment/MsgLiveViewFragment;->f:Lcom/moji/titlebar/MJTitleBar;
|
|
|
|
sget v1, Lcom/moji/user/R$string;->title_liveview:I
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/titlebar/MJTitleBar;->setTitleText(I)V
|
|
|
|
.line 56
|
|
iget-object v0, p0, Lcom/moji/user/message/fragment/MsgLiveViewFragment;->f:Lcom/moji/titlebar/MJTitleBar;
|
|
|
|
const v1, -0xbd6b16
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/titlebar/MJTitleBar;->setActionTextColor(I)V
|
|
|
|
.line 57
|
|
iget-object v0, p0, Lcom/moji/user/message/fragment/MsgLiveViewFragment;->f:Lcom/moji/titlebar/MJTitleBar;
|
|
|
|
new-instance v1, Lcom/moji/user/message/fragment/MsgLiveViewFragment$1;
|
|
|
|
sget v2, Lcom/moji/user/R$string;->clear_all:I
|
|
|
|
invoke-direct {v1, p0, v2}, Lcom/moji/user/message/fragment/MsgLiveViewFragment$1;-><init>(Lcom/moji/user/message/fragment/MsgLiveViewFragment;I)V
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/titlebar/MJTitleBar;->a(Lcom/moji/titlebar/MJTitleBar$Action;)Landroid/view/View;
|
|
|
|
.line 63
|
|
iget-object v0, p0, Lcom/moji/user/message/fragment/MsgLiveViewFragment;->f:Lcom/moji/titlebar/MJTitleBar;
|
|
|
|
invoke-virtual {v0}, Lcom/moji/titlebar/MJTitleBar;->h()V
|
|
|
|
.line 64
|
|
iget-object v0, p0, Lcom/moji/user/message/fragment/MsgLiveViewFragment;->d:Landroid/view/View;
|
|
|
|
sget v1, Lcom/moji/user/R$id;->viewpager:I
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/support/v4/view/ViewPager;
|
|
|
|
iput-object v0, p0, Lcom/moji/user/message/fragment/MsgLiveViewFragment;->e:Landroid/support/v4/view/ViewPager;
|
|
|
|
.line 65
|
|
iget-object v0, p0, Lcom/moji/user/message/fragment/MsgLiveViewFragment;->d:Landroid/view/View;
|
|
|
|
sget v1, Lcom/moji/user/R$id;->v_indicator:I
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/moji/newliveview/search/ui/IndicatorView;
|
|
|
|
.line 66
|
|
sget v1, Lcom/moji/user/R$array;->liveview_msg_tab:I
|
|
|
|
invoke-static {v1}, Lcom/moji/tool/DeviceTool;->b(I)[Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/newliveview/search/ui/IndicatorView;->setData([Ljava/lang/String;)V
|
|
|
|
.line 67
|
|
iget-object v1, p0, Lcom/moji/user/message/fragment/MsgLiveViewFragment;->e:Landroid/support/v4/view/ViewPager;
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/newliveview/search/ui/IndicatorView;->setViewPager(Landroid/support/v4/view/ViewPager;)V
|
|
|
|
const/4 v1, 0x1
|
|
|
|
.line 68
|
|
invoke-virtual {v0, v1}, Lcom/moji/newliveview/search/ui/IndicatorView;->setSurportedRedPoint(Z)V
|
|
|
|
.line 69
|
|
invoke-direct {p0}, Lcom/moji/user/message/fragment/MsgLiveViewFragment;->c()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic c(Lcom/moji/user/message/fragment/MsgLiveViewFragment;)Lcom/moji/titlebar/MJTitleBar;
|
|
.locals 0
|
|
|
|
.line 26
|
|
iget-object p0, p0, Lcom/moji/user/message/fragment/MsgLiveViewFragment;->f:Lcom/moji/titlebar/MJTitleBar;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private c()V
|
|
.locals 6
|
|
|
|
.line 73
|
|
new-instance v0, Lcom/moji/user/message/fragment/MsgLiveViewPraiseFragment;
|
|
|
|
invoke-direct {v0}, Lcom/moji/user/message/fragment/MsgLiveViewPraiseFragment;-><init>()V
|
|
|
|
.line 74
|
|
new-instance v1, Lcom/moji/user/message/fragment/MsgLiveViewCommentFragment;
|
|
|
|
invoke-direct {v1}, Lcom/moji/user/message/fragment/MsgLiveViewCommentFragment;-><init>()V
|
|
|
|
.line 75
|
|
iget-object v2, p0, Lcom/moji/user/message/fragment/MsgLiveViewFragment;->g:Landroid/util/SparseArray;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
invoke-virtual {v2, v3, v0}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V
|
|
|
|
.line 76
|
|
iget-object v2, p0, Lcom/moji/user/message/fragment/MsgLiveViewFragment;->g:Landroid/util/SparseArray;
|
|
|
|
const/4 v3, 0x1
|
|
|
|
invoke-virtual {v2, v3, v1}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V
|
|
|
|
.line 77
|
|
new-instance v2, Lcom/moji/user/message/MsgLiveViewPagerAdapter;
|
|
|
|
invoke-virtual {p0}, Lcom/moji/user/message/fragment/MsgLiveViewFragment;->getChildFragmentManager()Landroid/support/v4/app/FragmentManager;
|
|
|
|
move-result-object v4
|
|
|
|
iget-object v5, p0, Lcom/moji/user/message/fragment/MsgLiveViewFragment;->g:Landroid/util/SparseArray;
|
|
|
|
invoke-direct {v2, v4, v5}, Lcom/moji/user/message/MsgLiveViewPagerAdapter;-><init>(Landroid/support/v4/app/FragmentManager;Landroid/util/SparseArray;)V
|
|
|
|
.line 78
|
|
iget-object v4, p0, Lcom/moji/user/message/fragment/MsgLiveViewFragment;->e:Landroid/support/v4/view/ViewPager;
|
|
|
|
invoke-virtual {v4, v2}, Landroid/support/v4/view/ViewPager;->setAdapter(Landroid/support/v4/view/PagerAdapter;)V
|
|
|
|
.line 79
|
|
iget v2, p0, Lcom/moji/user/message/fragment/MsgLiveViewFragment;->b:I
|
|
|
|
if-ne v2, v3, :cond_0
|
|
|
|
.line 80
|
|
iget-object v0, p0, Lcom/moji/user/message/fragment/MsgLiveViewFragment;->e:Landroid/support/v4/view/ViewPager;
|
|
|
|
invoke-virtual {v0, v3}, Landroid/support/v4/view/ViewPager;->setCurrentItem(I)V
|
|
|
|
.line 81
|
|
iput-object v1, p0, Lcom/moji/user/message/fragment/MsgLiveViewFragment;->h:Lcom/moji/user/message/fragment/BaseMsgFragment;
|
|
|
|
.line 82
|
|
invoke-static {}, Lcom/moji/redpoint/RedPointManager;->a()Lcom/moji/redpoint/RedPointManager;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v1, 0x2
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/redpoint/RedPointManager;->a(I)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 84
|
|
:cond_0
|
|
iput-object v0, p0, Lcom/moji/user/message/fragment/MsgLiveViewFragment;->h:Lcom/moji/user/message/fragment/BaseMsgFragment;
|
|
|
|
.line 85
|
|
invoke-static {}, Lcom/moji/redpoint/RedPointManager;->a()Lcom/moji/redpoint/RedPointManager;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v1, 0x3
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/redpoint/RedPointManager;->a(I)V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method private d()V
|
|
.locals 2
|
|
|
|
.line 90
|
|
iget-object v0, p0, Lcom/moji/user/message/fragment/MsgLiveViewFragment;->e:Landroid/support/v4/view/ViewPager;
|
|
|
|
new-instance v1, Lcom/moji/user/message/fragment/MsgLiveViewFragment$2;
|
|
|
|
invoke-direct {v1, p0}, Lcom/moji/user/message/fragment/MsgLiveViewFragment$2;-><init>(Lcom/moji/user/message/fragment/MsgLiveViewFragment;)V
|
|
|
|
invoke-virtual {v0, v1}, Landroid/support/v4/view/ViewPager;->addOnPageChangeListener(Landroid/support/v4/view/ViewPager$OnPageChangeListener;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Z)V
|
|
.locals 0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 131
|
|
iget-object p1, p0, Lcom/moji/user/message/fragment/MsgLiveViewFragment;->f:Lcom/moji/titlebar/MJTitleBar;
|
|
|
|
invoke-virtual {p1}, Lcom/moji/titlebar/MJTitleBar;->h()V
|
|
|
|
goto :goto_0
|
|
|
|
.line 133
|
|
:cond_0
|
|
iget-object p1, p0, Lcom/moji/user/message/fragment/MsgLiveViewFragment;->f:Lcom/moji/titlebar/MJTitleBar;
|
|
|
|
invoke-virtual {p1}, Lcom/moji/titlebar/MJTitleBar;->j()V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public onClick(Landroid/view/View;)V
|
|
.locals 0
|
|
|
|
.line 139
|
|
invoke-virtual {p1}, Landroid/view/View;->getId()I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onCreateView(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
|
|
.locals 1
|
|
.param p2 # Landroid/view/ViewGroup;
|
|
.annotation build Landroid/support/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.param p3 # Landroid/os/Bundle;
|
|
.annotation build Landroid/support/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroid/support/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.line 39
|
|
sget p3, Lcom/moji/user/R$layout;->fragment_msg_liveview:I
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-virtual {p1, p3, p2, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lcom/moji/user/message/fragment/MsgLiveViewFragment;->d:Landroid/view/View;
|
|
|
|
.line 40
|
|
invoke-direct {p0}, Lcom/moji/user/message/fragment/MsgLiveViewFragment;->a()V
|
|
|
|
.line 41
|
|
invoke-direct {p0}, Lcom/moji/user/message/fragment/MsgLiveViewFragment;->b()V
|
|
|
|
.line 42
|
|
invoke-direct {p0}, Lcom/moji/user/message/fragment/MsgLiveViewFragment;->d()V
|
|
|
|
.line 43
|
|
iget-object p1, p0, Lcom/moji/user/message/fragment/MsgLiveViewFragment;->d:Landroid/view/View;
|
|
|
|
return-object p1
|
|
.end method
|