816 lines
23 KiB
Smali
816 lines
23 KiB
Smali
.class public Lcom/moji/newliveview/subject/cell/DetailPraiseCell;
|
|
.super Lcom/moji/newliveview/dynamic/base/BaseCell;
|
|
.source "DetailPraiseCell.java"
|
|
|
|
# interfaces
|
|
.implements Landroid/view/View$OnClickListener;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/moji/newliveview/subject/cell/DetailPraiseCell$MyAdapter;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/moji/newliveview/dynamic/base/BaseCell<",
|
|
"Ljava/util/List<",
|
|
"Lcom/moji/http/snsforum/entity/SubjectDetailResult$SubjectPraise;",
|
|
">;>;",
|
|
"Landroid/view/View$OnClickListener;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private a:Lcom/moji/http/snsforum/entity/SubjectDetailResult$SubjectDetail;
|
|
|
|
.field private b:Landroid/widget/ImageView;
|
|
|
|
.field private d:Landroid/support/v7/widget/RecyclerView;
|
|
|
|
.field private e:Landroid/support/v7/widget/GridLayoutManager;
|
|
|
|
.field private f:Lcom/moji/newliveview/subject/cell/DetailPraiseCell$MyAdapter;
|
|
|
|
.field private g:I
|
|
|
|
.field private h:Landroid/content/Context;
|
|
|
|
.field private i:Z
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/moji/http/snsforum/entity/SubjectDetailResult$SubjectDetail;Ljava/util/List;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/moji/http/snsforum/entity/SubjectDetailResult$SubjectDetail;",
|
|
"Ljava/util/List<",
|
|
"Lcom/moji/http/snsforum/entity/SubjectDetailResult$SubjectPraise;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 58
|
|
invoke-direct {p0, p2}, Lcom/moji/newliveview/dynamic/base/BaseCell;-><init>(Ljava/lang/Object;)V
|
|
|
|
const/4 p2, 0x0
|
|
|
|
.line 157
|
|
iput-boolean p2, p0, Lcom/moji/newliveview/subject/cell/DetailPraiseCell;->i:Z
|
|
|
|
.line 59
|
|
iput-object p1, p0, Lcom/moji/newliveview/subject/cell/DetailPraiseCell;->a:Lcom/moji/http/snsforum/entity/SubjectDetailResult$SubjectDetail;
|
|
|
|
const/16 p1, 0xb
|
|
|
|
:goto_0
|
|
const/4 p2, 0x6
|
|
|
|
if-le p1, p2, :cond_1
|
|
|
|
.line 61
|
|
invoke-direct {p0, p1}, Lcom/moji/newliveview/subject/cell/DetailPraiseCell;->a(I)I
|
|
|
|
move-result p2
|
|
|
|
.line 62
|
|
invoke-static {}, Lcom/moji/tool/DeviceTool;->b()I
|
|
|
|
move-result v0
|
|
|
|
if-gt p2, v0, :cond_0
|
|
|
|
.line 63
|
|
iput p1, p0, Lcom/moji/newliveview/subject/cell/DetailPraiseCell;->g:I
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
add-int/lit8 p1, p1, -0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
:goto_1
|
|
return-void
|
|
.end method
|
|
|
|
.method private a(I)I
|
|
.locals 2
|
|
|
|
const/high16 v0, 0x41f00000 # 30.0f
|
|
|
|
.line 237
|
|
invoke-static {v0}, Lcom/moji/tool/DeviceTool;->a(F)I
|
|
|
|
move-result v0
|
|
|
|
const/high16 v1, 0x41d80000 # 27.0f
|
|
|
|
invoke-static {v1}, Lcom/moji/tool/DeviceTool;->a(F)I
|
|
|
|
move-result v1
|
|
|
|
mul-int v1, v1, p1
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
add-int/lit8 p1, p1, -0x1
|
|
|
|
const/high16 v1, 0x40c00000 # 6.0f
|
|
|
|
invoke-static {v1}, Lcom/moji/tool/DeviceTool;->a(F)I
|
|
|
|
move-result v1
|
|
|
|
mul-int p1, p1, v1
|
|
|
|
add-int/2addr v0, p1
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/newliveview/subject/cell/DetailPraiseCell;)Landroid/support/v7/widget/RecyclerView;
|
|
.locals 0
|
|
|
|
.line 47
|
|
iget-object p0, p0, Lcom/moji/newliveview/subject/cell/DetailPraiseCell;->d:Landroid/support/v7/widget/RecyclerView;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/newliveview/subject/cell/DetailPraiseCell;Ljava/lang/Object;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
.line 47
|
|
iput-object p1, p0, Lcom/moji/newliveview/subject/cell/DetailPraiseCell;->c:Ljava/lang/Object;
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method private a(J)V
|
|
.locals 1
|
|
|
|
.line 160
|
|
iget-boolean v0, p0, Lcom/moji/newliveview/subject/cell/DetailPraiseCell;->i:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const/4 v0, 0x1
|
|
|
|
.line 163
|
|
iput-boolean v0, p0, Lcom/moji/newliveview/subject/cell/DetailPraiseCell;->i:Z
|
|
|
|
.line 164
|
|
new-instance v0, Lcom/moji/http/snsforum/SubjectPraiseRequest;
|
|
|
|
invoke-direct {v0, p1, p2}, Lcom/moji/http/snsforum/SubjectPraiseRequest;-><init>(J)V
|
|
|
|
.line 165
|
|
new-instance p1, Lcom/moji/newliveview/subject/cell/DetailPraiseCell$1;
|
|
|
|
invoke-direct {p1, p0}, Lcom/moji/newliveview/subject/cell/DetailPraiseCell$1;-><init>(Lcom/moji/newliveview/subject/cell/DetailPraiseCell;)V
|
|
|
|
invoke-virtual {v0, p1}, Lcom/moji/http/snsforum/SubjectPraiseRequest;->a(Lcom/moji/requestcore/MJBaseHttpCallback;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/newliveview/subject/cell/DetailPraiseCell;Z)Z
|
|
.locals 0
|
|
|
|
.line 47
|
|
iput-boolean p1, p0, Lcom/moji/newliveview/subject/cell/DetailPraiseCell;->i:Z
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method static synthetic b(Lcom/moji/newliveview/subject/cell/DetailPraiseCell;)Lcom/moji/newliveview/subject/cell/DetailPraiseCell$MyAdapter;
|
|
.locals 0
|
|
|
|
.line 47
|
|
iget-object p0, p0, Lcom/moji/newliveview/subject/cell/DetailPraiseCell;->f:Lcom/moji/newliveview/subject/cell/DetailPraiseCell$MyAdapter;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private b()V
|
|
.locals 3
|
|
|
|
.line 226
|
|
iget-object v0, p0, Lcom/moji/newliveview/subject/cell/DetailPraiseCell;->f:Lcom/moji/newliveview/subject/cell/DetailPraiseCell$MyAdapter;
|
|
|
|
invoke-virtual {v0}, Lcom/moji/newliveview/subject/cell/DetailPraiseCell$MyAdapter;->a()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-ge v0, v1, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 230
|
|
:cond_0
|
|
iget-object v1, p0, Lcom/moji/newliveview/subject/cell/DetailPraiseCell;->d:Landroid/support/v7/widget/RecyclerView;
|
|
|
|
invoke-virtual {v1}, Landroid/support/v7/widget/RecyclerView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v1
|
|
|
|
.line 231
|
|
invoke-direct {p0, v0}, Lcom/moji/newliveview/subject/cell/DetailPraiseCell;->a(I)I
|
|
|
|
move-result v2
|
|
|
|
iput v2, v1, Landroid/view/ViewGroup$LayoutParams;->width:I
|
|
|
|
.line 232
|
|
iget-object v1, p0, Lcom/moji/newliveview/subject/cell/DetailPraiseCell;->e:Landroid/support/v7/widget/GridLayoutManager;
|
|
|
|
invoke-virtual {v1, v0}, Landroid/support/v7/widget/GridLayoutManager;->a(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic c(Lcom/moji/newliveview/subject/cell/DetailPraiseCell;)Lcom/moji/http/snsforum/entity/SubjectDetailResult$SubjectDetail;
|
|
.locals 0
|
|
|
|
.line 47
|
|
iget-object p0, p0, Lcom/moji/newliveview/subject/cell/DetailPraiseCell;->a:Lcom/moji/http/snsforum/entity/SubjectDetailResult$SubjectDetail;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private c()V
|
|
.locals 3
|
|
|
|
.line 241
|
|
iget-object v0, p0, Lcom/moji/newliveview/subject/cell/DetailPraiseCell;->b:Landroid/widget/ImageView;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const/4 v0, 0x4
|
|
|
|
.line 244
|
|
new-array v0, v0, [F
|
|
|
|
fill-array-data v0, :array_0
|
|
|
|
invoke-static {v0}, Landroid/animation/ValueAnimator;->ofFloat([F)Landroid/animation/ValueAnimator;
|
|
|
|
move-result-object v0
|
|
|
|
const-wide/16 v1, 0x258
|
|
|
|
.line 245
|
|
invoke-virtual {v0, v1, v2}, Landroid/animation/ValueAnimator;->setDuration(J)Landroid/animation/ValueAnimator;
|
|
|
|
.line 246
|
|
new-instance v1, Lcom/moji/newliveview/subject/cell/DetailPraiseCell$2;
|
|
|
|
invoke-direct {v1, p0}, Lcom/moji/newliveview/subject/cell/DetailPraiseCell$2;-><init>(Lcom/moji/newliveview/subject/cell/DetailPraiseCell;)V
|
|
|
|
invoke-virtual {v0, v1}, Landroid/animation/ValueAnimator;->addUpdateListener(Landroid/animation/ValueAnimator$AnimatorUpdateListener;)V
|
|
|
|
.line 254
|
|
invoke-virtual {v0}, Landroid/animation/ValueAnimator;->start()V
|
|
|
|
return-void
|
|
|
|
:array_0
|
|
.array-data 4
|
|
0x3f800000 # 1.0f
|
|
0x3fa66666 # 1.3f
|
|
0x3f5c28f6 # 0.86f
|
|
0x3f800000 # 1.0f
|
|
.end array-data
|
|
.end method
|
|
|
|
.method static synthetic d(Lcom/moji/newliveview/subject/cell/DetailPraiseCell;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
.line 47
|
|
iget-object p0, p0, Lcom/moji/newliveview/subject/cell/DetailPraiseCell;->c:Ljava/lang/Object;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic e(Lcom/moji/newliveview/subject/cell/DetailPraiseCell;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
.line 47
|
|
iget-object p0, p0, Lcom/moji/newliveview/subject/cell/DetailPraiseCell;->c:Ljava/lang/Object;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic f(Lcom/moji/newliveview/subject/cell/DetailPraiseCell;)V
|
|
.locals 0
|
|
|
|
.line 47
|
|
invoke-direct {p0}, Lcom/moji/newliveview/subject/cell/DetailPraiseCell;->b()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic g(Lcom/moji/newliveview/subject/cell/DetailPraiseCell;)V
|
|
.locals 0
|
|
|
|
.line 47
|
|
invoke-direct {p0}, Lcom/moji/newliveview/subject/cell/DetailPraiseCell;->c()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic h(Lcom/moji/newliveview/subject/cell/DetailPraiseCell;)Landroid/content/Context;
|
|
.locals 0
|
|
|
|
.line 47
|
|
iget-object p0, p0, Lcom/moji/newliveview/subject/cell/DetailPraiseCell;->h:Landroid/content/Context;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic i(Lcom/moji/newliveview/subject/cell/DetailPraiseCell;)Landroid/widget/ImageView;
|
|
.locals 0
|
|
|
|
.line 47
|
|
iget-object p0, p0, Lcom/moji/newliveview/subject/cell/DetailPraiseCell;->b:Landroid/widget/ImageView;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic j(Lcom/moji/newliveview/subject/cell/DetailPraiseCell;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
.line 47
|
|
iget-object p0, p0, Lcom/moji/newliveview/subject/cell/DetailPraiseCell;->c:Ljava/lang/Object;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic k(Lcom/moji/newliveview/subject/cell/DetailPraiseCell;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
.line 47
|
|
iget-object p0, p0, Lcom/moji/newliveview/subject/cell/DetailPraiseCell;->c:Ljava/lang/Object;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic l(Lcom/moji/newliveview/subject/cell/DetailPraiseCell;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
.line 47
|
|
iget-object p0, p0, Lcom/moji/newliveview/subject/cell/DetailPraiseCell;->c:Ljava/lang/Object;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic m(Lcom/moji/newliveview/subject/cell/DetailPraiseCell;)I
|
|
.locals 0
|
|
|
|
.line 47
|
|
iget p0, p0, Lcom/moji/newliveview/subject/cell/DetailPraiseCell;->g:I
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method static synthetic n(Lcom/moji/newliveview/subject/cell/DetailPraiseCell;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
.line 47
|
|
iget-object p0, p0, Lcom/moji/newliveview/subject/cell/DetailPraiseCell;->c:Ljava/lang/Object;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a()I
|
|
.locals 1
|
|
|
|
const/4 v0, 0x3
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public a(Landroid/view/ViewGroup;I)Lcom/moji/newliveview/dynamic/base/CustomViewHolder;
|
|
.locals 2
|
|
|
|
.line 76
|
|
invoke-virtual {p1}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object p2
|
|
|
|
.line 77
|
|
invoke-static {p2}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;
|
|
|
|
move-result-object p2
|
|
|
|
sget v0, Lcom/moji/newliveview/R$layout;->item_subject_detail_praise:I
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {p2, v0, p1, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;
|
|
|
|
move-result-object p2
|
|
|
|
.line 78
|
|
sget v0, Lcom/moji/newliveview/R$id;->rv_detail_praise:I
|
|
|
|
invoke-virtual {p2, v0}, 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/newliveview/subject/cell/DetailPraiseCell;->d:Landroid/support/v7/widget/RecyclerView;
|
|
|
|
.line 79
|
|
new-instance v0, Landroid/support/v7/widget/GridLayoutManager;
|
|
|
|
invoke-virtual {p1}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object p1
|
|
|
|
iget v1, p0, Lcom/moji/newliveview/subject/cell/DetailPraiseCell;->g:I
|
|
|
|
invoke-direct {v0, p1, v1}, Landroid/support/v7/widget/GridLayoutManager;-><init>(Landroid/content/Context;I)V
|
|
|
|
iput-object v0, p0, Lcom/moji/newliveview/subject/cell/DetailPraiseCell;->e:Landroid/support/v7/widget/GridLayoutManager;
|
|
|
|
.line 80
|
|
iget-object p1, p0, Lcom/moji/newliveview/subject/cell/DetailPraiseCell;->d:Landroid/support/v7/widget/RecyclerView;
|
|
|
|
iget-object v0, p0, Lcom/moji/newliveview/subject/cell/DetailPraiseCell;->e:Landroid/support/v7/widget/GridLayoutManager;
|
|
|
|
invoke-virtual {p1, v0}, Landroid/support/v7/widget/RecyclerView;->setLayoutManager(Landroid/support/v7/widget/RecyclerView$LayoutManager;)V
|
|
|
|
.line 81
|
|
new-instance p1, Lcom/moji/newliveview/subject/cell/DetailPraiseCell$MyAdapter;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-direct {p1, p0, v0}, Lcom/moji/newliveview/subject/cell/DetailPraiseCell$MyAdapter;-><init>(Lcom/moji/newliveview/subject/cell/DetailPraiseCell;Lcom/moji/newliveview/subject/cell/DetailPraiseCell$1;)V
|
|
|
|
iput-object p1, p0, Lcom/moji/newliveview/subject/cell/DetailPraiseCell;->f:Lcom/moji/newliveview/subject/cell/DetailPraiseCell$MyAdapter;
|
|
|
|
.line 82
|
|
iget-object p1, p0, Lcom/moji/newliveview/subject/cell/DetailPraiseCell;->d:Landroid/support/v7/widget/RecyclerView;
|
|
|
|
iget-object v0, p0, Lcom/moji/newliveview/subject/cell/DetailPraiseCell;->f:Lcom/moji/newliveview/subject/cell/DetailPraiseCell$MyAdapter;
|
|
|
|
invoke-virtual {p1, v0}, Landroid/support/v7/widget/RecyclerView;->setAdapter(Landroid/support/v7/widget/RecyclerView$Adapter;)V
|
|
|
|
.line 83
|
|
iget-object p1, p0, Lcom/moji/newliveview/subject/cell/DetailPraiseCell;->c:Ljava/lang/Object;
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 84
|
|
invoke-direct {p0}, Lcom/moji/newliveview/subject/cell/DetailPraiseCell;->b()V
|
|
|
|
.line 86
|
|
:cond_0
|
|
new-instance p1, Lcom/moji/newliveview/dynamic/base/CustomViewHolder;
|
|
|
|
invoke-direct {p1, p2}, Lcom/moji/newliveview/dynamic/base/CustomViewHolder;-><init>(Landroid/view/View;)V
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public a(Lcom/moji/newliveview/dynamic/base/CustomViewHolder;I)V
|
|
.locals 3
|
|
|
|
.line 91
|
|
invoke-virtual {p1}, Lcom/moji/newliveview/dynamic/base/CustomViewHolder;->y()Landroid/content/Context;
|
|
|
|
move-result-object p2
|
|
|
|
iput-object p2, p0, Lcom/moji/newliveview/subject/cell/DetailPraiseCell;->h:Landroid/content/Context;
|
|
|
|
.line 92
|
|
sget p2, Lcom/moji/newliveview/R$id;->ll_praise_layout:I
|
|
|
|
invoke-virtual {p1, p2}, Lcom/moji/newliveview/dynamic/base/CustomViewHolder;->c(I)Landroid/view/View;
|
|
|
|
move-result-object p2
|
|
|
|
.line 93
|
|
sget v0, Lcom/moji/newliveview/R$id;->iv_praise_pic:I
|
|
|
|
invoke-virtual {p1, v0}, Lcom/moji/newliveview/dynamic/base/CustomViewHolder;->c(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/widget/ImageView;
|
|
|
|
.line 94
|
|
sget v1, Lcom/moji/newliveview/R$id;->tv_praise_num:I
|
|
|
|
invoke-virtual {p1, v1}, Lcom/moji/newliveview/dynamic/base/CustomViewHolder;->c(I)Landroid/view/View;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Landroid/widget/TextView;
|
|
|
|
if-nez p2, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 98
|
|
:cond_0
|
|
sget v2, Lcom/moji/newliveview/R$id;->rv_detail_praise:I
|
|
|
|
invoke-virtual {p1, v2}, Lcom/moji/newliveview/dynamic/base/CustomViewHolder;->c(I)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroid/support/v7/widget/RecyclerView;
|
|
|
|
iput-object p1, p0, Lcom/moji/newliveview/subject/cell/DetailPraiseCell;->d:Landroid/support/v7/widget/RecyclerView;
|
|
|
|
.line 99
|
|
iget-object p1, p0, Lcom/moji/newliveview/subject/cell/DetailPraiseCell;->d:Landroid/support/v7/widget/RecyclerView;
|
|
|
|
invoke-virtual {p1}, Landroid/support/v7/widget/RecyclerView;->getAdapter()Landroid/support/v7/widget/RecyclerView$Adapter;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Lcom/moji/newliveview/subject/cell/DetailPraiseCell$MyAdapter;
|
|
|
|
iput-object p1, p0, Lcom/moji/newliveview/subject/cell/DetailPraiseCell;->f:Lcom/moji/newliveview/subject/cell/DetailPraiseCell$MyAdapter;
|
|
|
|
.line 100
|
|
iget-object p1, p0, Lcom/moji/newliveview/subject/cell/DetailPraiseCell;->d:Landroid/support/v7/widget/RecyclerView;
|
|
|
|
invoke-virtual {p1}, Landroid/support/v7/widget/RecyclerView;->getLayoutManager()Landroid/support/v7/widget/RecyclerView$LayoutManager;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroid/support/v7/widget/GridLayoutManager;
|
|
|
|
iput-object p1, p0, Lcom/moji/newliveview/subject/cell/DetailPraiseCell;->e:Landroid/support/v7/widget/GridLayoutManager;
|
|
|
|
.line 101
|
|
iput-object v0, p0, Lcom/moji/newliveview/subject/cell/DetailPraiseCell;->b:Landroid/widget/ImageView;
|
|
|
|
.line 102
|
|
iget-object p1, p0, Lcom/moji/newliveview/subject/cell/DetailPraiseCell;->a:Lcom/moji/http/snsforum/entity/SubjectDetailResult$SubjectDetail;
|
|
|
|
iget-boolean p1, p1, Lcom/moji/http/snsforum/entity/SubjectDetailResult$SubjectDetail;->is_praise:Z
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 103
|
|
new-instance p1, Lcom/moji/tool/drawable/MJStateDrawable;
|
|
|
|
sget v2, Lcom/moji/newliveview/R$drawable;->activity_subject_detail_praise_background_white:I
|
|
|
|
invoke-direct {p1, v2}, Lcom/moji/tool/drawable/MJStateDrawable;-><init>(I)V
|
|
|
|
invoke-virtual {p2, p1}, Landroid/view/View;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 104
|
|
sget p1, Lcom/moji/newliveview/R$drawable;->icon_praised:I
|
|
|
|
invoke-virtual {v0, p1}, Landroid/widget/ImageView;->setImageResource(I)V
|
|
|
|
const p1, -0xa3a4
|
|
|
|
.line 105
|
|
invoke-virtual {v1, p1}, Landroid/widget/TextView;->setTextColor(I)V
|
|
|
|
.line 106
|
|
iget-object p1, p0, Lcom/moji/newliveview/subject/cell/DetailPraiseCell;->a:Lcom/moji/http/snsforum/entity/SubjectDetailResult$SubjectDetail;
|
|
|
|
iget p1, p1, Lcom/moji/http/snsforum/entity/SubjectDetailResult$SubjectDetail;->praise_num:I
|
|
|
|
invoke-static {p1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {v1, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 108
|
|
:cond_1
|
|
new-instance p1, Lcom/moji/tool/drawable/MJStateDrawable;
|
|
|
|
sget v2, Lcom/moji/newliveview/R$drawable;->activity_subject_detail_praise_background_red:I
|
|
|
|
invoke-direct {p1, v2}, Lcom/moji/tool/drawable/MJStateDrawable;-><init>(I)V
|
|
|
|
invoke-virtual {p2, p1}, Landroid/view/View;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 109
|
|
sget p1, Lcom/moji/newliveview/R$drawable;->icon_subject_list_praise_big:I
|
|
|
|
invoke-virtual {v0, p1}, Landroid/widget/ImageView;->setImageResource(I)V
|
|
|
|
const/4 p1, -0x1
|
|
|
|
.line 110
|
|
invoke-virtual {v1, p1}, Landroid/widget/TextView;->setTextColor(I)V
|
|
|
|
.line 111
|
|
sget p1, Lcom/moji/newliveview/R$string;->dynameic_praise:I
|
|
|
|
invoke-virtual {v1, p1}, Landroid/widget/TextView;->setText(I)V
|
|
|
|
:goto_0
|
|
const/4 p1, 0x0
|
|
|
|
.line 113
|
|
invoke-virtual {p2, p1, p1, p1, p1}, Landroid/view/View;->setPadding(IIII)V
|
|
|
|
.line 114
|
|
invoke-virtual {p2, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
.line 115
|
|
iget-object p2, p0, Lcom/moji/newliveview/subject/cell/DetailPraiseCell;->d:Landroid/support/v7/widget/RecyclerView;
|
|
|
|
if-eqz p2, :cond_4
|
|
|
|
.line 116
|
|
iget-object p2, p0, Lcom/moji/newliveview/subject/cell/DetailPraiseCell;->c:Ljava/lang/Object;
|
|
|
|
if-eqz p2, :cond_3
|
|
|
|
iget-object p2, p0, Lcom/moji/newliveview/subject/cell/DetailPraiseCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast p2, Ljava/util/List;
|
|
|
|
invoke-interface {p2}, Ljava/util/List;->size()I
|
|
|
|
move-result p2
|
|
|
|
if-nez p2, :cond_2
|
|
|
|
goto :goto_1
|
|
|
|
.line 119
|
|
:cond_2
|
|
iget-object p2, p0, Lcom/moji/newliveview/subject/cell/DetailPraiseCell;->d:Landroid/support/v7/widget/RecyclerView;
|
|
|
|
invoke-virtual {p2, p1}, Landroid/support/v7/widget/RecyclerView;->setVisibility(I)V
|
|
|
|
goto :goto_2
|
|
|
|
.line 117
|
|
:cond_3
|
|
:goto_1
|
|
iget-object p1, p0, Lcom/moji/newliveview/subject/cell/DetailPraiseCell;->d:Landroid/support/v7/widget/RecyclerView;
|
|
|
|
const/16 p2, 0x8
|
|
|
|
invoke-virtual {p1, p2}, Landroid/support/v7/widget/RecyclerView;->setVisibility(I)V
|
|
|
|
:cond_4
|
|
:goto_2
|
|
return-void
|
|
.end method
|
|
|
|
.method public onClick(Landroid/view/View;)V
|
|
.locals 4
|
|
|
|
.line 126
|
|
invoke-static {}, Lcom/moji/tool/Utils;->b()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 129
|
|
:cond_0
|
|
invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
.line 130
|
|
invoke-virtual {p1}, Landroid/view/View;->getId()I
|
|
|
|
move-result v1
|
|
|
|
sget v2, Lcom/moji/newliveview/R$id;->ll_praise_layout:I
|
|
|
|
if-ne v1, v2, :cond_3
|
|
|
|
.line 132
|
|
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_2
|
|
|
|
.line 133
|
|
iget-object p1, p0, Lcom/moji/newliveview/subject/cell/DetailPraiseCell;->a:Lcom/moji/http/snsforum/entity/SubjectDetailResult$SubjectDetail;
|
|
|
|
iget-boolean p1, p1, Lcom/moji/http/snsforum/entity/SubjectDetailResult$SubjectDetail;->is_praise:Z
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 134
|
|
sget p1, Lcom/moji/newliveview/R$string;->click_praised:I
|
|
|
|
invoke-static {p1}, Lcom/moji/tool/ToastTool;->a(I)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 136
|
|
:cond_1
|
|
iget-object p1, p0, Lcom/moji/newliveview/subject/cell/DetailPraiseCell;->a:Lcom/moji/http/snsforum/entity/SubjectDetailResult$SubjectDetail;
|
|
|
|
iget-wide v0, p1, Lcom/moji/http/snsforum/entity/SubjectDetailResult$SubjectDetail;->id:J
|
|
|
|
invoke-direct {p0, v0, v1}, Lcom/moji/newliveview/subject/cell/DetailPraiseCell;->a(J)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 139
|
|
:cond_2
|
|
invoke-static {}, Lcom/moji/account/data/AccountProvider;->a()Lcom/moji/account/data/AccountProvider;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1, v0}, Lcom/moji/account/data/AccountProvider;->b(Landroid/content/Context;)V
|
|
|
|
:goto_0
|
|
return-void
|
|
|
|
.line 143
|
|
:cond_3
|
|
invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
.line 144
|
|
instance-of v1, p1, Lcom/moji/http/snsforum/entity/SubjectDetailResult$SubjectPraise;
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
.line 146
|
|
check-cast p1, Lcom/moji/http/snsforum/entity/SubjectDetailResult$SubjectPraise;
|
|
|
|
.line 147
|
|
invoke-static {}, Lcom/moji/account/data/AccountProvider;->a()Lcom/moji/account/data/AccountProvider;
|
|
|
|
move-result-object v1
|
|
|
|
iget-wide v2, p1, Lcom/moji/http/snsforum/entity/SubjectDetailResult$SubjectPraise;->sns_id:J
|
|
|
|
invoke-virtual {v1, v0, v2, v3}, Lcom/moji/account/data/AccountProvider;->a(Landroid/content/Context;J)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 150
|
|
:cond_4
|
|
new-instance p1, Landroid/content/Intent;
|
|
|
|
const-class v1, Lcom/moji/newliveview/subject/ui/SubjectPraiseListActivity;
|
|
|
|
invoke-direct {p1, v0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V
|
|
|
|
const-string v1, "extra_data_type"
|
|
|
|
const/4 v2, 0x1
|
|
|
|
.line 151
|
|
invoke-virtual {p1, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;
|
|
|
|
const-string v1, "extra_data_id"
|
|
|
|
.line 152
|
|
iget-object v2, p0, Lcom/moji/newliveview/subject/cell/DetailPraiseCell;->a:Lcom/moji/http/snsforum/entity/SubjectDetailResult$SubjectDetail;
|
|
|
|
iget-wide v2, v2, Lcom/moji/http/snsforum/entity/SubjectDetailResult$SubjectDetail;->id:J
|
|
|
|
invoke-virtual {p1, v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;J)Landroid/content/Intent;
|
|
|
|
.line 153
|
|
invoke-virtual {v0, p1}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
|
|
|
|
:goto_1
|
|
return-void
|
|
.end method
|