375 lines
11 KiB
Smali
375 lines
11 KiB
Smali
.class public Lcom/moji/user/homepage/fragment/HotPictureFragment;
|
|
.super Lcom/moji/user/homepage/fragment/UserCenterBaseFragment;
|
|
.source "HotPictureFragment.java"
|
|
|
|
# interfaces
|
|
.implements Lcom/moji/user/homepage/presenter/HotPicturePresenter$HotPictureCallBack;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/moji/user/homepage/fragment/UserCenterBaseFragment<",
|
|
"Lcom/moji/user/homepage/presenter/HotPicturePresenter;",
|
|
">;",
|
|
"Lcom/moji/user/homepage/presenter/HotPicturePresenter$HotPictureCallBack;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private e:Lcom/moji/user/homepage/HotPictureRecyclerAdapter;
|
|
|
|
.field private f:Ljava/util/ArrayList;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/ArrayList<",
|
|
"Lcom/moji/http/snsforum/entity/UserPicture;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 24
|
|
invoke-direct {p0}, Lcom/moji/user/homepage/fragment/UserCenterBaseFragment;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static a(J)Lcom/moji/user/homepage/fragment/HotPictureFragment;
|
|
.locals 3
|
|
|
|
.line 30
|
|
new-instance v0, Lcom/moji/user/homepage/fragment/HotPictureFragment;
|
|
|
|
invoke-direct {v0}, Lcom/moji/user/homepage/fragment/HotPictureFragment;-><init>()V
|
|
|
|
.line 31
|
|
new-instance v1, Landroid/os/Bundle;
|
|
|
|
invoke-direct {v1}, Landroid/os/Bundle;-><init>()V
|
|
|
|
const-string v2, "user_sns_id"
|
|
|
|
.line 32
|
|
invoke-virtual {v1, v2, p0, p1}, Landroid/os/Bundle;->putLong(Ljava/lang/String;J)V
|
|
|
|
.line 33
|
|
invoke-virtual {v0, v1}, Lcom/moji/user/homepage/fragment/HotPictureFragment;->setArguments(Landroid/os/Bundle;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/user/homepage/fragment/HotPictureFragment;)Ljava/util/ArrayList;
|
|
.locals 0
|
|
|
|
.line 24
|
|
iget-object p0, p0, Lcom/moji/user/homepage/fragment/HotPictureFragment;->f:Ljava/util/ArrayList;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Ljava/util/ArrayList;ZLjava/util/ArrayList;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/ArrayList<",
|
|
"Lcom/moji/http/snsforum/entity/UserPicture;",
|
|
">;Z",
|
|
"Ljava/util/ArrayList<",
|
|
"Lcom/moji/http/snsforum/entity/UserPicture;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 75
|
|
iput-object p3, p0, Lcom/moji/user/homepage/fragment/HotPictureFragment;->f:Ljava/util/ArrayList;
|
|
|
|
.line 76
|
|
iget-object p2, p0, Lcom/moji/user/homepage/fragment/HotPictureFragment;->e:Lcom/moji/user/homepage/HotPictureRecyclerAdapter;
|
|
|
|
invoke-virtual {p2, p1}, Lcom/moji/user/homepage/HotPictureRecyclerAdapter;->a(Ljava/util/ArrayList;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Z)V
|
|
.locals 1
|
|
|
|
.line 65
|
|
iget-object v0, p0, Lcom/moji/user/homepage/fragment/HotPictureFragment;->l:Ljava/lang/Object;
|
|
|
|
check-cast v0, Lcom/moji/user/homepage/presenter/HotPicturePresenter;
|
|
|
|
invoke-virtual {v0, p1}, Lcom/moji/user/homepage/presenter/HotPicturePresenter;->a(Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(ZZ)V
|
|
.locals 6
|
|
|
|
.line 96
|
|
iget-object v0, p0, Lcom/moji/user/homepage/fragment/HotPictureFragment;->m:Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;
|
|
|
|
invoke-virtual {v0}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->b()V
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 98
|
|
iget-object p1, p0, Lcom/moji/user/homepage/fragment/HotPictureFragment;->e:Lcom/moji/user/homepage/HotPictureRecyclerAdapter;
|
|
|
|
invoke-virtual {p1}, Lcom/moji/user/homepage/HotPictureRecyclerAdapter;->a()I
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
.line 99
|
|
iget-object v0, p0, Lcom/moji/user/homepage/fragment/HotPictureFragment;->d:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;
|
|
|
|
sget v1, Lcom/moji/user/R$drawable;->view_icon_empty_no_picture:I
|
|
|
|
sget p1, Lcom/moji/user/R$string;->no_hot_pic:I
|
|
|
|
invoke-static {p1}, Lcom/moji/tool/DeviceTool;->f(I)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
sget p1, Lcom/moji/user/R$string;->no_hot_pic_encourage:I
|
|
|
|
.line 100
|
|
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 99
|
|
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 102
|
|
:cond_0
|
|
iget-object p1, p0, Lcom/moji/user/homepage/fragment/HotPictureFragment;->d:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;
|
|
|
|
invoke-virtual {p1}, Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;->G()V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
if-eqz p2, :cond_2
|
|
|
|
.line 106
|
|
invoke-virtual {p0}, Lcom/moji/user/homepage/fragment/HotPictureFragment;->d()V
|
|
|
|
goto :goto_0
|
|
|
|
.line 108
|
|
:cond_2
|
|
iget-object p1, p0, Lcom/moji/user/homepage/fragment/HotPictureFragment;->e:Lcom/moji/user/homepage/HotPictureRecyclerAdapter;
|
|
|
|
invoke-virtual {p1}, Lcom/moji/user/homepage/HotPictureRecyclerAdapter;->a()I
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
.line 110
|
|
iget-object p1, p0, Lcom/moji/user/homepage/fragment/HotPictureFragment;->e:Lcom/moji/user/homepage/HotPictureRecyclerAdapter;
|
|
|
|
const/4 p2, 0x2
|
|
|
|
iput p2, p1, Lcom/moji/user/homepage/HotPictureRecyclerAdapter;->d:I
|
|
|
|
.line 111
|
|
iget-object p1, p0, Lcom/moji/user/homepage/fragment/HotPictureFragment;->e:Lcom/moji/user/homepage/HotPictureRecyclerAdapter;
|
|
|
|
invoke-virtual {p1}, Lcom/moji/user/homepage/HotPictureRecyclerAdapter;->c()V
|
|
|
|
:cond_3
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public b(Z)V
|
|
.locals 1
|
|
|
|
.line 119
|
|
iput-boolean p1, p0, Lcom/moji/user/homepage/fragment/HotPictureFragment;->n:Z
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 121
|
|
iget-object p1, p0, Lcom/moji/user/homepage/fragment/HotPictureFragment;->e:Lcom/moji/user/homepage/HotPictureRecyclerAdapter;
|
|
|
|
const/4 v0, 0x4
|
|
|
|
iput v0, p1, Lcom/moji/user/homepage/HotPictureRecyclerAdapter;->d:I
|
|
|
|
goto :goto_0
|
|
|
|
.line 123
|
|
:cond_0
|
|
iget-object p1, p0, Lcom/moji/user/homepage/fragment/HotPictureFragment;->e:Lcom/moji/user/homepage/HotPictureRecyclerAdapter;
|
|
|
|
const/4 v0, 0x1
|
|
|
|
iput v0, p1, Lcom/moji/user/homepage/HotPictureRecyclerAdapter;->d:I
|
|
|
|
.line 125
|
|
:goto_0
|
|
iget-object p1, p0, Lcom/moji/user/homepage/fragment/HotPictureFragment;->e:Lcom/moji/user/homepage/HotPictureRecyclerAdapter;
|
|
|
|
iget-object v0, p0, Lcom/moji/user/homepage/fragment/HotPictureFragment;->e:Lcom/moji/user/homepage/HotPictureRecyclerAdapter;
|
|
|
|
invoke-virtual {v0}, Lcom/moji/user/homepage/HotPictureRecyclerAdapter;->a()I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p1, v0}, Lcom/moji/user/homepage/HotPictureRecyclerAdapter;->c(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public e()I
|
|
.locals 1
|
|
|
|
.line 60
|
|
sget v0, Lcom/moji/user/R$layout;->fragment_hot_picture:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public g()Z
|
|
.locals 1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public synthetic h()Ljava/lang/Object;
|
|
.locals 1
|
|
|
|
.line 24
|
|
invoke-virtual {p0}, Lcom/moji/user/homepage/fragment/HotPictureFragment;->i()Lcom/moji/user/homepage/presenter/HotPicturePresenter;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public i()Lcom/moji/user/homepage/presenter/HotPicturePresenter;
|
|
.locals 3
|
|
|
|
.line 70
|
|
new-instance v0, Lcom/moji/user/homepage/presenter/HotPicturePresenter;
|
|
|
|
iget-wide v1, p0, Lcom/moji/user/homepage/fragment/HotPictureFragment;->h:J
|
|
|
|
invoke-direct {v0, p0, v1, v2}, Lcom/moji/user/homepage/presenter/HotPicturePresenter;-><init>(Lcom/moji/user/homepage/presenter/HotPicturePresenter$HotPictureCallBack;J)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public j()Landroid/support/v7/widget/RecyclerView$LayoutManager;
|
|
.locals 3
|
|
|
|
.line 81
|
|
new-instance v0, Landroid/support/v7/widget/GridLayoutManager;
|
|
|
|
invoke-virtual {p0}, Lcom/moji/user/homepage/fragment/HotPictureFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, 0x2
|
|
|
|
invoke-direct {v0, v1, v2}, Landroid/support/v7/widget/GridLayoutManager;-><init>(Landroid/content/Context;I)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public k()Z
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public w_()V
|
|
.locals 4
|
|
|
|
.line 39
|
|
invoke-super {p0}, Lcom/moji/user/homepage/fragment/UserCenterBaseFragment;->w_()V
|
|
|
|
.line 40
|
|
iget-object v0, p0, Lcom/moji/user/homepage/fragment/HotPictureFragment;->j:Landroid/support/v7/widget/RecyclerView;
|
|
|
|
const-string v1, "#F8F8F8"
|
|
|
|
invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {v0, v1}, Landroid/support/v7/widget/RecyclerView;->setBackgroundColor(I)V
|
|
|
|
.line 41
|
|
iget-object v0, p0, Lcom/moji/user/homepage/fragment/HotPictureFragment;->j:Landroid/support/v7/widget/RecyclerView;
|
|
|
|
const/high16 v1, 0x41200000 # 10.0f
|
|
|
|
invoke-static {v1}, Lcom/moji/tool/DeviceTool;->a(F)I
|
|
|
|
move-result v2
|
|
|
|
invoke-static {v1}, Lcom/moji/tool/DeviceTool;->a(F)I
|
|
|
|
move-result v1
|
|
|
|
const/4 v3, 0x0
|
|
|
|
invoke-virtual {v0, v2, v3, v1, v3}, Landroid/support/v7/widget/RecyclerView;->setPadding(IIII)V
|
|
|
|
.line 42
|
|
new-instance v0, Lcom/moji/user/homepage/HotPictureRecyclerAdapter;
|
|
|
|
invoke-virtual {p0}, Lcom/moji/user/homepage/fragment/HotPictureFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Lcom/moji/user/homepage/HotPictureRecyclerAdapter;-><init>(Landroid/content/Context;)V
|
|
|
|
iput-object v0, p0, Lcom/moji/user/homepage/fragment/HotPictureFragment;->e:Lcom/moji/user/homepage/HotPictureRecyclerAdapter;
|
|
|
|
.line 43
|
|
iget-object v0, p0, Lcom/moji/user/homepage/fragment/HotPictureFragment;->j:Landroid/support/v7/widget/RecyclerView;
|
|
|
|
iget-object v1, p0, Lcom/moji/user/homepage/fragment/HotPictureFragment;->e:Lcom/moji/user/homepage/HotPictureRecyclerAdapter;
|
|
|
|
invoke-virtual {v0, v1}, Landroid/support/v7/widget/RecyclerView;->setAdapter(Landroid/support/v7/widget/RecyclerView$Adapter;)V
|
|
|
|
.line 44
|
|
iget-object v0, p0, Lcom/moji/user/homepage/fragment/HotPictureFragment;->e:Lcom/moji/user/homepage/HotPictureRecyclerAdapter;
|
|
|
|
new-instance v1, Lcom/moji/user/homepage/fragment/HotPictureFragment$1;
|
|
|
|
invoke-direct {v1, p0}, Lcom/moji/user/homepage/fragment/HotPictureFragment$1;-><init>(Lcom/moji/user/homepage/fragment/HotPictureFragment;)V
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/user/homepage/HotPictureRecyclerAdapter;->a(Lcom/moji/newliveview/base/AbsRecyclerAdapter$OnItemClickListener;)V
|
|
|
|
return-void
|
|
.end method
|