927 lines
27 KiB
Smali
927 lines
27 KiB
Smali
.class public abstract Lcom/moji/user/message/fragment/BaseMsgFragment;
|
|
.super Lcom/moji/base/MJFragment;
|
|
.source "BaseMsgFragment.java"
|
|
|
|
# interfaces
|
|
.implements Landroid/view/View$OnClickListener;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Lcom/moji/base/MJFragment;",
|
|
"Landroid/view/View$OnClickListener;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field protected b:Landroid/view/View;
|
|
|
|
.field protected c:Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;
|
|
|
|
.field protected d:Ljava/lang/Object;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"TT;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field protected e:Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;
|
|
|
|
.field protected f:Lcom/moji/newliveview/dynamic/FooterCell;
|
|
|
|
.field protected g:Lcom/moji/user/message/NewMsgDialog;
|
|
|
|
.field protected h:Z
|
|
|
|
.field protected i:Z
|
|
|
|
.field public j:Z
|
|
|
|
.field private k:Lcom/moji/titlebar/MJTitleBar;
|
|
|
|
.field private l:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;
|
|
|
|
.field private m:Landroid/support/v7/widget/RecyclerView;
|
|
|
|
.field private n:Z
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
.line 34
|
|
invoke-direct {p0}, Lcom/moji/base/MJFragment;-><init>()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 47
|
|
iput-boolean v0, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->j:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/user/message/fragment/BaseMsgFragment;)Z
|
|
.locals 0
|
|
|
|
.line 34
|
|
iget-boolean p0, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->n:Z
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method static synthetic b(Lcom/moji/user/message/fragment/BaseMsgFragment;)Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;
|
|
.locals 0
|
|
|
|
.line 34
|
|
iget-object p0, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->l:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private o()V
|
|
.locals 3
|
|
|
|
.line 108
|
|
iget-object v0, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->k:Lcom/moji/titlebar/MJTitleBar;
|
|
|
|
invoke-virtual {p0}, Lcom/moji/user/message/fragment/BaseMsgFragment;->n()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/titlebar/MJTitleBar;->setTitleText(Ljava/lang/CharSequence;)V
|
|
|
|
.line 109
|
|
iget-object v0, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->k:Lcom/moji/titlebar/MJTitleBar;
|
|
|
|
const v1, -0xbd6b16
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/titlebar/MJTitleBar;->setActionTextColor(I)V
|
|
|
|
.line 110
|
|
iget-object v0, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->k:Lcom/moji/titlebar/MJTitleBar;
|
|
|
|
new-instance v1, Lcom/moji/user/message/fragment/BaseMsgFragment$1;
|
|
|
|
sget v2, Lcom/moji/user/R$string;->clear_all:I
|
|
|
|
invoke-direct {v1, p0, v2}, Lcom/moji/user/message/fragment/BaseMsgFragment$1;-><init>(Lcom/moji/user/message/fragment/BaseMsgFragment;I)V
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/titlebar/MJTitleBar;->a(Lcom/moji/titlebar/MJTitleBar$Action;)Landroid/view/View;
|
|
|
|
.line 116
|
|
invoke-virtual {p0}, Lcom/moji/user/message/fragment/BaseMsgFragment;->j()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 117
|
|
iget-object v0, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->k:Lcom/moji/titlebar/MJTitleBar;
|
|
|
|
invoke-virtual {v0}, Lcom/moji/titlebar/MJTitleBar;->j()V
|
|
|
|
goto :goto_0
|
|
|
|
.line 119
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->k:Lcom/moji/titlebar/MJTitleBar;
|
|
|
|
invoke-virtual {v0}, Lcom/moji/titlebar/MJTitleBar;->h()V
|
|
|
|
.line 121
|
|
:goto_0
|
|
iget-object v0, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->c:Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;
|
|
|
|
new-instance v1, Lcom/moji/user/message/fragment/BaseMsgFragment$2;
|
|
|
|
invoke-direct {v1, p0}, Lcom/moji/user/message/fragment/BaseMsgFragment$2;-><init>(Lcom/moji/user/message/fragment/BaseMsgFragment;)V
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->setOnRefreshListener(Lcom/moji/swiperefreshlayout/SwipeRefreshLayout$OnRefreshListener;)V
|
|
|
|
.line 127
|
|
iget-object v0, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->m:Landroid/support/v7/widget/RecyclerView;
|
|
|
|
new-instance v1, Lcom/moji/user/message/fragment/BaseMsgFragment$3;
|
|
|
|
invoke-direct {v1, p0}, Lcom/moji/user/message/fragment/BaseMsgFragment$3;-><init>(Lcom/moji/user/message/fragment/BaseMsgFragment;)V
|
|
|
|
invoke-virtual {v0, v1}, Landroid/support/v7/widget/RecyclerView;->a(Landroid/support/v7/widget/RecyclerView$OnScrollListener;)V
|
|
|
|
.line 138
|
|
iget-object v0, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->l:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;
|
|
|
|
new-instance v1, Lcom/moji/user/message/fragment/BaseMsgFragment$4;
|
|
|
|
invoke-direct {v1, p0}, Lcom/moji/user/message/fragment/BaseMsgFragment$4;-><init>(Lcom/moji/user/message/fragment/BaseMsgFragment;)V
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;->setOnRetryClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method protected a()V
|
|
.locals 0
|
|
|
|
.line 75
|
|
invoke-virtual {p0}, Lcom/moji/user/message/fragment/BaseMsgFragment;->b()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected a(Z)V
|
|
.locals 1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 149
|
|
iget-object p1, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->f:Lcom/moji/newliveview/dynamic/FooterCell;
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
.line 150
|
|
new-instance p1, Lcom/moji/newliveview/dynamic/FooterCell;
|
|
|
|
const/4 v0, 0x1
|
|
|
|
invoke-direct {p1, v0}, Lcom/moji/newliveview/dynamic/FooterCell;-><init>(I)V
|
|
|
|
iput-object p1, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->f:Lcom/moji/newliveview/dynamic/FooterCell;
|
|
|
|
.line 152
|
|
:cond_0
|
|
iget-object p1, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->e:Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;
|
|
|
|
iget-object v0, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->f:Lcom/moji/newliveview/dynamic/FooterCell;
|
|
|
|
invoke-virtual {p1, v0}, Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;->a(Lcom/moji/newliveview/dynamic/base/Cell;)V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(ZLcom/moji/newliveview/dynamic/base/Cell;)V
|
|
.locals 2
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
const/4 p1, 0x0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
.line 223
|
|
iget-object v1, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->e:Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;
|
|
|
|
invoke-virtual {v1, p2}, Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;->b(Lcom/moji/newliveview/dynamic/base/Cell;)V
|
|
|
|
.line 224
|
|
iget-object p2, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->e:Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;
|
|
|
|
invoke-virtual {p2}, Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;->a()I
|
|
|
|
move-result p2
|
|
|
|
if-ne p2, v0, :cond_2
|
|
|
|
.line 225
|
|
iget-object p2, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->e:Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;
|
|
|
|
invoke-virtual {p2}, Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;->d()V
|
|
|
|
.line 226
|
|
invoke-virtual {p0, v0, p1}, Lcom/moji/user/message/fragment/BaseMsgFragment;->a(ZZ)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 229
|
|
:cond_0
|
|
iget-object p2, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->e:Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;
|
|
|
|
invoke-virtual {p2}, Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;->d()V
|
|
|
|
.line 230
|
|
invoke-virtual {p0, v0, p1}, Lcom/moji/user/message/fragment/BaseMsgFragment;->a(ZZ)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 233
|
|
:cond_1
|
|
sget p1, Lcom/moji/user/R$string;->delete_pic_failed:I
|
|
|
|
invoke-static {p1}, Lcom/moji/tool/ToastTool;->a(I)V
|
|
|
|
:cond_2
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method protected a(ZZ)V
|
|
.locals 6
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 194
|
|
iget-object p1, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->e: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 195
|
|
iget-object v0, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->l: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 196
|
|
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 197
|
|
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 195
|
|
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 201
|
|
:cond_0
|
|
iget-object p1, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->l:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;
|
|
|
|
invoke-virtual {p1}, Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;->G()V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
if-eqz p2, :cond_3
|
|
|
|
.line 205
|
|
invoke-static {}, Lcom/moji/tool/DeviceTool;->m()Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_2
|
|
|
|
.line 206
|
|
iget-object p1, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->l:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;
|
|
|
|
invoke-static {}, Lcom/moji/tool/AppDelegate;->a()Landroid/content/Context;
|
|
|
|
move-result-object p2
|
|
|
|
sget v0, Lcom/moji/user/R$string;->no_network:I
|
|
|
|
invoke-virtual {p2, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p1, p2}, Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;->showErrorView(Ljava/lang/String;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 208
|
|
:cond_2
|
|
iget-object p1, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->l:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;
|
|
|
|
invoke-static {}, Lcom/moji/tool/AppDelegate;->a()Landroid/content/Context;
|
|
|
|
move-result-object p2
|
|
|
|
sget v0, Lcom/moji/user/R$string;->server_error:I
|
|
|
|
invoke-virtual {p2, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p1, p2}, Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;->showErrorView(Ljava/lang/String;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 211
|
|
:cond_3
|
|
iget-object p1, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->e:Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;
|
|
|
|
invoke-virtual {p1}, Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;->a()I
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
iget-object p1, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->f:Lcom/moji/newliveview/dynamic/FooterCell;
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
.line 213
|
|
iget-object p1, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->f:Lcom/moji/newliveview/dynamic/FooterCell;
|
|
|
|
const/4 p2, 0x2
|
|
|
|
invoke-virtual {p1, p2}, Lcom/moji/newliveview/dynamic/FooterCell;->a(I)V
|
|
|
|
.line 214
|
|
iget-object p1, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->e:Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;
|
|
|
|
iget-object p2, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->e:Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;
|
|
|
|
invoke-virtual {p2}, Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;->a()I
|
|
|
|
move-result p2
|
|
|
|
invoke-virtual {p1, p2}, Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;->c(I)V
|
|
|
|
:cond_4
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method protected b()V
|
|
.locals 1
|
|
|
|
.line 78
|
|
iget-boolean v0, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->h:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-boolean v0, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->i:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 79
|
|
invoke-virtual {p0, v0}, Lcom/moji/user/message/fragment/BaseMsgFragment;->c(Z)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method protected b(Lcom/moji/newliveview/dynamic/base/BaseCell;)V
|
|
.locals 2
|
|
|
|
.line 170
|
|
iget-object v0, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->g:Lcom/moji/user/message/NewMsgDialog;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 171
|
|
new-instance v0, Lcom/moji/user/message/NewMsgDialog;
|
|
|
|
invoke-virtual {p0}, Lcom/moji/user/message/fragment/BaseMsgFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Lcom/moji/user/message/NewMsgDialog;-><init>(Landroid/content/Context;)V
|
|
|
|
iput-object v0, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->g:Lcom/moji/user/message/NewMsgDialog;
|
|
|
|
.line 172
|
|
iget-object v0, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->g:Lcom/moji/user/message/NewMsgDialog;
|
|
|
|
iget-object v0, v0, Lcom/moji/user/message/NewMsgDialog;->c:Landroid/widget/TextView;
|
|
|
|
new-instance v1, Lcom/moji/user/message/fragment/BaseMsgFragment$5;
|
|
|
|
invoke-direct {v1, p0}, Lcom/moji/user/message/fragment/BaseMsgFragment$5;-><init>(Lcom/moji/user/message/fragment/BaseMsgFragment;)V
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
.line 179
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->g:Lcom/moji/user/message/NewMsgDialog;
|
|
|
|
iget-object v0, v0, Lcom/moji/user/message/NewMsgDialog;->b:Landroid/widget/TextView;
|
|
|
|
new-instance v1, Lcom/moji/user/message/fragment/BaseMsgFragment$6;
|
|
|
|
invoke-direct {v1, p0, p1}, Lcom/moji/user/message/fragment/BaseMsgFragment$6;-><init>(Lcom/moji/user/message/fragment/BaseMsgFragment;Lcom/moji/newliveview/dynamic/base/BaseCell;)V
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
.line 186
|
|
iget-object p1, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->g:Lcom/moji/user/message/NewMsgDialog;
|
|
|
|
iget-object p1, p1, Lcom/moji/user/message/NewMsgDialog;->a:Landroid/app/Dialog;
|
|
|
|
invoke-virtual {p1}, Landroid/app/Dialog;->show()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected b(Z)V
|
|
.locals 1
|
|
|
|
.line 157
|
|
iput-boolean p1, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->n:Z
|
|
|
|
.line 158
|
|
iget-object v0, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->f:Lcom/moji/newliveview/dynamic/FooterCell;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 162
|
|
iget-object p1, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->f:Lcom/moji/newliveview/dynamic/FooterCell;
|
|
|
|
const/4 v0, 0x4
|
|
|
|
invoke-virtual {p1, v0}, Lcom/moji/newliveview/dynamic/FooterCell;->a(I)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 164
|
|
:cond_1
|
|
iget-object p1, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->f:Lcom/moji/newliveview/dynamic/FooterCell;
|
|
|
|
const/4 v0, 0x1
|
|
|
|
invoke-virtual {p1, v0}, Lcom/moji/newliveview/dynamic/FooterCell;->a(I)V
|
|
|
|
.line 166
|
|
:goto_0
|
|
iget-object p1, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->e:Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;
|
|
|
|
invoke-virtual {p1}, Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;->c()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected c()I
|
|
.locals 1
|
|
|
|
.line 84
|
|
sget v0, Lcom/moji/user/R$layout;->fragment_msg_common:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method protected c(Lcom/moji/newliveview/dynamic/base/BaseCell;)V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected abstract c(Z)V
|
|
.end method
|
|
|
|
.method protected d()Landroid/support/v7/widget/RecyclerView$LayoutManager;
|
|
.locals 2
|
|
|
|
.line 88
|
|
new-instance v0, Landroid/support/v7/widget/LinearLayoutManager;
|
|
|
|
invoke-virtual {p0}, Lcom/moji/user/message/fragment/BaseMsgFragment;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Landroid/support/v7/widget/LinearLayoutManager;-><init>(Landroid/content/Context;)V
|
|
|
|
const/4 v1, 0x1
|
|
|
|
.line 89
|
|
invoke-virtual {v0, v1}, Landroid/support/v7/widget/LinearLayoutManager;->b(I)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method protected e()V
|
|
.locals 3
|
|
|
|
.line 94
|
|
iget-object v0, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->b: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/BaseMsgFragment;->k:Lcom/moji/titlebar/MJTitleBar;
|
|
|
|
.line 95
|
|
iget-object v0, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->k:Lcom/moji/titlebar/MJTitleBar;
|
|
|
|
invoke-virtual {p0}, Lcom/moji/user/message/fragment/BaseMsgFragment;->i()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/16 v1, 0x8
|
|
|
|
:goto_0
|
|
invoke-virtual {v0, v1}, Lcom/moji/titlebar/MJTitleBar;->setVisibility(I)V
|
|
|
|
.line 96
|
|
iget-object v0, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->b:Landroid/view/View;
|
|
|
|
sget v1, Lcom/moji/user/R$id;->pull_fresh:I
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;
|
|
|
|
iput-object v0, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->c:Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;
|
|
|
|
.line 97
|
|
iget-object v0, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->c:Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;
|
|
|
|
const-wide/16 v1, 0x320
|
|
|
|
invoke-virtual {v0, v1, v2}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->setMinKeepTime(J)V
|
|
|
|
.line 98
|
|
iget-object v0, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->b:Landroid/view/View;
|
|
|
|
sget v1, Lcom/moji/user/R$id;->status_layout:I
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;
|
|
|
|
iput-object v0, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->l:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;
|
|
|
|
.line 99
|
|
iget-object v0, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->l:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;
|
|
|
|
invoke-virtual {v0}, Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;->F()V
|
|
|
|
.line 100
|
|
iget-object v0, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->b:Landroid/view/View;
|
|
|
|
sget v1, Lcom/moji/user/R$id;->rv:I
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->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/fragment/BaseMsgFragment;->m:Landroid/support/v7/widget/RecyclerView;
|
|
|
|
.line 101
|
|
iget-object v0, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->m:Landroid/support/v7/widget/RecyclerView;
|
|
|
|
invoke-virtual {p0}, Lcom/moji/user/message/fragment/BaseMsgFragment;->d()Landroid/support/v7/widget/RecyclerView$LayoutManager;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Landroid/support/v7/widget/RecyclerView;->setLayoutManager(Landroid/support/v7/widget/RecyclerView$LayoutManager;)V
|
|
|
|
.line 102
|
|
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/fragment/BaseMsgFragment;->e:Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;
|
|
|
|
.line 103
|
|
iget-object v0, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->m:Landroid/support/v7/widget/RecyclerView;
|
|
|
|
iget-object v1, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->e:Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;
|
|
|
|
invoke-virtual {v0, v1}, Landroid/support/v7/widget/RecyclerView;->setAdapter(Landroid/support/v7/widget/RecyclerView$Adapter;)V
|
|
|
|
.line 104
|
|
invoke-virtual {p0}, Lcom/moji/user/message/fragment/BaseMsgFragment;->l()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->d:Ljava/lang/Object;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public f()V
|
|
.locals 1
|
|
|
|
.line 238
|
|
invoke-virtual {p0}, Lcom/moji/user/message/fragment/BaseMsgFragment;->g()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 239
|
|
iget-object v0, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->k:Lcom/moji/titlebar/MJTitleBar;
|
|
|
|
invoke-virtual {v0}, Lcom/moji/titlebar/MJTitleBar;->h()V
|
|
|
|
goto :goto_0
|
|
|
|
.line 241
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->k:Lcom/moji/titlebar/MJTitleBar;
|
|
|
|
invoke-virtual {v0}, Lcom/moji/titlebar/MJTitleBar;->j()V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public g()Z
|
|
.locals 1
|
|
|
|
.line 246
|
|
iget-object v0, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->e:Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;
|
|
|
|
invoke-virtual {v0}, Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;->a()I
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public h()V
|
|
.locals 2
|
|
|
|
.line 260
|
|
iget-object v0, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->e:Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;
|
|
|
|
invoke-virtual {v0}, Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;->a()I
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 263
|
|
:cond_0
|
|
new-instance v0, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;
|
|
|
|
invoke-virtual {p0}, Lcom/moji/user/message/fragment/BaseMsgFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;-><init>(Landroid/content/Context;)V
|
|
|
|
sget v1, Lcom/moji/user/R$string;->clear_all:I
|
|
|
|
.line 264
|
|
invoke-virtual {v0, v1}, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;->a(I)Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;
|
|
|
|
move-result-object v0
|
|
|
|
sget v1, Lcom/moji/user/R$string;->clear_all_notice:I
|
|
|
|
.line 265
|
|
invoke-virtual {v0, v1}, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;->b(I)Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;
|
|
|
|
move-result-object v0
|
|
|
|
sget v1, Lcom/moji/user/R$string;->ok:I
|
|
|
|
.line 266
|
|
invoke-virtual {v0, v1}, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;->d(I)Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;
|
|
|
|
move-result-object v0
|
|
|
|
sget v1, Lcom/moji/user/R$string;->cancel:I
|
|
|
|
.line 267
|
|
invoke-virtual {v0, v1}, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;->e(I)Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Lcom/moji/user/message/fragment/BaseMsgFragment$7;
|
|
|
|
invoke-direct {v1, p0}, Lcom/moji/user/message/fragment/BaseMsgFragment$7;-><init>(Lcom/moji/user/message/fragment/BaseMsgFragment;)V
|
|
|
|
.line 268
|
|
invoke-virtual {v0, v1}, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;->a(Lcom/moji/dialog/control/MJDialogDefaultControl$SingleButtonCallback;)Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;
|
|
|
|
move-result-object v0
|
|
|
|
.line 274
|
|
invoke-virtual {v0}, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;->b()Lcom/moji/dialog/MJDialog;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected i()Z
|
|
.locals 1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method protected j()Z
|
|
.locals 1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method protected k()Z
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method protected abstract l()Ljava/lang/Object;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()TT;"
|
|
}
|
|
.end annotation
|
|
.end method
|
|
|
|
.method protected abstract m()V
|
|
.end method
|
|
|
|
.method protected abstract n()Ljava/lang/String;
|
|
.end method
|
|
|
|
.method public onClick(Landroid/view/View;)V
|
|
.locals 0
|
|
|
|
.line 256
|
|
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 52
|
|
invoke-virtual {p0}, Lcom/moji/user/message/fragment/BaseMsgFragment;->c()I
|
|
|
|
move-result p3
|
|
|
|
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/BaseMsgFragment;->b:Landroid/view/View;
|
|
|
|
.line 53
|
|
invoke-virtual {p0}, Lcom/moji/user/message/fragment/BaseMsgFragment;->e()V
|
|
|
|
const/4 p1, 0x1
|
|
|
|
.line 54
|
|
iput-boolean p1, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->i:Z
|
|
|
|
.line 55
|
|
invoke-virtual {p0}, Lcom/moji/user/message/fragment/BaseMsgFragment;->k()Z
|
|
|
|
move-result p2
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
.line 56
|
|
invoke-virtual {p0}, Lcom/moji/user/message/fragment/BaseMsgFragment;->b()V
|
|
|
|
goto :goto_0
|
|
|
|
.line 58
|
|
:cond_0
|
|
invoke-virtual {p0, p1}, Lcom/moji/user/message/fragment/BaseMsgFragment;->c(Z)V
|
|
|
|
.line 60
|
|
:goto_0
|
|
invoke-direct {p0}, Lcom/moji/user/message/fragment/BaseMsgFragment;->o()V
|
|
|
|
.line 61
|
|
iget-object p1, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->b:Landroid/view/View;
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public setUserVisibleHint(Z)V
|
|
.locals 0
|
|
|
|
.line 66
|
|
invoke-super {p0, p1}, Lcom/moji/base/MJFragment;->setUserVisibleHint(Z)V
|
|
|
|
.line 67
|
|
invoke-virtual {p0}, Lcom/moji/user/message/fragment/BaseMsgFragment;->getUserVisibleHint()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
.line 68
|
|
iput-boolean p1, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->h:Z
|
|
|
|
.line 69
|
|
invoke-virtual {p0}, Lcom/moji/user/message/fragment/BaseMsgFragment;->a()V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
.line 71
|
|
iput-boolean p1, p0, Lcom/moji/user/message/fragment/BaseMsgFragment;->h:Z
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|