868 lines
25 KiB
Smali
868 lines
25 KiB
Smali
.class public abstract Lcom/moji/newliveview/picture/PictureFragment;
|
|
.super Lcom/moji/newliveview/base/BaseFragment;
|
|
.source "PictureFragment.java"
|
|
|
|
|
|
# instance fields
|
|
.field public c:Ljava/lang/String;
|
|
|
|
.field protected d:J
|
|
|
|
.field private e:Ljava/lang/String;
|
|
|
|
.field private f:Landroid/support/v7/widget/RecyclerView;
|
|
|
|
.field private g:I
|
|
|
|
.field private h:Lcom/moji/newliveview/picture/PictureAdapter;
|
|
|
|
.field private i:Z
|
|
|
|
.field private j:Lcom/moji/newliveview/home/view/WaterFallPraiseView;
|
|
|
|
.field private k:Lcom/moji/http/snsforum/entity/WaterFallPicture;
|
|
|
|
.field private l:Z
|
|
|
|
.field private m:Lcom/moji/newliveview/picture/PictureAdapter$OnItemHandleListener;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
.line 50
|
|
invoke-direct {p0}, Lcom/moji/newliveview/base/BaseFragment;-><init>()V
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 81
|
|
iput-boolean v0, p0, Lcom/moji/newliveview/picture/PictureFragment;->l:Z
|
|
|
|
.line 238
|
|
new-instance v0, Lcom/moji/newliveview/picture/PictureFragment$3;
|
|
|
|
invoke-direct {v0, p0}, Lcom/moji/newliveview/picture/PictureFragment$3;-><init>(Lcom/moji/newliveview/picture/PictureFragment;)V
|
|
|
|
iput-object v0, p0, Lcom/moji/newliveview/picture/PictureFragment;->m:Lcom/moji/newliveview/picture/PictureAdapter$OnItemHandleListener;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/newliveview/picture/PictureFragment;)Landroid/support/v7/widget/RecyclerView;
|
|
.locals 0
|
|
|
|
.line 50
|
|
iget-object p0, p0, Lcom/moji/newliveview/picture/PictureFragment;->f:Landroid/support/v7/widget/RecyclerView;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/newliveview/picture/PictureFragment;Lcom/moji/http/snsforum/entity/WaterFallPicture;)Lcom/moji/http/snsforum/entity/WaterFallPicture;
|
|
.locals 0
|
|
|
|
.line 50
|
|
iput-object p1, p0, Lcom/moji/newliveview/picture/PictureFragment;->k:Lcom/moji/http/snsforum/entity/WaterFallPicture;
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/newliveview/picture/PictureFragment;Lcom/moji/newliveview/home/view/WaterFallPraiseView;)Lcom/moji/newliveview/home/view/WaterFallPraiseView;
|
|
.locals 0
|
|
|
|
.line 50
|
|
iput-object p1, p0, Lcom/moji/newliveview/picture/PictureFragment;->j:Lcom/moji/newliveview/home/view/WaterFallPraiseView;
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/newliveview/picture/PictureFragment;Ljava/lang/String;)Ljava/lang/String;
|
|
.locals 0
|
|
|
|
.line 50
|
|
iput-object p1, p0, Lcom/moji/newliveview/picture/PictureFragment;->e:Ljava/lang/String;
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method private a(Landroid/view/View;ILjava/util/ArrayList;)V
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/view/View;",
|
|
"I",
|
|
"Ljava/util/ArrayList<",
|
|
"Lcom/moji/http/snsforum/entity/ThumbPictureItem;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
if-ltz p2, :cond_1
|
|
|
|
.line 302
|
|
invoke-virtual {p3}, Ljava/util/ArrayList;->size()I
|
|
|
|
move-result v0
|
|
|
|
if-lt p2, v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 305
|
|
:cond_0
|
|
new-instance v0, Landroid/content/Intent;
|
|
|
|
invoke-virtual {p0}, Lcom/moji/newliveview/picture/PictureFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;
|
|
|
|
move-result-object v1
|
|
|
|
const-class v2, Lcom/moji/newliveview/detail/PictureDetailActivity;
|
|
|
|
invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V
|
|
|
|
.line 306
|
|
new-instance v1, Landroid/os/Bundle;
|
|
|
|
const/4 v2, 0x5
|
|
|
|
invoke-direct {v1, v2}, Landroid/os/Bundle;-><init>(I)V
|
|
|
|
const-string v2, "extra_data_thumb_picture_list"
|
|
|
|
.line 307
|
|
invoke-virtual {v1, v2, p3}, Landroid/os/Bundle;->putParcelableArrayList(Ljava/lang/String;Ljava/util/ArrayList;)V
|
|
|
|
const-string v2, "extra_data_target_position"
|
|
|
|
.line 308
|
|
invoke-virtual {v1, v2, p2}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V
|
|
|
|
.line 309
|
|
invoke-virtual {v0, v1}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;
|
|
|
|
.line 310
|
|
invoke-virtual {p3, p2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object p2
|
|
|
|
check-cast p2, Lcom/moji/http/snsforum/entity/ThumbPictureItem;
|
|
|
|
iget-object p2, p2, Lcom/moji/http/snsforum/entity/ThumbPictureItem;->url:Ljava/lang/String;
|
|
|
|
.line 312
|
|
invoke-virtual {p0}, Lcom/moji/newliveview/picture/PictureFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;
|
|
|
|
move-result-object p3
|
|
|
|
invoke-static {p3}, Lcom/moji/prelollipop/ActivityTransitionLauncher;->a(Landroid/app/Activity;)Lcom/moji/prelollipop/ActivityTransitionLauncher;
|
|
|
|
move-result-object p3
|
|
|
|
.line 313
|
|
invoke-virtual {p3, p1}, Lcom/moji/prelollipop/ActivityTransitionLauncher;->a(Landroid/view/View;)Lcom/moji/prelollipop/ActivityTransitionLauncher;
|
|
|
|
move-result-object p1
|
|
|
|
.line 314
|
|
invoke-virtual {p1, p2}, Lcom/moji/prelollipop/ActivityTransitionLauncher;->a(Ljava/lang/String;)Lcom/moji/prelollipop/ActivityTransitionLauncher;
|
|
|
|
move-result-object p1
|
|
|
|
.line 315
|
|
invoke-virtual {p1}, Lcom/moji/prelollipop/ActivityTransitionLauncher;->a()Lcom/moji/prelollipop/ActivityTransitionLauncher;
|
|
|
|
move-result-object p1
|
|
|
|
const/4 p2, 0x1
|
|
|
|
.line 316
|
|
invoke-virtual {p1, p2}, Lcom/moji/prelollipop/ActivityTransitionLauncher;->a(Z)Lcom/moji/prelollipop/ActivityTransitionLauncher;
|
|
|
|
move-result-object p1
|
|
|
|
.line 317
|
|
invoke-virtual {p1, v0}, Lcom/moji/prelollipop/ActivityTransitionLauncher;->a(Landroid/content/Intent;)V
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/newliveview/picture/PictureFragment;Landroid/view/View;ILjava/util/ArrayList;)V
|
|
.locals 0
|
|
|
|
.line 50
|
|
invoke-direct {p0, p1, p2, p3}, Lcom/moji/newliveview/picture/PictureFragment;->a(Landroid/view/View;ILjava/util/ArrayList;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/newliveview/picture/PictureFragment;Z)Z
|
|
.locals 0
|
|
|
|
.line 50
|
|
iput-boolean p1, p0, Lcom/moji/newliveview/picture/PictureFragment;->l:Z
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method static synthetic b(Lcom/moji/newliveview/picture/PictureFragment;)Lcom/moji/newliveview/picture/PictureAdapter;
|
|
.locals 0
|
|
|
|
.line 50
|
|
iget-object p0, p0, Lcom/moji/newliveview/picture/PictureFragment;->h:Lcom/moji/newliveview/picture/PictureAdapter;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic b(Lcom/moji/newliveview/picture/PictureFragment;Z)Z
|
|
.locals 0
|
|
|
|
.line 50
|
|
iput-boolean p1, p0, Lcom/moji/newliveview/picture/PictureFragment;->i:Z
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method static synthetic c(Lcom/moji/newliveview/picture/PictureFragment;)Z
|
|
.locals 0
|
|
|
|
.line 50
|
|
iget-boolean p0, p0, Lcom/moji/newliveview/picture/PictureFragment;->l:Z
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method static synthetic d(Lcom/moji/newliveview/picture/PictureFragment;)Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;
|
|
.locals 0
|
|
|
|
.line 50
|
|
iget-object p0, p0, Lcom/moji/newliveview/picture/PictureFragment;->b:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic e(Lcom/moji/newliveview/picture/PictureFragment;)Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;
|
|
.locals 0
|
|
|
|
.line 50
|
|
iget-object p0, p0, Lcom/moji/newliveview/picture/PictureFragment;->b:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic f(Lcom/moji/newliveview/picture/PictureFragment;)I
|
|
.locals 0
|
|
|
|
.line 50
|
|
iget p0, p0, Lcom/moji/newliveview/picture/PictureFragment;->g:I
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method private f()Ljava/util/ArrayList;
|
|
.locals 6
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/ArrayList<",
|
|
"Lcom/moji/http/snsforum/entity/ThumbPictureItem;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 288
|
|
iget-object v0, p0, Lcom/moji/newliveview/picture/PictureFragment;->h:Lcom/moji/newliveview/picture/PictureAdapter;
|
|
|
|
invoke-virtual {v0}, Lcom/moji/newliveview/picture/PictureAdapter;->f()Ljava/util/List;
|
|
|
|
move-result-object v0
|
|
|
|
.line 289
|
|
new-instance v1, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
.line 290
|
|
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v0
|
|
|
|
:goto_0
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Lcom/moji/http/snsforum/entity/WaterFallPicture;
|
|
|
|
.line 291
|
|
new-instance v3, Lcom/moji/http/snsforum/entity/ThumbPictureItem;
|
|
|
|
invoke-direct {v3}, Lcom/moji/http/snsforum/entity/ThumbPictureItem;-><init>()V
|
|
|
|
.line 292
|
|
iget-wide v4, v2, Lcom/moji/http/snsforum/entity/WaterFallPicture;->id:J
|
|
|
|
iput-wide v4, v3, Lcom/moji/http/snsforum/entity/ThumbPictureItem;->id:J
|
|
|
|
.line 293
|
|
iget-object v4, v2, Lcom/moji/http/snsforum/entity/WaterFallPicture;->path:Ljava/lang/String;
|
|
|
|
iput-object v4, v3, Lcom/moji/http/snsforum/entity/ThumbPictureItem;->url:Ljava/lang/String;
|
|
|
|
.line 294
|
|
iget v4, v2, Lcom/moji/http/snsforum/entity/WaterFallPicture;->width:I
|
|
|
|
iput v4, v3, Lcom/moji/http/snsforum/entity/ThumbPictureItem;->width:I
|
|
|
|
.line 295
|
|
iget v2, v2, Lcom/moji/http/snsforum/entity/WaterFallPicture;->height:I
|
|
|
|
iput v2, v3, Lcom/moji/http/snsforum/entity/ThumbPictureItem;->height:I
|
|
|
|
.line 296
|
|
invoke-virtual {v1, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return-object v1
|
|
.end method
|
|
|
|
.method static synthetic g(Lcom/moji/newliveview/picture/PictureFragment;)Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;
|
|
.locals 0
|
|
|
|
.line 50
|
|
iget-object p0, p0, Lcom/moji/newliveview/picture/PictureFragment;->b:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic h(Lcom/moji/newliveview/picture/PictureFragment;)Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;
|
|
.locals 0
|
|
|
|
.line 50
|
|
iget-object p0, p0, Lcom/moji/newliveview/picture/PictureFragment;->b:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic i(Lcom/moji/newliveview/picture/PictureFragment;)Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;
|
|
.locals 0
|
|
|
|
.line 50
|
|
iget-object p0, p0, Lcom/moji/newliveview/picture/PictureFragment;->b:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic j(Lcom/moji/newliveview/picture/PictureFragment;)Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;
|
|
.locals 0
|
|
|
|
.line 50
|
|
iget-object p0, p0, Lcom/moji/newliveview/picture/PictureFragment;->b:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic k(Lcom/moji/newliveview/picture/PictureFragment;)Ljava/util/ArrayList;
|
|
.locals 0
|
|
|
|
.line 50
|
|
invoke-direct {p0}, Lcom/moji/newliveview/picture/PictureFragment;->f()Ljava/util/ArrayList;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method protected a(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;)Landroid/view/View;
|
|
.locals 3
|
|
|
|
.line 103
|
|
sget v0, Lcom/moji/newliveview/R$layout;->fragment_picture_list:I
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {p1, v0, p2, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
.line 104
|
|
sget p2, Lcom/moji/newliveview/R$id;->v_status:I
|
|
|
|
invoke-virtual {p1, p2}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object p2
|
|
|
|
check-cast p2, Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;
|
|
|
|
iput-object p2, p0, Lcom/moji/newliveview/picture/PictureFragment;->b:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;
|
|
|
|
.line 105
|
|
sget p2, Lcom/moji/newliveview/R$id;->rv:I
|
|
|
|
invoke-virtual {p1, p2}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object p2
|
|
|
|
check-cast p2, Landroid/support/v7/widget/RecyclerView;
|
|
|
|
iput-object p2, p0, Lcom/moji/newliveview/picture/PictureFragment;->f:Landroid/support/v7/widget/RecyclerView;
|
|
|
|
.line 106
|
|
iget-object p2, p0, Lcom/moji/newliveview/picture/PictureFragment;->f:Landroid/support/v7/widget/RecyclerView;
|
|
|
|
new-instance v0, Lcom/moji/newliveview/base/view/WaterFallItemDecoration;
|
|
|
|
invoke-direct {v0}, Lcom/moji/newliveview/base/view/WaterFallItemDecoration;-><init>()V
|
|
|
|
invoke-virtual {p2, v0}, Landroid/support/v7/widget/RecyclerView;->a(Landroid/support/v7/widget/RecyclerView$ItemDecoration;)V
|
|
|
|
.line 107
|
|
iget-object p2, p0, Lcom/moji/newliveview/picture/PictureFragment;->f:Landroid/support/v7/widget/RecyclerView;
|
|
|
|
new-instance v0, Landroid/support/v7/widget/StaggeredGridLayoutManager;
|
|
|
|
const/4 v1, 0x2
|
|
|
|
const/4 v2, 0x1
|
|
|
|
invoke-direct {v0, v1, v2}, Landroid/support/v7/widget/StaggeredGridLayoutManager;-><init>(II)V
|
|
|
|
invoke-virtual {p2, v0}, Landroid/support/v7/widget/RecyclerView;->setLayoutManager(Landroid/support/v7/widget/RecyclerView$LayoutManager;)V
|
|
|
|
.line 108
|
|
iget-object p2, p0, Lcom/moji/newliveview/picture/PictureFragment;->f:Landroid/support/v7/widget/RecyclerView;
|
|
|
|
iget-object v0, p0, Lcom/moji/newliveview/picture/PictureFragment;->h:Lcom/moji/newliveview/picture/PictureAdapter;
|
|
|
|
invoke-virtual {p2, v0}, Landroid/support/v7/widget/RecyclerView;->setAdapter(Landroid/support/v7/widget/RecyclerView$Adapter;)V
|
|
|
|
.line 109
|
|
iget-object p2, p0, Lcom/moji/newliveview/picture/PictureFragment;->f:Landroid/support/v7/widget/RecyclerView;
|
|
|
|
new-instance v0, Lcom/moji/newliveview/picture/PictureFragment$1;
|
|
|
|
invoke-direct {v0, p0}, Lcom/moji/newliveview/picture/PictureFragment$1;-><init>(Lcom/moji/newliveview/picture/PictureFragment;)V
|
|
|
|
invoke-virtual {p2, v0}, Landroid/support/v7/widget/RecyclerView;->a(Landroid/support/v7/widget/RecyclerView$OnScrollListener;)V
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method abstract a(JIILjava/lang/String;)Lcom/moji/http/snsforum/AbsWaterFallPictureRequest;
|
|
.end method
|
|
|
|
.method protected a()V
|
|
.locals 3
|
|
|
|
.line 91
|
|
invoke-virtual {p0}, Lcom/moji/newliveview/picture/PictureFragment;->getArguments()Landroid/os/Bundle;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "key_picture_type"
|
|
|
|
const/4 v2, 0x0
|
|
|
|
.line 92
|
|
invoke-virtual {v0, v1, v2}, Landroid/os/Bundle;->getInt(Ljava/lang/String;I)I
|
|
|
|
move-result v1
|
|
|
|
iput v1, p0, Lcom/moji/newliveview/picture/PictureFragment;->g:I
|
|
|
|
const-string v1, "key_id"
|
|
|
|
.line 93
|
|
invoke-virtual {v0, v1}, Landroid/os/Bundle;->getLong(Ljava/lang/String;)J
|
|
|
|
move-result-wide v1
|
|
|
|
iput-wide v1, p0, Lcom/moji/newliveview/picture/PictureFragment;->d:J
|
|
|
|
const-string v1, "key_cat"
|
|
|
|
.line 94
|
|
invoke-virtual {v0, v1}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/moji/newliveview/picture/PictureFragment;->c:Ljava/lang/String;
|
|
|
|
.line 95
|
|
new-instance v0, Lcom/moji/newliveview/picture/PictureAdapter;
|
|
|
|
invoke-virtual {p0}, Lcom/moji/newliveview/picture/PictureFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Lcom/moji/newliveview/picture/PictureAdapter;-><init>(Landroid/content/Context;)V
|
|
|
|
iput-object v0, p0, Lcom/moji/newliveview/picture/PictureFragment;->h:Lcom/moji/newliveview/picture/PictureAdapter;
|
|
|
|
.line 96
|
|
iget-object v0, p0, Lcom/moji/newliveview/picture/PictureFragment;->h:Lcom/moji/newliveview/picture/PictureAdapter;
|
|
|
|
iget-object v1, p0, Lcom/moji/newliveview/picture/PictureFragment;->m:Lcom/moji/newliveview/picture/PictureAdapter$OnItemHandleListener;
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/newliveview/picture/PictureAdapter;->a(Lcom/moji/newliveview/picture/PictureAdapter$OnItemHandleListener;)V
|
|
|
|
.line 97
|
|
iget-object v0, p0, Lcom/moji/newliveview/picture/PictureFragment;->h:Lcom/moji/newliveview/picture/PictureAdapter;
|
|
|
|
iget v1, p0, Lcom/moji/newliveview/picture/PictureFragment;->g:I
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/newliveview/picture/PictureAdapter;->h(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method a(Lcom/moji/http/snsforum/entity/WaterFallPicture;)V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Lcom/moji/newliveview/home/view/WaterFallPraiseView;Lcom/moji/http/snsforum/entity/WaterFallPicture;)V
|
|
.locals 5
|
|
|
|
if-nez p2, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-wide/16 v0, 0x0
|
|
|
|
.line 325
|
|
instance-of v2, p0, Lcom/moji/newliveview/picture/PromotionHotPictureFragment;
|
|
|
|
if-nez v2, :cond_1
|
|
|
|
instance-of v2, p0, Lcom/moji/newliveview/picture/PromotionNewPictureFragment;
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
.line 326
|
|
:cond_1
|
|
iget-wide v0, p0, Lcom/moji/newliveview/picture/PictureFragment;->d:J
|
|
|
|
.line 328
|
|
:cond_2
|
|
new-instance v2, Lcom/moji/http/snsforum/ClickPraiseRequest;
|
|
|
|
iget-wide v3, p2, Lcom/moji/http/snsforum/entity/WaterFallPicture;->id:J
|
|
|
|
invoke-direct {v2, v3, v4, v0, v1}, Lcom/moji/http/snsforum/ClickPraiseRequest;-><init>(JJ)V
|
|
|
|
.line 329
|
|
new-instance v0, Lcom/moji/newliveview/picture/PictureFragment$4;
|
|
|
|
invoke-direct {v0, p0, p1, p2}, Lcom/moji/newliveview/picture/PictureFragment$4;-><init>(Lcom/moji/newliveview/picture/PictureFragment;Lcom/moji/newliveview/home/view/WaterFallPraiseView;Lcom/moji/http/snsforum/entity/WaterFallPicture;)V
|
|
|
|
invoke-virtual {v2, v0}, Lcom/moji/http/snsforum/ClickPraiseRequest;->a(Lcom/moji/requestcore/MJBaseHttpCallback;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method a(Z)V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected b()V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 132
|
|
invoke-virtual {p0, v0}, Lcom/moji/newliveview/picture/PictureFragment;->b(Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public b(Z)V
|
|
.locals 7
|
|
|
|
.line 140
|
|
iget-boolean v0, p0, Lcom/moji/newliveview/picture/PictureFragment;->i:Z
|
|
|
|
if-nez v0, :cond_3
|
|
|
|
.line 141
|
|
invoke-virtual {p0, p1}, Lcom/moji/newliveview/picture/PictureFragment;->a(Z)V
|
|
|
|
.line 142
|
|
invoke-static {}, Lcom/moji/tool/DeviceTool;->m()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
.line 143
|
|
iget-object p1, p0, Lcom/moji/newliveview/picture/PictureFragment;->h:Lcom/moji/newliveview/picture/PictureAdapter;
|
|
|
|
invoke-virtual {p1}, Lcom/moji/newliveview/picture/PictureAdapter;->g()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 144
|
|
iget-object p1, p0, Lcom/moji/newliveview/picture/PictureFragment;->h:Lcom/moji/newliveview/picture/PictureAdapter;
|
|
|
|
const/4 v0, 0x5
|
|
|
|
invoke-virtual {p1, v0}, Lcom/moji/newliveview/picture/PictureAdapter;->i(I)V
|
|
|
|
:cond_0
|
|
return-void
|
|
|
|
:cond_1
|
|
if-eqz p1, :cond_2
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 149
|
|
iput-object v0, p0, Lcom/moji/newliveview/picture/PictureFragment;->e:Ljava/lang/String;
|
|
|
|
:cond_2
|
|
const/4 v0, 0x1
|
|
|
|
.line 151
|
|
iput-boolean v0, p0, Lcom/moji/newliveview/picture/PictureFragment;->i:Z
|
|
|
|
.line 152
|
|
iget-wide v2, p0, Lcom/moji/newliveview/picture/PictureFragment;->d:J
|
|
|
|
xor-int/lit8 v4, p1, 0x1
|
|
|
|
const/16 v5, 0x14
|
|
|
|
iget-object v6, p0, Lcom/moji/newliveview/picture/PictureFragment;->e:Ljava/lang/String;
|
|
|
|
move-object v1, p0
|
|
|
|
invoke-virtual/range {v1 .. v6}, Lcom/moji/newliveview/picture/PictureFragment;->a(JIILjava/lang/String;)Lcom/moji/http/snsforum/AbsWaterFallPictureRequest;
|
|
|
|
move-result-object v0
|
|
|
|
.line 153
|
|
new-instance v1, Lcom/moji/newliveview/picture/PictureFragment$2;
|
|
|
|
invoke-direct {v1, p0, p1}, Lcom/moji/newliveview/picture/PictureFragment$2;-><init>(Lcom/moji/newliveview/picture/PictureFragment;Z)V
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/http/snsforum/AbsWaterFallPictureRequest;->a(Lcom/moji/requestcore/MJBaseHttpCallback;)V
|
|
|
|
:cond_3
|
|
return-void
|
|
.end method
|
|
|
|
.method d()V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public e()V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 136
|
|
invoke-virtual {p0, v0}, Lcom/moji/newliveview/picture/PictureFragment;->b(Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onActivityResult(IILandroid/content/Intent;)V
|
|
.locals 0
|
|
|
|
.line 226
|
|
invoke-super {p0, p1, p2, p3}, Lcom/moji/newliveview/base/BaseFragment;->onActivityResult(IILandroid/content/Intent;)V
|
|
|
|
const/16 p2, 0x64
|
|
|
|
if-ne p1, p2, :cond_1
|
|
|
|
.line 228
|
|
invoke-static {}, Lcom/moji/account/data/AccountProvider;->a()Lcom/moji/account/data/AccountProvider;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Lcom/moji/account/data/AccountProvider;->f()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 229
|
|
iget-object p1, p0, Lcom/moji/newliveview/picture/PictureFragment;->j:Lcom/moji/newliveview/home/view/WaterFallPraiseView;
|
|
|
|
invoke-virtual {p1}, Lcom/moji/newliveview/home/view/WaterFallPraiseView;->a()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 230
|
|
iget-object p1, p0, Lcom/moji/newliveview/picture/PictureFragment;->j:Lcom/moji/newliveview/home/view/WaterFallPraiseView;
|
|
|
|
invoke-virtual {p1}, Lcom/moji/newliveview/home/view/WaterFallPraiseView;->c()V
|
|
|
|
goto :goto_0
|
|
|
|
.line 232
|
|
:cond_0
|
|
iget-object p1, p0, Lcom/moji/newliveview/picture/PictureFragment;->j:Lcom/moji/newliveview/home/view/WaterFallPraiseView;
|
|
|
|
iget-object p2, p0, Lcom/moji/newliveview/picture/PictureFragment;->k:Lcom/moji/http/snsforum/entity/WaterFallPicture;
|
|
|
|
invoke-virtual {p0, p1, p2}, Lcom/moji/newliveview/picture/PictureFragment;->a(Lcom/moji/newliveview/home/view/WaterFallPraiseView;Lcom/moji/http/snsforum/entity/WaterFallPicture;)V
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public onCreate(Landroid/os/Bundle;)V
|
|
.locals 0
|
|
.param p1 # Landroid/os/Bundle;
|
|
.annotation build Landroid/support/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 85
|
|
invoke-super {p0, p1}, Lcom/moji/newliveview/base/BaseFragment;->onCreate(Landroid/os/Bundle;)V
|
|
|
|
.line 86
|
|
invoke-static {}, Lcom/moji/bus/Bus;->a()Lcom/moji/bus/Bus;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1, p0}, Lcom/moji/bus/Bus;->a(Ljava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onDestroy()V
|
|
.locals 1
|
|
|
|
.line 283
|
|
invoke-super {p0}, Lcom/moji/newliveview/base/BaseFragment;->onDestroy()V
|
|
|
|
.line 284
|
|
invoke-static {}, Lcom/moji/bus/Bus;->a()Lcom/moji/bus/Bus;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p0}, Lcom/moji/bus/Bus;->b(Ljava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public refreshPraiseEvent(Lcom/moji/newliveview/category/PraiseEvent;)V
|
|
.locals 7
|
|
.annotation runtime Lorg/greenrobot/eventbus/Subscribe;
|
|
a = .enum Lorg/greenrobot/eventbus/ThreadMode;->MAIN:Lorg/greenrobot/eventbus/ThreadMode;
|
|
.end annotation
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
.line 269
|
|
iget-object v0, p0, Lcom/moji/newliveview/picture/PictureFragment;->c:Ljava/lang/String;
|
|
|
|
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
iget-object v0, p0, Lcom/moji/newliveview/picture/PictureFragment;->c:Ljava/lang/String;
|
|
|
|
iget-object v1, p1, Lcom/moji/newliveview/category/PraiseEvent;->b:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
.line 270
|
|
iget-object v0, p0, Lcom/moji/newliveview/picture/PictureFragment;->h:Lcom/moji/newliveview/picture/PictureAdapter;
|
|
|
|
invoke-virtual {v0}, Lcom/moji/newliveview/picture/PictureAdapter;->f()Ljava/util/List;
|
|
|
|
move-result-object v0
|
|
|
|
.line 271
|
|
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v0
|
|
|
|
:cond_0
|
|
:goto_0
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lcom/moji/http/snsforum/entity/WaterFallPicture;
|
|
|
|
.line 272
|
|
iget-wide v2, v1, Lcom/moji/http/snsforum/entity/WaterFallPicture;->id:J
|
|
|
|
iget-wide v4, p1, Lcom/moji/newliveview/category/PraiseEvent;->a:J
|
|
|
|
sub-long/2addr v2, v4
|
|
|
|
const-wide/16 v4, 0x0
|
|
|
|
cmp-long v6, v2, v4
|
|
|
|
if-nez v6, :cond_0
|
|
|
|
.line 273
|
|
iget-wide v2, v1, Lcom/moji/http/snsforum/entity/WaterFallPicture;->praise_num:J
|
|
|
|
const-wide/16 v4, 0x1
|
|
|
|
add-long/2addr v2, v4
|
|
|
|
iput-wide v2, v1, Lcom/moji/http/snsforum/entity/WaterFallPicture;->praise_num:J
|
|
|
|
const/4 v2, 0x1
|
|
|
|
.line 274
|
|
iput-boolean v2, v1, Lcom/moji/http/snsforum/entity/WaterFallPicture;->is_praise:Z
|
|
|
|
goto :goto_0
|
|
|
|
.line 277
|
|
:cond_1
|
|
iget-object p1, p0, Lcom/moji/newliveview/picture/PictureFragment;->h:Lcom/moji/newliveview/picture/PictureAdapter;
|
|
|
|
invoke-virtual {p1}, Lcom/moji/newliveview/picture/PictureAdapter;->c()V
|
|
|
|
:cond_2
|
|
return-void
|
|
.end method
|