767 lines
18 KiB
Smali
767 lines
18 KiB
Smali
.class public Lcom/moji/newliveview/picture/PictureAdapter;
|
|
.super Lcom/moji/newliveview/base/AbsExceptionAdapter;
|
|
.source "PictureAdapter.java"
|
|
|
|
# interfaces
|
|
.implements Landroid/view/View$OnClickListener;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/moji/newliveview/picture/PictureAdapter$OnItemHandleListener;,
|
|
Lcom/moji/newliveview/picture/PictureAdapter$FooterViewHolder;,
|
|
Lcom/moji/newliveview/picture/PictureAdapter$PicViewHolder;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private d:I
|
|
|
|
.field private e:Ljava/util/Map;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/Integer;",
|
|
"Ljava/lang/Integer;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private f:Landroid/support/v7/widget/StaggeredGridLayoutManager$LayoutParams;
|
|
|
|
.field private g:F
|
|
|
|
.field private h:F
|
|
|
|
.field private i:I
|
|
|
|
.field private j:I
|
|
|
|
.field private k:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Lcom/moji/http/snsforum/entity/WaterFallPicture;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private l:I
|
|
|
|
.field private m:Lcom/moji/newliveview/picture/PictureAdapter$OnItemHandleListener;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 0
|
|
|
|
.line 55
|
|
invoke-direct {p0, p1}, Lcom/moji/newliveview/base/AbsExceptionAdapter;-><init>(Landroid/content/Context;)V
|
|
|
|
const/4 p1, 0x3
|
|
|
|
.line 42
|
|
iput p1, p0, Lcom/moji/newliveview/picture/PictureAdapter;->d:I
|
|
|
|
.line 44
|
|
new-instance p1, Ljava/util/HashMap;
|
|
|
|
invoke-direct {p1}, Ljava/util/HashMap;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/moji/newliveview/picture/PictureAdapter;->e:Ljava/util/Map;
|
|
|
|
.line 56
|
|
sget p1, Lcom/moji/newliveview/R$dimen;->waterfall_item_text_content_height:I
|
|
|
|
invoke-static {p1}, Lcom/moji/tool/DeviceTool;->a(I)F
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Lcom/moji/newliveview/picture/PictureAdapter;->g:F
|
|
|
|
.line 57
|
|
sget p1, Lcom/moji/newliveview/R$dimen;->waterfall_item_padding_bottom:I
|
|
|
|
invoke-static {p1}, Lcom/moji/tool/DeviceTool;->a(I)F
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Lcom/moji/newliveview/picture/PictureAdapter;->h:F
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/newliveview/picture/PictureAdapter;)Ljava/util/List;
|
|
.locals 0
|
|
|
|
.line 38
|
|
iget-object p0, p0, Lcom/moji/newliveview/picture/PictureAdapter;->k:Ljava/util/List;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic b(Lcom/moji/newliveview/picture/PictureAdapter;)Ljava/util/Map;
|
|
.locals 0
|
|
|
|
.line 38
|
|
iget-object p0, p0, Lcom/moji/newliveview/picture/PictureAdapter;->e:Ljava/util/Map;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic c(Lcom/moji/newliveview/picture/PictureAdapter;)I
|
|
.locals 0
|
|
|
|
.line 38
|
|
iget p0, p0, Lcom/moji/newliveview/picture/PictureAdapter;->i:I
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method static synthetic d(Lcom/moji/newliveview/picture/PictureAdapter;)I
|
|
.locals 0
|
|
|
|
.line 38
|
|
iget p0, p0, Lcom/moji/newliveview/picture/PictureAdapter;->l:I
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method static synthetic e(Lcom/moji/newliveview/picture/PictureAdapter;)Landroid/content/Context;
|
|
.locals 0
|
|
|
|
.line 38
|
|
iget-object p0, p0, Lcom/moji/newliveview/picture/PictureAdapter;->a:Landroid/content/Context;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Landroid/view/View;III)Landroid/support/v7/widget/StaggeredGridLayoutManager$LayoutParams;
|
|
.locals 1
|
|
|
|
.line 246
|
|
invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroid/support/v7/widget/StaggeredGridLayoutManager$LayoutParams;
|
|
|
|
iput-object p1, p0, Lcom/moji/newliveview/picture/PictureAdapter;->f:Landroid/support/v7/widget/StaggeredGridLayoutManager$LayoutParams;
|
|
|
|
.line 247
|
|
iget-object p1, p0, Lcom/moji/newliveview/picture/PictureAdapter;->f:Landroid/support/v7/widget/StaggeredGridLayoutManager$LayoutParams;
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
.line 248
|
|
new-instance p1, Landroid/support/v7/widget/StaggeredGridLayoutManager$LayoutParams;
|
|
|
|
const/4 v0, -0x1
|
|
|
|
invoke-direct {p1, v0, v0}, Landroid/support/v7/widget/StaggeredGridLayoutManager$LayoutParams;-><init>(II)V
|
|
|
|
iput-object p1, p0, Lcom/moji/newliveview/picture/PictureAdapter;->f:Landroid/support/v7/widget/StaggeredGridLayoutManager$LayoutParams;
|
|
|
|
.line 251
|
|
:cond_0
|
|
iget p1, p0, Lcom/moji/newliveview/picture/PictureAdapter;->i:I
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
iget p1, p0, Lcom/moji/newliveview/picture/PictureAdapter;->j:I
|
|
|
|
if-nez p1, :cond_2
|
|
|
|
.line 252
|
|
:cond_1
|
|
invoke-static {}, Lcom/moji/tool/DeviceTool;->b()I
|
|
|
|
move-result p1
|
|
|
|
div-int/lit8 p1, p1, 0x2
|
|
|
|
iput p1, p0, Lcom/moji/newliveview/picture/PictureAdapter;->j:I
|
|
|
|
.line 253
|
|
iget p1, p0, Lcom/moji/newliveview/picture/PictureAdapter;->j:I
|
|
|
|
sget v0, Lcom/moji/newliveview/base/utils/GlobalUtils;->a:I
|
|
|
|
sub-int/2addr p1, v0
|
|
|
|
sget v0, Lcom/moji/newliveview/base/utils/GlobalUtils;->b:I
|
|
|
|
sub-int/2addr p1, v0
|
|
|
|
iput p1, p0, Lcom/moji/newliveview/picture/PictureAdapter;->i:I
|
|
|
|
.line 256
|
|
:cond_2
|
|
iget-object p1, p0, Lcom/moji/newliveview/picture/PictureAdapter;->e:Ljava/util/Map;
|
|
|
|
invoke-static {p4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-interface {p1, v0}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
.line 257
|
|
iget-object p1, p0, Lcom/moji/newliveview/picture/PictureAdapter;->e:Ljava/util/Map;
|
|
|
|
invoke-static {p4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-interface {p1, p2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Ljava/lang/Integer;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result p1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
const/high16 p1, 0x3f800000 # 1.0f
|
|
|
|
if-eqz p2, :cond_4
|
|
|
|
if-eqz p3, :cond_4
|
|
|
|
int-to-float p2, p2
|
|
|
|
mul-float p2, p2, p1
|
|
|
|
int-to-float p1, p3
|
|
|
|
div-float p1, p2, p1
|
|
|
|
.line 263
|
|
:cond_4
|
|
iget p2, p0, Lcom/moji/newliveview/picture/PictureAdapter;->i:I
|
|
|
|
int-to-float p2, p2
|
|
|
|
div-float/2addr p2, p1
|
|
|
|
float-to-int p1, p2
|
|
|
|
.line 264
|
|
iget-object p2, p0, Lcom/moji/newliveview/picture/PictureAdapter;->e:Ljava/util/Map;
|
|
|
|
invoke-static {p4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object p3
|
|
|
|
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object p4
|
|
|
|
invoke-interface {p2, p3, p4}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 266
|
|
:goto_0
|
|
iget-object p2, p0, Lcom/moji/newliveview/picture/PictureAdapter;->f:Landroid/support/v7/widget/StaggeredGridLayoutManager$LayoutParams;
|
|
|
|
iget p3, p0, Lcom/moji/newliveview/picture/PictureAdapter;->j:I
|
|
|
|
iput p3, p2, Landroid/support/v7/widget/StaggeredGridLayoutManager$LayoutParams;->width:I
|
|
|
|
.line 267
|
|
iget-object p2, p0, Lcom/moji/newliveview/picture/PictureAdapter;->f:Landroid/support/v7/widget/StaggeredGridLayoutManager$LayoutParams;
|
|
|
|
int-to-float p1, p1
|
|
|
|
iget p3, p0, Lcom/moji/newliveview/picture/PictureAdapter;->g:F
|
|
|
|
add-float/2addr p1, p3
|
|
|
|
iget p3, p0, Lcom/moji/newliveview/picture/PictureAdapter;->h:F
|
|
|
|
add-float/2addr p1, p3
|
|
|
|
float-to-int p1, p1
|
|
|
|
iput p1, p2, Landroid/support/v7/widget/StaggeredGridLayoutManager$LayoutParams;->height:I
|
|
|
|
.line 268
|
|
iget-object p1, p0, Lcom/moji/newliveview/picture/PictureAdapter;->f:Landroid/support/v7/widget/StaggeredGridLayoutManager$LayoutParams;
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public a(Lcom/moji/newliveview/picture/PictureAdapter$OnItemHandleListener;)V
|
|
.locals 0
|
|
|
|
.line 311
|
|
iput-object p1, p0, Lcom/moji/newliveview/picture/PictureAdapter;->m:Lcom/moji/newliveview/picture/PictureAdapter$OnItemHandleListener;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Ljava/util/List;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/List<",
|
|
"Lcom/moji/http/snsforum/entity/WaterFallPicture;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 61
|
|
iget-object v0, p0, Lcom/moji/newliveview/picture/PictureAdapter;->k:Ljava/util/List;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 62
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/moji/newliveview/picture/PictureAdapter;->k:Ljava/util/List;
|
|
|
|
.line 64
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/moji/newliveview/picture/PictureAdapter;->k:Ljava/util/List;
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Z)V
|
|
.locals 0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const/4 p1, 0x3
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p1, 0x4
|
|
|
|
.line 88
|
|
:goto_0
|
|
invoke-virtual {p0, p1}, Lcom/moji/newliveview/picture/PictureAdapter;->i(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected c(Landroid/view/ViewGroup;I)Landroid/support/v7/widget/RecyclerView$ViewHolder;
|
|
.locals 2
|
|
|
|
const/4 p1, 0x0
|
|
|
|
const/16 v0, 0xb
|
|
|
|
if-ne p2, v0, :cond_0
|
|
|
|
.line 100
|
|
new-instance p2, Lcom/moji/newliveview/picture/PictureAdapter$FooterViewHolder;
|
|
|
|
iget-object v0, p0, Lcom/moji/newliveview/picture/PictureAdapter;->b:Landroid/view/LayoutInflater;
|
|
|
|
sget v1, Lcom/moji/newliveview/R$layout;->item_piclist_footer:I
|
|
|
|
invoke-virtual {v0, v1, p1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p2, p0, p1}, Lcom/moji/newliveview/picture/PictureAdapter$FooterViewHolder;-><init>(Lcom/moji/newliveview/picture/PictureAdapter;Landroid/view/View;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 102
|
|
:cond_0
|
|
new-instance p2, Lcom/moji/newliveview/picture/PictureAdapter$PicViewHolder;
|
|
|
|
iget-object v0, p0, Lcom/moji/newliveview/picture/PictureAdapter;->b:Landroid/view/LayoutInflater;
|
|
|
|
sget v1, Lcom/moji/newliveview/R$layout;->item_waterfall_new:I
|
|
|
|
invoke-virtual {v0, v1, p1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p2, p0, p1}, Lcom/moji/newliveview/picture/PictureAdapter$PicViewHolder;-><init>(Lcom/moji/newliveview/picture/PictureAdapter;Landroid/view/View;)V
|
|
|
|
:goto_0
|
|
return-object p2
|
|
.end method
|
|
|
|
.method protected c(Landroid/support/v7/widget/RecyclerView$ViewHolder;I)V
|
|
.locals 1
|
|
|
|
.line 110
|
|
invoke-virtual {p0, p2}, Lcom/moji/newliveview/picture/PictureAdapter;->a(I)I
|
|
|
|
move-result v0
|
|
|
|
packed-switch v0, :pswitch_data_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 117
|
|
:pswitch_0
|
|
check-cast p1, Lcom/moji/newliveview/picture/PictureAdapter$FooterViewHolder;
|
|
|
|
.line 118
|
|
iget p2, p0, Lcom/moji/newliveview/picture/PictureAdapter;->d:I
|
|
|
|
const/4 v0, 0x3
|
|
|
|
if-ne p2, v0, :cond_0
|
|
|
|
.line 119
|
|
invoke-static {p1}, Lcom/moji/newliveview/picture/PictureAdapter$FooterViewHolder;->a(Lcom/moji/newliveview/picture/PictureAdapter$FooterViewHolder;)Lcom/moji/FooterView;
|
|
|
|
move-result-object p1
|
|
|
|
sget p2, Lcom/moji/newliveview/R$string;->pull_up_loading_more:I
|
|
|
|
invoke-virtual {p1, v0, p2}, Lcom/moji/FooterView;->a(II)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 121
|
|
:cond_0
|
|
invoke-static {p1}, Lcom/moji/newliveview/picture/PictureAdapter$FooterViewHolder;->a(Lcom/moji/newliveview/picture/PictureAdapter$FooterViewHolder;)Lcom/moji/FooterView;
|
|
|
|
move-result-object p1
|
|
|
|
iget p2, p0, Lcom/moji/newliveview/picture/PictureAdapter;->d:I
|
|
|
|
invoke-virtual {p1, p2}, Lcom/moji/FooterView;->e(I)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 113
|
|
:pswitch_1
|
|
check-cast p1, Lcom/moji/newliveview/picture/PictureAdapter$PicViewHolder;
|
|
|
|
.line 114
|
|
invoke-virtual {p1, p2}, Lcom/moji/newliveview/picture/PictureAdapter$PicViewHolder;->c(I)V
|
|
|
|
:goto_0
|
|
return-void
|
|
|
|
nop
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0xa
|
|
:pswitch_1
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|
|
|
|
.method protected d()I
|
|
.locals 1
|
|
|
|
.line 129
|
|
iget-object v0, p0, Lcom/moji/newliveview/picture/PictureAdapter;->k:Ljava/util/List;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/moji/newliveview/picture/PictureAdapter;->k:Ljava/util/List;
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->size()I
|
|
|
|
move-result v0
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public e()V
|
|
.locals 1
|
|
|
|
.line 68
|
|
iget-object v0, p0, Lcom/moji/newliveview/picture/PictureAdapter;->k:Ljava/util/List;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 69
|
|
iget-object v0, p0, Lcom/moji/newliveview/picture/PictureAdapter;->k:Ljava/util/List;
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->clear()V
|
|
|
|
.line 71
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/moji/newliveview/picture/PictureAdapter;->e:Ljava/util/Map;
|
|
|
|
invoke-interface {v0}, Ljava/util/Map;->clear()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public e(Landroid/support/v7/widget/RecyclerView$ViewHolder;)V
|
|
.locals 2
|
|
|
|
.line 287
|
|
iget-object v0, p1, Landroid/support/v7/widget/RecyclerView$ViewHolder;->a:Landroid/view/View;
|
|
|
|
invoke-virtual {v0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/support/v7/widget/StaggeredGridLayoutManager$LayoutParams;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 289
|
|
invoke-virtual {p1}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->d()I
|
|
|
|
move-result p1
|
|
|
|
.line 290
|
|
invoke-virtual {p0, p1}, Lcom/moji/newliveview/picture/PictureAdapter;->a(I)I
|
|
|
|
move-result p1
|
|
|
|
const/16 v1, 0xb
|
|
|
|
if-ne p1, v1, :cond_0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
.line 292
|
|
invoke-virtual {v0, p1}, Landroid/support/v7/widget/StaggeredGridLayoutManager$LayoutParams;->a(Z)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public f(I)I
|
|
.locals 1
|
|
|
|
.line 134
|
|
iget-object v0, p0, Lcom/moji/newliveview/picture/PictureAdapter;->k:Ljava/util/List;
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->size()I
|
|
|
|
move-result v0
|
|
|
|
if-ne p1, v0, :cond_0
|
|
|
|
const/16 p1, 0xb
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/16 p1, 0xa
|
|
|
|
:goto_0
|
|
return p1
|
|
.end method
|
|
|
|
.method public f()Ljava/util/List;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/List<",
|
|
"Lcom/moji/http/snsforum/entity/WaterFallPicture;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 315
|
|
iget-object v0, p0, Lcom/moji/newliveview/picture/PictureAdapter;->k:Ljava/util/List;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public g()Z
|
|
.locals 1
|
|
|
|
.line 320
|
|
invoke-virtual {p0}, Lcom/moji/newliveview/picture/PictureAdapter;->a()I
|
|
|
|
move-result v0
|
|
|
|
if-lez v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public h(I)V
|
|
.locals 0
|
|
|
|
.line 75
|
|
iput p1, p0, Lcom/moji/newliveview/picture/PictureAdapter;->l:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public i(I)V
|
|
.locals 1
|
|
|
|
.line 80
|
|
iput p1, p0, Lcom/moji/newliveview/picture/PictureAdapter;->d:I
|
|
|
|
.line 81
|
|
invoke-virtual {p0}, Lcom/moji/newliveview/picture/PictureAdapter;->a()I
|
|
|
|
move-result p1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
if-le p1, v0, :cond_0
|
|
|
|
.line 82
|
|
invoke-virtual {p0}, Lcom/moji/newliveview/picture/PictureAdapter;->a()I
|
|
|
|
move-result p1
|
|
|
|
sub-int/2addr p1, v0
|
|
|
|
invoke-virtual {p0, p1}, Lcom/moji/newliveview/picture/PictureAdapter;->c(I)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public onClick(Landroid/view/View;)V
|
|
.locals 2
|
|
|
|
.line 139
|
|
invoke-virtual {p1}, Landroid/view/View;->getId()I
|
|
|
|
move-result v0
|
|
|
|
.line 140
|
|
sget v1, Lcom/moji/newliveview/R$id;->root:I
|
|
|
|
if-ne v0, v1, :cond_1
|
|
|
|
.line 141
|
|
invoke-static {}, Lcom/moji/tool/Utils;->b()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 144
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/moji/newliveview/picture/PictureAdapter;->m:Lcom/moji/newliveview/picture/PictureAdapter$OnItemHandleListener;
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
.line 145
|
|
iget-object v0, p0, Lcom/moji/newliveview/picture/PictureAdapter;->m:Lcom/moji/newliveview/picture/PictureAdapter$OnItemHandleListener;
|
|
|
|
sget v1, Lcom/moji/newliveview/R$id;->id_tag:I
|
|
|
|
invoke-virtual {p1, v1}, Landroid/view/View;->getTag(I)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Landroid/view/View;
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Ljava/lang/Integer;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result p1
|
|
|
|
invoke-interface {v0, v1, p1}, Lcom/moji/newliveview/picture/PictureAdapter$OnItemHandleListener;->a(Landroid/view/View;I)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 147
|
|
:cond_1
|
|
sget v1, Lcom/moji/newliveview/R$id;->view_praise:I
|
|
|
|
if-ne v0, v1, :cond_4
|
|
|
|
const-wide/16 v0, 0x12c
|
|
|
|
.line 148
|
|
invoke-static {v0, v1}, Lcom/moji/tool/Utils;->a(J)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
return-void
|
|
|
|
.line 151
|
|
:cond_2
|
|
iget-object v0, p0, Lcom/moji/newliveview/picture/PictureAdapter;->m:Lcom/moji/newliveview/picture/PictureAdapter$OnItemHandleListener;
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
.line 152
|
|
invoke-static {}, Lcom/moji/tool/DeviceTool;->m()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_3
|
|
|
|
.line 153
|
|
sget p1, Lcom/moji/newliveview/R$string;->no_net_work:I
|
|
|
|
invoke-static {p1}, Lcom/moji/tool/ToastTool;->a(I)V
|
|
|
|
return-void
|
|
|
|
.line 156
|
|
:cond_3
|
|
move-object v0, p1
|
|
|
|
check-cast v0, Lcom/moji/newliveview/home/view/WaterFallPraiseView;
|
|
|
|
.line 157
|
|
invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Lcom/moji/http/snsforum/entity/WaterFallPicture;
|
|
|
|
.line 158
|
|
iget-object v1, p0, Lcom/moji/newliveview/picture/PictureAdapter;->m:Lcom/moji/newliveview/picture/PictureAdapter$OnItemHandleListener;
|
|
|
|
invoke-interface {v1, v0, p1}, Lcom/moji/newliveview/picture/PictureAdapter$OnItemHandleListener;->a(Lcom/moji/newliveview/home/view/WaterFallPraiseView;Lcom/moji/http/snsforum/entity/WaterFallPicture;)V
|
|
|
|
:cond_4
|
|
:goto_0
|
|
return-void
|
|
.end method
|