377 lines
10 KiB
Smali
377 lines
10 KiB
Smali
.class public Lcom/moji/user/homepage/fragment/GetPraiseFragment;
|
|
.super Lcom/moji/user/homepage/fragment/UserCenterBaseFragment;
|
|
.source "GetPraiseFragment.java"
|
|
|
|
# interfaces
|
|
.implements Lcom/moji/user/homepage/cell/PraisePictureCell$PraisePictureViewClick;
|
|
.implements Lcom/moji/user/homepage/presenter/GetPraisePresenter$PraisePictureCallBack;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/moji/user/homepage/fragment/UserCenterBaseFragment<",
|
|
"Lcom/moji/user/homepage/presenter/GetPraisePresenter;",
|
|
">;",
|
|
"Lcom/moji/user/homepage/cell/PraisePictureCell$PraisePictureViewClick;",
|
|
"Lcom/moji/user/homepage/presenter/GetPraisePresenter$PraisePictureCallBack;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private e: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 23
|
|
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/GetPraiseFragment;
|
|
.locals 3
|
|
|
|
.line 27
|
|
new-instance v0, Lcom/moji/user/homepage/fragment/GetPraiseFragment;
|
|
|
|
invoke-direct {v0}, Lcom/moji/user/homepage/fragment/GetPraiseFragment;-><init>()V
|
|
|
|
.line 28
|
|
new-instance v1, Landroid/os/Bundle;
|
|
|
|
invoke-direct {v1}, Landroid/os/Bundle;-><init>()V
|
|
|
|
const-string v2, "user_sns_id"
|
|
|
|
.line 29
|
|
invoke-virtual {v1, v2, p0, p1}, Landroid/os/Bundle;->putLong(Ljava/lang/String;J)V
|
|
|
|
.line 30
|
|
invoke-virtual {v0, v1}, Lcom/moji/user/homepage/fragment/GetPraiseFragment;->setArguments(Landroid/os/Bundle;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Landroid/view/View;)V
|
|
.locals 2
|
|
|
|
.line 103
|
|
iget-object v0, p0, Lcom/moji/user/homepage/fragment/GetPraiseFragment;->e:Ljava/util/ArrayList;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 104
|
|
invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Lcom/moji/http/snsforum/entity/UserPicture;
|
|
|
|
.line 105
|
|
iget-object v0, p0, Lcom/moji/user/homepage/fragment/GetPraiseFragment;->e:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {p0, v0}, Lcom/moji/user/homepage/fragment/GetPraiseFragment;->a(Ljava/util/ArrayList;)Ljava/util/ArrayList;
|
|
|
|
move-result-object v0
|
|
|
|
.line 106
|
|
iget-object v1, p0, Lcom/moji/user/homepage/fragment/GetPraiseFragment;->e:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v1, p1}, Ljava/util/ArrayList;->indexOf(Ljava/lang/Object;)I
|
|
|
|
move-result p1
|
|
|
|
.line 107
|
|
invoke-virtual {p0, p1, v0}, Lcom/moji/user/homepage/fragment/GetPraiseFragment;->a(ILjava/util/ArrayList;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Ljava/util/ArrayList;Z)V
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/ArrayList<",
|
|
"Lcom/moji/http/snsforum/entity/UserPicture;",
|
|
">;Z)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 64
|
|
iput-object p1, p0, Lcom/moji/user/homepage/fragment/GetPraiseFragment;->e:Ljava/util/ArrayList;
|
|
|
|
if-eqz p1, :cond_5
|
|
|
|
.line 65
|
|
invoke-virtual {p1}, Ljava/util/ArrayList;->size()I
|
|
|
|
move-result p2
|
|
|
|
if-nez p2, :cond_0
|
|
|
|
goto :goto_2
|
|
|
|
.line 68
|
|
:cond_0
|
|
iget-object p2, p0, Lcom/moji/user/homepage/fragment/GetPraiseFragment;->k:Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;
|
|
|
|
invoke-virtual {p2}, Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;->d()V
|
|
|
|
const/4 p2, 0x0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 69
|
|
:goto_0
|
|
invoke-virtual {p1}, Ljava/util/ArrayList;->size()I
|
|
|
|
move-result v1
|
|
|
|
if-ge v0, v1, :cond_2
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
.line 71
|
|
new-instance v1, Lcom/moji/user/homepage/cell/PraisePictureHeadCell;
|
|
|
|
invoke-virtual {p1, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Lcom/moji/http/snsforum/entity/UserPicture;
|
|
|
|
invoke-direct {v1, v2, p0}, Lcom/moji/user/homepage/cell/PraisePictureHeadCell;-><init>(Lcom/moji/http/snsforum/entity/UserPicture;Lcom/moji/user/homepage/cell/PraisePictureCell$PraisePictureViewClick;)V
|
|
|
|
.line 72
|
|
iget-object v2, p0, Lcom/moji/user/homepage/fragment/GetPraiseFragment;->k:Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;
|
|
|
|
invoke-virtual {v2, v1}, Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;->a(Lcom/moji/newliveview/dynamic/base/Cell;)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 74
|
|
:cond_1
|
|
new-instance v1, Lcom/moji/user/homepage/cell/PraisePictureCell;
|
|
|
|
invoke-virtual {p1, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Lcom/moji/http/snsforum/entity/UserPicture;
|
|
|
|
invoke-direct {v1, v2, p0}, Lcom/moji/user/homepage/cell/PraisePictureCell;-><init>(Lcom/moji/http/snsforum/entity/UserPicture;Lcom/moji/user/homepage/cell/PraisePictureCell$PraisePictureViewClick;)V
|
|
|
|
.line 75
|
|
iget-object v2, p0, Lcom/moji/user/homepage/fragment/GetPraiseFragment;->k:Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;
|
|
|
|
invoke-virtual {v2, v1}, Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;->a(Lcom/moji/newliveview/dynamic/base/Cell;)V
|
|
|
|
:goto_1
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
.line 78
|
|
:cond_2
|
|
invoke-virtual {p1}, Ljava/util/ArrayList;->size()I
|
|
|
|
move-result p1
|
|
|
|
if-lez p1, :cond_3
|
|
|
|
const/4 p2, 0x1
|
|
|
|
:cond_3
|
|
invoke-virtual {p0, p2}, Lcom/moji/user/homepage/fragment/GetPraiseFragment;->c(Z)V
|
|
|
|
.line 79
|
|
iget-object p1, p0, Lcom/moji/user/homepage/fragment/GetPraiseFragment;->o:Lcom/moji/newliveview/dynamic/FooterCell;
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
.line 80
|
|
iget-object p1, p0, Lcom/moji/user/homepage/fragment/GetPraiseFragment;->o:Lcom/moji/newliveview/dynamic/FooterCell;
|
|
|
|
sget p2, Lcom/moji/user/R$string;->liveview_no_more_comment:I
|
|
|
|
invoke-static {p2}, Lcom/moji/tool/DeviceTool;->f(I)Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p1, p2}, Lcom/moji/newliveview/dynamic/FooterCell;->a(Ljava/lang/String;)V
|
|
|
|
:cond_4
|
|
return-void
|
|
|
|
:cond_5
|
|
:goto_2
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Z)V
|
|
.locals 1
|
|
|
|
.line 49
|
|
iget-object v0, p0, Lcom/moji/user/homepage/fragment/GetPraiseFragment;->l:Ljava/lang/Object;
|
|
|
|
check-cast v0, Lcom/moji/user/homepage/presenter/GetPraisePresenter;
|
|
|
|
invoke-virtual {v0, p1}, Lcom/moji/user/homepage/presenter/GetPraisePresenter;->a(Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(ZZ)V
|
|
.locals 7
|
|
|
|
.line 91
|
|
iget-object v0, p0, Lcom/moji/user/homepage/fragment/GetPraiseFragment;->m:Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;
|
|
|
|
invoke-virtual {v0}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->b()V
|
|
|
|
.line 92
|
|
sget v4, Lcom/moji/user/R$drawable;->view_icon_empty_no_praise:I
|
|
|
|
sget v0, Lcom/moji/user/R$string;->no_praise_pic:I
|
|
|
|
invoke-static {v0}, Lcom/moji/tool/DeviceTool;->f(I)Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
sget v0, Lcom/moji/user/R$string;->no_hot_pic_encourage:I
|
|
|
|
.line 93
|
|
invoke-static {v0}, Lcom/moji/tool/DeviceTool;->f(I)Ljava/lang/String;
|
|
|
|
move-result-object v6
|
|
|
|
move-object v1, p0
|
|
|
|
move v2, p1
|
|
|
|
move v3, p2
|
|
|
|
.line 92
|
|
invoke-virtual/range {v1 .. v6}, Lcom/moji/user/homepage/fragment/GetPraiseFragment;->a(ZZILjava/lang/String;Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public b(Z)V
|
|
.locals 0
|
|
|
|
.line 98
|
|
invoke-virtual {p0, p1}, Lcom/moji/user/homepage/fragment/GetPraiseFragment;->d(Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public e()I
|
|
.locals 1
|
|
|
|
.line 44
|
|
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 23
|
|
invoke-virtual {p0}, Lcom/moji/user/homepage/fragment/GetPraiseFragment;->i()Lcom/moji/user/homepage/presenter/GetPraisePresenter;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public i()Lcom/moji/user/homepage/presenter/GetPraisePresenter;
|
|
.locals 3
|
|
|
|
.line 54
|
|
new-instance v0, Lcom/moji/user/homepage/presenter/GetPraisePresenter;
|
|
|
|
iget-wide v1, p0, Lcom/moji/user/homepage/fragment/GetPraiseFragment;->h:J
|
|
|
|
invoke-direct {v0, p0, v1, v2}, Lcom/moji/user/homepage/presenter/GetPraisePresenter;-><init>(Lcom/moji/user/homepage/presenter/GetPraisePresenter$PraisePictureCallBack;J)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public j()Landroid/support/v7/widget/RecyclerView$LayoutManager;
|
|
.locals 3
|
|
|
|
.line 59
|
|
new-instance v0, Landroid/support/v7/widget/GridLayoutManager;
|
|
|
|
invoke-virtual {p0}, Lcom/moji/user/homepage/fragment/GetPraiseFragment;->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 w_()V
|
|
.locals 3
|
|
|
|
.line 36
|
|
invoke-super {p0}, Lcom/moji/user/homepage/fragment/UserCenterBaseFragment;->w_()V
|
|
|
|
.line 37
|
|
iget-object v0, p0, Lcom/moji/user/homepage/fragment/GetPraiseFragment;->j:Landroid/support/v7/widget/RecyclerView;
|
|
|
|
invoke-virtual {v0}, Landroid/support/v7/widget/RecyclerView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/widget/FrameLayout$LayoutParams;
|
|
|
|
const/high16 v1, 0x41200000 # 10.0f
|
|
|
|
.line 38
|
|
invoke-static {v1}, Lcom/moji/tool/DeviceTool;->a(F)I
|
|
|
|
move-result v2
|
|
|
|
iput v2, v0, Landroid/widget/FrameLayout$LayoutParams;->leftMargin:I
|
|
|
|
.line 39
|
|
invoke-static {v1}, Lcom/moji/tool/DeviceTool;->a(F)I
|
|
|
|
move-result v1
|
|
|
|
iput v1, v0, Landroid/widget/FrameLayout$LayoutParams;->rightMargin:I
|
|
|
|
return-void
|
|
.end method
|