2156 lines
63 KiB
Smali
2156 lines
63 KiB
Smali
.class public Lcom/moji/newliveview/dynamic/DynamicCell;
|
|
.super Lcom/moji/newliveview/dynamic/base/BaseCell;
|
|
.source "DynamicCell.java"
|
|
|
|
# interfaces
|
|
.implements Landroid/view/View$OnClickListener;
|
|
.implements Lcom/moji/newliveview/base/view/AttentionButton$AttentionButtonOnClickCallBack;
|
|
.implements Lcom/moji/newliveview/base/view/imagelayout/ImageLayoutView$OnItemClickListener;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/moji/newliveview/dynamic/DynamicCell$CellClickCallBack;,
|
|
Lcom/moji/newliveview/dynamic/DynamicCell$highNightTextClickAble;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/moji/newliveview/dynamic/base/BaseCell<",
|
|
"Lcom/moji/http/snsforum/entity/PictureDynamic;",
|
|
">;",
|
|
"Landroid/view/View$OnClickListener;",
|
|
"Lcom/moji/newliveview/base/view/AttentionButton$AttentionButtonOnClickCallBack;",
|
|
"Lcom/moji/newliveview/base/view/imagelayout/ImageLayoutView$OnItemClickListener;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private a:Landroid/content/Context;
|
|
|
|
.field private b:Lcom/moji/newliveview/dynamic/DynamicCell$CellClickCallBack;
|
|
|
|
.field private d:Z
|
|
|
|
.field private e:Landroid/widget/ImageView;
|
|
|
|
.field private f:Landroid/widget/TextView;
|
|
|
|
.field private g:Z
|
|
|
|
.field private h:I
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/moji/http/snsforum/entity/PictureDynamic;Lcom/moji/newliveview/dynamic/DynamicCell$CellClickCallBack;I)V
|
|
.locals 0
|
|
|
|
.line 67
|
|
invoke-direct {p0, p1}, Lcom/moji/newliveview/dynamic/base/BaseCell;-><init>(Ljava/lang/Object;)V
|
|
|
|
.line 68
|
|
iput-object p2, p0, Lcom/moji/newliveview/dynamic/DynamicCell;->b:Lcom/moji/newliveview/dynamic/DynamicCell$CellClickCallBack;
|
|
|
|
.line 69
|
|
iput p3, p0, Lcom/moji/newliveview/dynamic/DynamicCell;->h:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/newliveview/dynamic/DynamicCell;)Landroid/widget/ImageView;
|
|
.locals 0
|
|
|
|
.line 56
|
|
iget-object p0, p0, Lcom/moji/newliveview/dynamic/DynamicCell;->e:Landroid/widget/ImageView;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic b(Lcom/moji/newliveview/dynamic/DynamicCell;)Landroid/content/Context;
|
|
.locals 0
|
|
|
|
.line 56
|
|
iget-object p0, p0, Lcom/moji/newliveview/dynamic/DynamicCell;->a:Landroid/content/Context;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic c(Lcom/moji/newliveview/dynamic/DynamicCell;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
.line 56
|
|
iget-object p0, p0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic d(Lcom/moji/newliveview/dynamic/DynamicCell;)I
|
|
.locals 0
|
|
|
|
.line 56
|
|
iget p0, p0, Lcom/moji/newliveview/dynamic/DynamicCell;->h:I
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method private g()Ljava/util/ArrayList;
|
|
.locals 6
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/ArrayList<",
|
|
"Lcom/moji/http/snsforum/entity/PictureDynamic$Image;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 354
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
.line 355
|
|
iget-object v1, p0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v1, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget-object v1, v1, Lcom/moji/http/snsforum/entity/PictureDynamic;->picture_list:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v1
|
|
|
|
:goto_0
|
|
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Lcom/moji/http/snsforum/entity/PictureDynamic$Image;
|
|
|
|
.line 356
|
|
new-instance v3, Lcom/moji/http/snsforum/entity/PictureDynamic$Image;
|
|
|
|
invoke-direct {v3}, Lcom/moji/http/snsforum/entity/PictureDynamic$Image;-><init>()V
|
|
|
|
.line 357
|
|
iget v4, v2, Lcom/moji/http/snsforum/entity/PictureDynamic$Image;->width:I
|
|
|
|
iput v4, v3, Lcom/moji/http/snsforum/entity/PictureDynamic$Image;->width:I
|
|
|
|
.line 358
|
|
iget v4, v2, Lcom/moji/http/snsforum/entity/PictureDynamic$Image;->height:I
|
|
|
|
iput v4, v3, Lcom/moji/http/snsforum/entity/PictureDynamic$Image;->height:I
|
|
|
|
.line 359
|
|
iget-wide v4, v2, Lcom/moji/http/snsforum/entity/PictureDynamic$Image;->picture_id:J
|
|
|
|
iput-wide v4, v3, Lcom/moji/http/snsforum/entity/PictureDynamic$Image;->picture_id:J
|
|
|
|
.line 360
|
|
iget-object v2, v2, Lcom/moji/http/snsforum/entity/PictureDynamic$Image;->original_url:Ljava/lang/String;
|
|
|
|
iput-object v2, v3, Lcom/moji/http/snsforum/entity/PictureDynamic$Image;->picture_url:Ljava/lang/String;
|
|
|
|
.line 361
|
|
iget-object v2, p0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v2, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget-object v2, v2, Lcom/moji/http/snsforum/entity/PictureDynamic;->sns_nick:Ljava/lang/String;
|
|
|
|
invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
iget-object v2, p0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v2, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget-wide v4, v2, Lcom/moji/http/snsforum/entity/PictureDynamic;->sns_id:J
|
|
|
|
invoke-static {v4, v5}, Lcom/moji/newliveview/base/utils/GlobalUtils;->a(J)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
iget-object v2, p0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v2, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget-object v2, v2, Lcom/moji/http/snsforum/entity/PictureDynamic;->sns_nick:Ljava/lang/String;
|
|
|
|
:goto_1
|
|
iput-object v2, v3, Lcom/moji/http/snsforum/entity/PictureDynamic$Image;->nick:Ljava/lang/String;
|
|
|
|
.line 362
|
|
iget-object v2, p0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v2, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget v2, v2, Lcom/moji/http/snsforum/entity/PictureDynamic;->is_watermark_show:I
|
|
|
|
iput v2, v3, Lcom/moji/http/snsforum/entity/PictureDynamic$Image;->is_watermark_show:I
|
|
|
|
.line 363
|
|
invoke-virtual {v0, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private h()V
|
|
.locals 3
|
|
|
|
.line 386
|
|
iget-object v0, p0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
iget-object v0, p0, Lcom/moji/newliveview/dynamic/DynamicCell;->e:Landroid/widget/ImageView;
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
iget-object v0, p0, Lcom/moji/newliveview/dynamic/DynamicCell;->f:Landroid/widget/TextView;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
goto :goto_3
|
|
|
|
.line 389
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v0, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget-boolean v0, v0, Lcom/moji/http/snsforum/entity/PictureDynamic;->is_praised:Z
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 390
|
|
iget-object v0, p0, Lcom/moji/newliveview/dynamic/DynamicCell;->e:Landroid/widget/ImageView;
|
|
|
|
sget v1, Lcom/moji/newliveview/R$drawable;->praise_pressed:I
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 392
|
|
:cond_1
|
|
iget-object v0, p0, Lcom/moji/newliveview/dynamic/DynamicCell;->e:Landroid/widget/ImageView;
|
|
|
|
sget v1, Lcom/moji/newliveview/R$drawable;->no_praise:I
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V
|
|
|
|
.line 395
|
|
:goto_0
|
|
iget-object v0, p0, Lcom/moji/newliveview/dynamic/DynamicCell;->f:Landroid/widget/TextView;
|
|
|
|
iget-object v1, p0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v1, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget v1, v1, Lcom/moji/http/snsforum/entity/PictureDynamic;->praise_number:I
|
|
|
|
if-nez v1, :cond_2
|
|
|
|
sget v1, Lcom/moji/newliveview/R$string;->dynameic_praise:I
|
|
|
|
invoke-static {v1}, Lcom/moji/tool/DeviceTool;->f(I)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
iget-object v2, p0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v2, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget v2, v2, Lcom/moji/http/snsforum/entity/PictureDynamic;->praise_number:I
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
const-string v2, ""
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
:goto_1
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
.line 396
|
|
iget-object v0, p0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v0, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget-boolean v0, v0, Lcom/moji/http/snsforum/entity/PictureDynamic;->is_praised:Z
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 397
|
|
iget-object v0, p0, Lcom/moji/newliveview/dynamic/DynamicCell;->f:Landroid/widget/TextView;
|
|
|
|
sget v1, Lcom/moji/newliveview/R$color;->c_ff5c5c:I
|
|
|
|
invoke-static {v1}, Lcom/moji/tool/DeviceTool;->e(I)I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V
|
|
|
|
goto :goto_2
|
|
|
|
.line 399
|
|
:cond_3
|
|
iget-object v0, p0, Lcom/moji/newliveview/dynamic/DynamicCell;->f:Landroid/widget/TextView;
|
|
|
|
sget v1, Lcom/moji/newliveview/R$color;->c_999999:I
|
|
|
|
invoke-static {v1}, Lcom/moji/tool/DeviceTool;->e(I)I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V
|
|
|
|
:goto_2
|
|
return-void
|
|
|
|
:cond_4
|
|
:goto_3
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a()I
|
|
.locals 1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public a(Landroid/view/ViewGroup;I)Lcom/moji/newliveview/dynamic/base/CustomViewHolder;
|
|
.locals 3
|
|
|
|
.line 89
|
|
new-instance p2, Lcom/moji/newliveview/dynamic/base/CustomViewHolder;
|
|
|
|
invoke-virtual {p1}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;
|
|
|
|
move-result-object v0
|
|
|
|
sget v1, Lcom/moji/newliveview/R$layout;->item_friend_dynamic:I
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-virtual {v0, v1, p1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p2, p1}, Lcom/moji/newliveview/dynamic/base/CustomViewHolder;-><init>(Landroid/view/View;)V
|
|
|
|
return-object p2
|
|
.end method
|
|
|
|
.method public a(Landroid/view/View;Ljava/util/ArrayList;Ljava/util/ArrayList;[FIZ)V
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/view/View;",
|
|
"Ljava/util/ArrayList<",
|
|
"Lcom/moji/http/snsforum/entity/IPicture;",
|
|
">;",
|
|
"Ljava/util/ArrayList<",
|
|
"Landroid/graphics/Rect;",
|
|
">;[FIZ)V"
|
|
}
|
|
.end annotation
|
|
|
|
if-ltz p5, :cond_1
|
|
|
|
.line 335
|
|
invoke-virtual {p3}, Ljava/util/ArrayList;->size()I
|
|
|
|
move-result p6
|
|
|
|
if-lt p5, p6, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 338
|
|
:cond_0
|
|
new-instance p6, Landroid/content/Intent;
|
|
|
|
iget-object v0, p0, Lcom/moji/newliveview/dynamic/DynamicCell;->a:Landroid/content/Context;
|
|
|
|
const-class v1, Lcom/moji/newliveview/dynamic/PreViewImageActivity;
|
|
|
|
invoke-direct {p6, v0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V
|
|
|
|
.line 339
|
|
new-instance v0, Landroid/os/Bundle;
|
|
|
|
const/4 v1, 0x5
|
|
|
|
invoke-direct {v0, v1}, Landroid/os/Bundle;-><init>(I)V
|
|
|
|
const-string v1, "extra_data_picture_list"
|
|
|
|
.line 340
|
|
invoke-direct {p0}, Lcom/moji/newliveview/dynamic/DynamicCell;->g()Ljava/util/ArrayList;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/os/Bundle;->putParcelableArrayList(Ljava/lang/String;Ljava/util/ArrayList;)V
|
|
|
|
const-string v1, "extra_data_position"
|
|
|
|
.line 341
|
|
invoke-virtual {v0, v1, p5}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V
|
|
|
|
.line 342
|
|
invoke-virtual {p6, v0}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;
|
|
|
|
.line 343
|
|
iget-object v0, p0, Lcom/moji/newliveview/dynamic/DynamicCell;->a:Landroid/content/Context;
|
|
|
|
check-cast v0, Landroid/app/Activity;
|
|
|
|
.line 344
|
|
invoke-static {v0}, Lcom/moji/prelollipop/ActivityTransitionLauncher;->a(Landroid/app/Activity;)Lcom/moji/prelollipop/ActivityTransitionLauncher;
|
|
|
|
move-result-object v0
|
|
|
|
.line 345
|
|
invoke-virtual {v0, p1}, Lcom/moji/prelollipop/ActivityTransitionLauncher;->a(Landroid/view/View;)Lcom/moji/prelollipop/ActivityTransitionLauncher;
|
|
|
|
move-result-object p1
|
|
|
|
.line 346
|
|
invoke-virtual {p2, p5}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object p2
|
|
|
|
check-cast p2, Lcom/moji/http/snsforum/entity/IPicture;
|
|
|
|
invoke-interface {p2}, Lcom/moji/http/snsforum/entity/IPicture;->url()Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p1, p2}, Lcom/moji/prelollipop/ActivityTransitionLauncher;->a(Ljava/lang/String;)Lcom/moji/prelollipop/ActivityTransitionLauncher;
|
|
|
|
move-result-object p1
|
|
|
|
.line 347
|
|
invoke-virtual {p1, p4}, Lcom/moji/prelollipop/ActivityTransitionLauncher;->a([F)Lcom/moji/prelollipop/ActivityTransitionLauncher;
|
|
|
|
move-result-object p1
|
|
|
|
.line 348
|
|
invoke-virtual {p1, p3, p5}, Lcom/moji/prelollipop/ActivityTransitionLauncher;->a(Ljava/util/ArrayList;I)Lcom/moji/prelollipop/ActivityTransitionLauncher;
|
|
|
|
move-result-object p1
|
|
|
|
.line 349
|
|
invoke-virtual {p1}, Lcom/moji/prelollipop/ActivityTransitionLauncher;->b()Lcom/moji/prelollipop/ActivityTransitionLauncher;
|
|
|
|
move-result-object p1
|
|
|
|
.line 350
|
|
invoke-virtual {p1, p6}, Lcom/moji/prelollipop/ActivityTransitionLauncher;->a(Landroid/content/Intent;)V
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Lcom/moji/newliveview/dynamic/base/CustomViewHolder;I)V
|
|
.locals 17
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
move-object/from16 v1, p1
|
|
|
|
.line 94
|
|
iget-object v2, v0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
if-nez v2, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 97
|
|
:cond_0
|
|
invoke-virtual/range {p1 .. p1}, Lcom/moji/newliveview/dynamic/base/CustomViewHolder;->y()Landroid/content/Context;
|
|
|
|
move-result-object v2
|
|
|
|
iput-object v2, v0, Lcom/moji/newliveview/dynamic/DynamicCell;->a:Landroid/content/Context;
|
|
|
|
.line 98
|
|
sget v2, Lcom/moji/newliveview/R$id;->face_default:I
|
|
|
|
invoke-virtual {v1, v2}, Lcom/moji/newliveview/dynamic/base/CustomViewHolder;->c(I)Landroid/view/View;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Lcom/moji/imageview/CertificateRoundImageView;
|
|
|
|
.line 99
|
|
invoke-virtual {v2, v0}, Lcom/moji/imageview/CertificateRoundImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
.line 100
|
|
invoke-virtual/range {p1 .. p1}, Lcom/moji/newliveview/dynamic/base/CustomViewHolder;->y()Landroid/content/Context;
|
|
|
|
move-result-object v3
|
|
|
|
iget-object v4, v0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v4, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget-object v4, v4, Lcom/moji/http/snsforum/entity/PictureDynamic;->face:Ljava/lang/String;
|
|
|
|
sget v5, Lcom/moji/newliveview/R$drawable;->default_user_face_male:I
|
|
|
|
invoke-static {v3, v4, v2, v5}, Lcom/moji/tool/ImageUtils;->b(Landroid/content/Context;Ljava/lang/String;Landroid/widget/ImageView;I)V
|
|
|
|
.line 101
|
|
iget-object v3, v0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v3, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget v3, v3, Lcom/moji/http/snsforum/entity/PictureDynamic;->offical_type:I
|
|
|
|
invoke-virtual {v2, v3}, Lcom/moji/imageview/CertificateRoundImageView;->setCertificateType(I)V
|
|
|
|
.line 103
|
|
sget v2, Lcom/moji/newliveview/R$id;->tv_nick:I
|
|
|
|
invoke-virtual {v1, v2}, Lcom/moji/newliveview/dynamic/base/CustomViewHolder;->c(I)Landroid/view/View;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Landroid/widget/TextView;
|
|
|
|
.line 104
|
|
invoke-virtual {v2, v0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
.line 105
|
|
iget-object v3, v0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v3, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget-object v3, v3, Lcom/moji/http/snsforum/entity/PictureDynamic;->sns_nick:Ljava/lang/String;
|
|
|
|
invoke-static {v3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v3
|
|
|
|
const-wide/16 v4, 0x0
|
|
|
|
if-eqz v3, :cond_2
|
|
|
|
.line 106
|
|
iget-object v3, v0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v3, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget-wide v6, v3, Lcom/moji/http/snsforum/entity/PictureDynamic;->sns_id:J
|
|
|
|
cmp-long v3, v6, v4
|
|
|
|
if-nez v3, :cond_1
|
|
|
|
.line 107
|
|
sget v3, Lcom/moji/newliveview/R$string;->no_login_user:I
|
|
|
|
invoke-static {v3}, Lcom/moji/tool/DeviceTool;->f(I)Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 109
|
|
:cond_1
|
|
iget-object v3, v0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v3, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget-wide v6, v3, Lcom/moji/http/snsforum/entity/PictureDynamic;->sns_id:J
|
|
|
|
invoke-static {v6, v7}, Lcom/moji/newliveview/base/utils/GlobalUtils;->a(J)Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 112
|
|
:cond_2
|
|
iget-object v3, v0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v3, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget-object v3, v3, Lcom/moji/http/snsforum/entity/PictureDynamic;->sns_nick:Ljava/lang/String;
|
|
|
|
invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
.line 115
|
|
:goto_0
|
|
sget v2, Lcom/moji/newliveview/R$id;->tv_upload_time:I
|
|
|
|
invoke-virtual {v1, v2}, Lcom/moji/newliveview/dynamic/base/CustomViewHolder;->c(I)Landroid/view/View;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Landroid/widget/TextView;
|
|
|
|
.line 116
|
|
iget-object v3, v0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v3, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget v3, v3, Lcom/moji/http/snsforum/entity/PictureDynamic;->is_local:I
|
|
|
|
const/4 v6, 0x1
|
|
|
|
if-ne v3, v6, :cond_3
|
|
|
|
const-string v3, ""
|
|
|
|
.line 117
|
|
invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 118
|
|
:cond_3
|
|
iget-object v3, v0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v3, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget-wide v7, v3, Lcom/moji/http/snsforum/entity/PictureDynamic;->create_time:J
|
|
|
|
cmp-long v3, v7, v4
|
|
|
|
if-lez v3, :cond_4
|
|
|
|
.line 119
|
|
iget-object v3, v0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v3, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget-wide v7, v3, Lcom/moji/http/snsforum/entity/PictureDynamic;->create_time:J
|
|
|
|
invoke-static {v7, v8}, Lcom/moji/mjweather/ipc/utils/DateUtils;->a(J)Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_4
|
|
const-string v3, ""
|
|
|
|
.line 121
|
|
invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
.line 124
|
|
:goto_1
|
|
sget v2, Lcom/moji/newliveview/R$id;->tv_upload_address:I
|
|
|
|
invoke-virtual {v1, v2}, Lcom/moji/newliveview/dynamic/base/CustomViewHolder;->c(I)Landroid/view/View;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Landroid/widget/TextView;
|
|
|
|
.line 125
|
|
iget-object v3, v0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v3, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget v3, v3, Lcom/moji/http/snsforum/entity/PictureDynamic;->is_local:I
|
|
|
|
if-ne v3, v6, :cond_5
|
|
|
|
.line 126
|
|
sget v3, Lcom/moji/newliveview/R$string;->check_dynamic:I
|
|
|
|
invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(I)V
|
|
|
|
goto :goto_2
|
|
|
|
:cond_5
|
|
const-string v3, ""
|
|
|
|
.line 128
|
|
invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
.line 131
|
|
:goto_2
|
|
sget v2, Lcom/moji/newliveview/R$id;->tv_dynamic_content:I
|
|
|
|
invoke-virtual {v1, v2}, Lcom/moji/newliveview/dynamic/base/CustomViewHolder;->c(I)Landroid/view/View;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Landroid/widget/TextView;
|
|
|
|
.line 132
|
|
iget-object v3, v0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v3, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget-object v3, v3, Lcom/moji/http/snsforum/entity/PictureDynamic;->group_message:Ljava/lang/String;
|
|
|
|
invoke-static {v3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v3
|
|
|
|
const/4 v7, -0x1
|
|
|
|
const/16 v8, 0x21
|
|
|
|
const/16 v9, 0x8
|
|
|
|
const/4 v10, 0x0
|
|
|
|
if-eqz v3, :cond_6
|
|
|
|
.line 133
|
|
invoke-virtual {v2, v9}, Landroid/widget/TextView;->setVisibility(I)V
|
|
|
|
goto/16 :goto_4
|
|
|
|
.line 135
|
|
:cond_6
|
|
invoke-virtual {v2, v10}, Landroid/widget/TextView;->setVisibility(I)V
|
|
|
|
.line 136
|
|
iget-object v3, v0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v3, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget-wide v11, v3, Lcom/moji/http/snsforum/entity/PictureDynamic;->activity_id:J
|
|
|
|
cmp-long v3, v11, v4
|
|
|
|
if-lez v3, :cond_8
|
|
|
|
.line 137
|
|
iget-object v3, v0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v3, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget-object v3, v3, Lcom/moji/http/snsforum/entity/PictureDynamic;->group_message:Ljava/lang/String;
|
|
|
|
const-string v4, "#"
|
|
|
|
invoke-virtual {v3, v4, v6}, Ljava/lang/String;->indexOf(Ljava/lang/String;I)I
|
|
|
|
move-result v3
|
|
|
|
if-eq v3, v7, :cond_7
|
|
|
|
.line 139
|
|
iget-object v4, v0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v4, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget-object v4, v4, Lcom/moji/http/snsforum/entity/PictureDynamic;->group_message:Ljava/lang/String;
|
|
|
|
invoke-static {v4}, Landroid/text/SpannableString;->valueOf(Ljava/lang/CharSequence;)Landroid/text/SpannableString;
|
|
|
|
move-result-object v4
|
|
|
|
.line 140
|
|
new-instance v5, Lcom/moji/newliveview/dynamic/DynamicCell$highNightTextClickAble;
|
|
|
|
invoke-direct {v5, v0}, Lcom/moji/newliveview/dynamic/DynamicCell$highNightTextClickAble;-><init>(Lcom/moji/newliveview/dynamic/DynamicCell;)V
|
|
|
|
add-int/2addr v3, v6
|
|
|
|
invoke-virtual {v4, v5, v10, v3, v8}, Landroid/text/SpannableString;->setSpan(Ljava/lang/Object;III)V
|
|
|
|
.line 141
|
|
new-instance v5, Landroid/text/style/ForegroundColorSpan;
|
|
|
|
const-string v11, "#5295ED"
|
|
|
|
invoke-static {v11}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I
|
|
|
|
move-result v11
|
|
|
|
invoke-direct {v5, v11}, Landroid/text/style/ForegroundColorSpan;-><init>(I)V
|
|
|
|
invoke-virtual {v4, v5, v10, v3, v8}, Landroid/text/SpannableString;->setSpan(Ljava/lang/Object;III)V
|
|
|
|
.line 142
|
|
invoke-virtual {v2, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
.line 143
|
|
iget v3, v0, Lcom/moji/newliveview/dynamic/DynamicCell;->h:I
|
|
|
|
if-lez v3, :cond_9
|
|
|
|
.line 144
|
|
invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;
|
|
|
|
move-result-object v3
|
|
|
|
sget-object v4, Lcom/moji/statistics/EVENT_TAG;->NEWLIVEVIEW_MOVES_ACTIVITY_SHOW:Lcom/moji/statistics/EVENT_TAG;
|
|
|
|
new-instance v5, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v11, ""
|
|
|
|
invoke-virtual {v5, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget v11, v0, Lcom/moji/newliveview/dynamic/DynamicCell;->h:I
|
|
|
|
invoke-virtual {v5, v11}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-virtual {v3, v4, v5}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;)Lcom/moji/statistics/EventManager;
|
|
|
|
goto :goto_3
|
|
|
|
.line 147
|
|
:cond_7
|
|
iget-object v3, v0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v3, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget-object v3, v3, Lcom/moji/http/snsforum/entity/PictureDynamic;->group_message:Ljava/lang/String;
|
|
|
|
invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
goto :goto_3
|
|
|
|
.line 150
|
|
:cond_8
|
|
iget-object v3, v0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v3, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget-object v3, v3, Lcom/moji/http/snsforum/entity/PictureDynamic;->group_message:Ljava/lang/String;
|
|
|
|
invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
.line 152
|
|
:cond_9
|
|
:goto_3
|
|
invoke-static {}, Landroid/text/method/LinkMovementMethod;->getInstance()Landroid/text/method/MovementMethod;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v2, v3}, Landroid/widget/TextView;->setMovementMethod(Landroid/text/method/MovementMethod;)V
|
|
|
|
.line 155
|
|
:goto_4
|
|
sget v2, Lcom/moji/newliveview/R$id;->image_layout_view:I
|
|
|
|
invoke-virtual {v1, v2}, Lcom/moji/newliveview/dynamic/base/CustomViewHolder;->c(I)Landroid/view/View;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Lcom/moji/newliveview/base/view/imagelayout/ImageLayoutView;
|
|
|
|
.line 156
|
|
iget-object v3, v0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v3, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget-object v3, v3, Lcom/moji/http/snsforum/entity/PictureDynamic;->picture_list:Ljava/util/ArrayList;
|
|
|
|
if-eqz v3, :cond_a
|
|
|
|
iget-object v3, v0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v3, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget-object v3, v3, Lcom/moji/http/snsforum/entity/PictureDynamic;->picture_list:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v3}, Ljava/util/ArrayList;->size()I
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_a
|
|
|
|
.line 157
|
|
invoke-virtual {v2, v10}, Lcom/moji/newliveview/base/view/imagelayout/ImageLayoutView;->setVisibility(I)V
|
|
|
|
.line 158
|
|
iget-object v3, v0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v3, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget-object v3, v3, Lcom/moji/http/snsforum/entity/PictureDynamic;->picture_list:Ljava/util/ArrayList;
|
|
|
|
.line 159
|
|
check-cast v3, Ljava/util/List;
|
|
|
|
invoke-virtual {v2, v3}, Lcom/moji/newliveview/base/view/imagelayout/ImageLayoutView;->a(Ljava/util/List;)V
|
|
|
|
goto :goto_5
|
|
|
|
.line 161
|
|
:cond_a
|
|
invoke-virtual {v2, v9}, Lcom/moji/newliveview/base/view/imagelayout/ImageLayoutView;->setVisibility(I)V
|
|
|
|
.line 163
|
|
:goto_5
|
|
invoke-virtual {v2, v0}, Lcom/moji/newliveview/base/view/imagelayout/ImageLayoutView;->setOnItemClickListener(Lcom/moji/newliveview/base/view/imagelayout/ImageLayoutView$OnItemClickListener;)V
|
|
|
|
.line 165
|
|
sget v2, Lcom/moji/newliveview/R$id;->ll_tabLayout:I
|
|
|
|
invoke-virtual {v1, v2}, Lcom/moji/newliveview/dynamic/base/CustomViewHolder;->c(I)Landroid/view/View;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Landroid/widget/LinearLayout;
|
|
|
|
.line 166
|
|
sget v3, Lcom/moji/newliveview/R$id;->tv_tab1:I
|
|
|
|
invoke-virtual {v1, v3}, Lcom/moji/newliveview/dynamic/base/CustomViewHolder;->c(I)Landroid/view/View;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Landroid/widget/TextView;
|
|
|
|
.line 167
|
|
invoke-virtual {v3, v10}, Landroid/widget/TextView;->setVisibility(I)V
|
|
|
|
.line 168
|
|
iget-object v4, v0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v4, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget-object v4, v4, Lcom/moji/http/snsforum/entity/PictureDynamic;->city_name:Ljava/lang/String;
|
|
|
|
invoke-static {v4}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v4
|
|
|
|
if-eqz v4, :cond_b
|
|
|
|
.line 169
|
|
invoke-virtual {v2, v9}, Landroid/widget/LinearLayout;->setVisibility(I)V
|
|
|
|
goto :goto_6
|
|
|
|
.line 171
|
|
:cond_b
|
|
iget-object v4, v0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v4, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget-object v4, v4, Lcom/moji/http/snsforum/entity/PictureDynamic;->city_name:Ljava/lang/String;
|
|
|
|
invoke-virtual {v3, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
.line 172
|
|
invoke-virtual {v2, v10}, Landroid/widget/LinearLayout;->setVisibility(I)V
|
|
|
|
.line 175
|
|
:goto_6
|
|
sget v3, Lcom/moji/newliveview/R$id;->praise_and_comment_layout:I
|
|
|
|
invoke-virtual {v1, v3}, Lcom/moji/newliveview/dynamic/base/CustomViewHolder;->c(I)Landroid/view/View;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Landroid/widget/RelativeLayout;
|
|
|
|
.line 176
|
|
sget v4, Lcom/moji/newliveview/R$id;->ll_comment_container:I
|
|
|
|
invoke-virtual {v1, v4}, Lcom/moji/newliveview/dynamic/base/CustomViewHolder;->c(I)Landroid/view/View;
|
|
|
|
move-result-object v4
|
|
|
|
check-cast v4, Landroid/widget/LinearLayout;
|
|
|
|
.line 177
|
|
sget v5, Lcom/moji/newliveview/R$id;->ll_look_more:I
|
|
|
|
invoke-virtual {v1, v5}, Lcom/moji/newliveview/dynamic/base/CustomViewHolder;->c(I)Landroid/view/View;
|
|
|
|
move-result-object v5
|
|
|
|
check-cast v5, Landroid/widget/LinearLayout;
|
|
|
|
.line 178
|
|
sget v11, Lcom/moji/newliveview/R$id;->tv_look_more:I
|
|
|
|
invoke-virtual {v1, v11}, Lcom/moji/newliveview/dynamic/base/CustomViewHolder;->c(I)Landroid/view/View;
|
|
|
|
move-result-object v11
|
|
|
|
check-cast v11, Landroid/widget/TextView;
|
|
|
|
.line 179
|
|
sget v12, Lcom/moji/newliveview/R$id;->line:I
|
|
|
|
invoke-virtual {v1, v12}, Lcom/moji/newliveview/dynamic/base/CustomViewHolder;->c(I)Landroid/view/View;
|
|
|
|
move-result-object v12
|
|
|
|
.line 180
|
|
sget v13, Lcom/moji/newliveview/R$id;->no_comment_divider:I
|
|
|
|
invoke-virtual {v1, v13}, Lcom/moji/newliveview/dynamic/base/CustomViewHolder;->c(I)Landroid/view/View;
|
|
|
|
move-result-object v13
|
|
|
|
.line 181
|
|
invoke-virtual {v3, v10}, Landroid/widget/RelativeLayout;->setVisibility(I)V
|
|
|
|
.line 182
|
|
invoke-virtual {v4, v10}, Landroid/widget/LinearLayout;->setVisibility(I)V
|
|
|
|
.line 183
|
|
invoke-virtual {v5, v10}, Landroid/widget/LinearLayout;->setVisibility(I)V
|
|
|
|
.line 184
|
|
invoke-virtual {v2}, Landroid/widget/LinearLayout;->getVisibility()I
|
|
|
|
move-result v2
|
|
|
|
if-ne v2, v9, :cond_c
|
|
|
|
.line 185
|
|
invoke-virtual {v13, v10}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
goto :goto_7
|
|
|
|
.line 187
|
|
:cond_c
|
|
invoke-virtual {v13, v9}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
.line 191
|
|
:goto_7
|
|
sget v2, Lcom/moji/newliveview/R$id;->iv_icon_praise:I
|
|
|
|
invoke-virtual {v1, v2}, Lcom/moji/newliveview/dynamic/base/CustomViewHolder;->c(I)Landroid/view/View;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Landroid/widget/ImageView;
|
|
|
|
iput-object v2, v0, Lcom/moji/newliveview/dynamic/DynamicCell;->e:Landroid/widget/ImageView;
|
|
|
|
.line 192
|
|
sget v2, Lcom/moji/newliveview/R$id;->tv_praise_num:I
|
|
|
|
invoke-virtual {v1, v2}, Lcom/moji/newliveview/dynamic/base/CustomViewHolder;->c(I)Landroid/view/View;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Landroid/widget/TextView;
|
|
|
|
iput-object v2, v0, Lcom/moji/newliveview/dynamic/DynamicCell;->f:Landroid/widget/TextView;
|
|
|
|
.line 193
|
|
invoke-direct/range {p0 .. p0}, Lcom/moji/newliveview/dynamic/DynamicCell;->h()V
|
|
|
|
.line 196
|
|
sget v2, Lcom/moji/newliveview/R$id;->tv_comment_num:I
|
|
|
|
invoke-virtual {v1, v2}, Lcom/moji/newliveview/dynamic/base/CustomViewHolder;->c(I)Landroid/view/View;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Landroid/widget/TextView;
|
|
|
|
.line 197
|
|
iget-object v3, v0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v3, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget v3, v3, Lcom/moji/http/snsforum/entity/PictureDynamic;->comment_count:I
|
|
|
|
if-nez v3, :cond_d
|
|
|
|
sget v3, Lcom/moji/newliveview/R$string;->dynamic_comment_num:I
|
|
|
|
invoke-static {v3}, Lcom/moji/tool/DeviceTool;->f(I)Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
goto :goto_8
|
|
|
|
:cond_d
|
|
new-instance v3, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
iget-object v13, v0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v13, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget v13, v13, Lcom/moji/http/snsforum/entity/PictureDynamic;->comment_count:I
|
|
|
|
invoke-virtual {v3, v13}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
const-string v13, ""
|
|
|
|
invoke-virtual {v3, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
:goto_8
|
|
invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
.line 199
|
|
sget v2, Lcom/moji/newliveview/R$id;->tv_delete_dynamic:I
|
|
|
|
invoke-virtual {v1, v2}, Lcom/moji/newliveview/dynamic/base/CustomViewHolder;->c(I)Landroid/view/View;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Landroid/widget/TextView;
|
|
|
|
.line 200
|
|
invoke-virtual {v2, v0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
.line 201
|
|
invoke-static {}, Lcom/moji/account/data/AccountProvider;->a()Lcom/moji/account/data/AccountProvider;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v3}, Lcom/moji/account/data/AccountProvider;->d()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
iget-object v13, v0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v13, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget-wide v13, v13, Lcom/moji/http/snsforum/entity/PictureDynamic;->sns_id:J
|
|
|
|
invoke-static {v13, v14}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;
|
|
|
|
move-result-object v13
|
|
|
|
invoke-virtual {v3, v13}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_e
|
|
|
|
iget-object v3, v0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v3, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget-wide v13, v3, Lcom/moji/http/snsforum/entity/PictureDynamic;->create_time:J
|
|
|
|
const-wide/16 v15, -0x1
|
|
|
|
cmp-long v3, v13, v15
|
|
|
|
if-eqz v3, :cond_e
|
|
|
|
.line 202
|
|
invoke-virtual {v2, v10}, Landroid/widget/TextView;->setVisibility(I)V
|
|
|
|
goto :goto_9
|
|
|
|
.line 204
|
|
:cond_e
|
|
invoke-virtual {v2, v9}, Landroid/widget/TextView;->setVisibility(I)V
|
|
|
|
.line 207
|
|
:goto_9
|
|
sget v3, Lcom/moji/newliveview/R$id;->attention_btn:I
|
|
|
|
invoke-virtual {v1, v3}, Lcom/moji/newliveview/dynamic/base/CustomViewHolder;->c(I)Landroid/view/View;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Lcom/moji/newliveview/base/view/AttentionButton;
|
|
|
|
.line 208
|
|
iget-object v13, v0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v13, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget-boolean v13, v13, Lcom/moji/http/snsforum/entity/PictureDynamic;->is_concern:Z
|
|
|
|
iget-object v14, v0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v14, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget-boolean v14, v14, Lcom/moji/http/snsforum/entity/PictureDynamic;->is_followed:Z
|
|
|
|
invoke-virtual {v3, v13, v14}, Lcom/moji/newliveview/base/view/AttentionButton;->a(ZZ)V
|
|
|
|
.line 209
|
|
invoke-virtual {v3, v0}, Lcom/moji/newliveview/base/view/AttentionButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
.line 210
|
|
invoke-virtual {v3, v0}, Lcom/moji/newliveview/base/view/AttentionButton;->setAttentionButtonOnClickCallBack(Lcom/moji/newliveview/base/view/AttentionButton$AttentionButtonOnClickCallBack;)V
|
|
|
|
.line 211
|
|
iget-boolean v13, v0, Lcom/moji/newliveview/dynamic/DynamicCell;->g:Z
|
|
|
|
if-eqz v13, :cond_f
|
|
|
|
invoke-static {}, Lcom/moji/account/data/AccountProvider;->a()Lcom/moji/account/data/AccountProvider;
|
|
|
|
move-result-object v13
|
|
|
|
invoke-virtual {v13}, Lcom/moji/account/data/AccountProvider;->d()Ljava/lang/String;
|
|
|
|
move-result-object v13
|
|
|
|
iget-object v14, v0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v14, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget-wide v14, v14, Lcom/moji/http/snsforum/entity/PictureDynamic;->sns_id:J
|
|
|
|
invoke-static {v14, v15}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;
|
|
|
|
move-result-object v14
|
|
|
|
invoke-virtual {v13, v14}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v13
|
|
|
|
if-nez v13, :cond_f
|
|
|
|
.line 212
|
|
invoke-virtual {v3, v10}, Lcom/moji/newliveview/base/view/AttentionButton;->setVisibility(I)V
|
|
|
|
goto :goto_a
|
|
|
|
.line 214
|
|
:cond_f
|
|
invoke-virtual {v3, v9}, Lcom/moji/newliveview/base/view/AttentionButton;->setVisibility(I)V
|
|
|
|
.line 217
|
|
:goto_a
|
|
invoke-virtual {v4}, Landroid/widget/LinearLayout;->removeAllViews()V
|
|
|
|
.line 218
|
|
iget-object v3, v0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v3, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget-object v3, v3, Lcom/moji/http/snsforum/entity/PictureDynamic;->comment_list:Ljava/util/ArrayList;
|
|
|
|
const/4 v13, 0x3
|
|
|
|
if-eqz v3, :cond_13
|
|
|
|
iget-object v3, v0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v3, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget-object v3, v3, Lcom/moji/http/snsforum/entity/PictureDynamic;->comment_list:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v3}, Ljava/util/ArrayList;->size()I
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_13
|
|
|
|
.line 219
|
|
invoke-virtual {v4, v10}, Landroid/widget/LinearLayout;->setVisibility(I)V
|
|
|
|
.line 220
|
|
invoke-virtual {v12, v10}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
.line 221
|
|
new-instance v3, Landroid/widget/LinearLayout$LayoutParams;
|
|
|
|
const/4 v12, -0x2
|
|
|
|
invoke-direct {v3, v7, v12}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V
|
|
|
|
const/4 v7, 0x0
|
|
|
|
.line 223
|
|
:goto_b
|
|
iget-object v12, v0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v12, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget-object v12, v12, Lcom/moji/http/snsforum/entity/PictureDynamic;->comment_list:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v12}, Ljava/util/ArrayList;->size()I
|
|
|
|
move-result v12
|
|
|
|
if-le v12, v13, :cond_10
|
|
|
|
const/4 v12, 0x3
|
|
|
|
goto :goto_c
|
|
|
|
:cond_10
|
|
iget-object v12, v0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v12, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget-object v12, v12, Lcom/moji/http/snsforum/entity/PictureDynamic;->comment_list:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v12}, Ljava/util/ArrayList;->size()I
|
|
|
|
move-result v12
|
|
|
|
:goto_c
|
|
if-ge v7, v12, :cond_14
|
|
|
|
.line 224
|
|
iget-object v12, v0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v12, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget-object v12, v12, Lcom/moji/http/snsforum/entity/PictureDynamic;->comment_list:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v12, v7}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v12
|
|
|
|
check-cast v12, Lcom/moji/http/snsforum/entity/DynamicComment;
|
|
|
|
.line 225
|
|
iget-object v14, v12, Lcom/moji/http/snsforum/entity/DynamicComment;->nick:Ljava/lang/String;
|
|
|
|
invoke-static {v14}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v14
|
|
|
|
if-eqz v14, :cond_11
|
|
|
|
.line 226
|
|
iget-wide v14, v12, Lcom/moji/http/snsforum/entity/DynamicComment;->sns_id:J
|
|
|
|
invoke-static {v14, v15}, Lcom/moji/newliveview/base/utils/GlobalUtils;->a(J)Ljava/lang/String;
|
|
|
|
move-result-object v14
|
|
|
|
iput-object v14, v12, Lcom/moji/http/snsforum/entity/DynamicComment;->nick:Ljava/lang/String;
|
|
|
|
.line 228
|
|
:cond_11
|
|
new-instance v14, Landroid/widget/TextView;
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/moji/newliveview/dynamic/base/CustomViewHolder;->y()Landroid/content/Context;
|
|
|
|
move-result-object v15
|
|
|
|
invoke-direct {v14, v15}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V
|
|
|
|
.line 229
|
|
invoke-virtual {v14, v0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
.line 230
|
|
sget v15, Lcom/moji/newliveview/R$color;->c_323232:I
|
|
|
|
invoke-static {v15}, Lcom/moji/tool/DeviceTool;->e(I)I
|
|
|
|
move-result v15
|
|
|
|
invoke-virtual {v14, v15}, Landroid/widget/TextView;->setTextColor(I)V
|
|
|
|
const/high16 v15, 0x41600000 # 14.0f
|
|
|
|
.line 231
|
|
invoke-virtual {v14, v6, v15}, Landroid/widget/TextView;->setTextSize(IF)V
|
|
|
|
.line 232
|
|
invoke-virtual {v14, v3}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
.line 233
|
|
invoke-virtual {v14, v12}, Landroid/widget/TextView;->setTag(Ljava/lang/Object;)V
|
|
|
|
.line 234
|
|
new-instance v15, Landroid/text/SpannableString;
|
|
|
|
new-instance v13, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v13}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
iget-object v9, v12, Lcom/moji/http/snsforum/entity/DynamicComment;->nick:Ljava/lang/String;
|
|
|
|
invoke-virtual {v13, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v9, ": "
|
|
|
|
invoke-virtual {v13, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-object v9, v12, Lcom/moji/http/snsforum/entity/DynamicComment;->comment:Ljava/lang/String;
|
|
|
|
invoke-virtual {v13, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v13}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v9
|
|
|
|
invoke-direct {v15, v9}, Landroid/text/SpannableString;-><init>(Ljava/lang/CharSequence;)V
|
|
|
|
.line 235
|
|
new-instance v9, Landroid/text/style/ForegroundColorSpan;
|
|
|
|
const-string v13, "#586C94"
|
|
|
|
invoke-static {v13}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I
|
|
|
|
move-result v13
|
|
|
|
invoke-direct {v9, v13}, Landroid/text/style/ForegroundColorSpan;-><init>(I)V
|
|
|
|
iget-object v13, v12, Lcom/moji/http/snsforum/entity/DynamicComment;->nick:Ljava/lang/String;
|
|
|
|
invoke-static {v13}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v13
|
|
|
|
if-eqz v13, :cond_12
|
|
|
|
const/4 v12, 0x1
|
|
|
|
goto :goto_d
|
|
|
|
:cond_12
|
|
iget-object v12, v12, Lcom/moji/http/snsforum/entity/DynamicComment;->nick:Ljava/lang/String;
|
|
|
|
invoke-virtual {v12}, Ljava/lang/String;->length()I
|
|
|
|
move-result v12
|
|
|
|
add-int/2addr v12, v6
|
|
|
|
:goto_d
|
|
invoke-virtual {v15, v9, v10, v12, v8}, Landroid/text/SpannableString;->setSpan(Ljava/lang/Object;III)V
|
|
|
|
.line 236
|
|
invoke-virtual {v14, v15}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
.line 237
|
|
invoke-virtual {v4, v14}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V
|
|
|
|
add-int/lit8 v7, v7, 0x1
|
|
|
|
const/16 v9, 0x8
|
|
|
|
const/4 v13, 0x3
|
|
|
|
goto/16 :goto_b
|
|
|
|
:cond_13
|
|
const/16 v3, 0x8
|
|
|
|
.line 240
|
|
invoke-virtual {v12, v3}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
.line 241
|
|
invoke-virtual {v4, v3}, Landroid/widget/LinearLayout;->setVisibility(I)V
|
|
|
|
.line 244
|
|
:cond_14
|
|
invoke-virtual {v4}, Landroid/widget/LinearLayout;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Landroid/widget/LinearLayout$LayoutParams;
|
|
|
|
.line 245
|
|
iget-object v4, v0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v4, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget-object v4, v4, Lcom/moji/http/snsforum/entity/PictureDynamic;->comment_list:Ljava/util/ArrayList;
|
|
|
|
if-eqz v4, :cond_16
|
|
|
|
.line 246
|
|
iget-object v4, v0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v4, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget-object v4, v4, Lcom/moji/http/snsforum/entity/PictureDynamic;->comment_list:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v4}, Ljava/util/ArrayList;->size()I
|
|
|
|
move-result v4
|
|
|
|
const/4 v7, 0x3
|
|
|
|
if-lt v4, v7, :cond_15
|
|
|
|
iget-object v4, v0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v4, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget v4, v4, Lcom/moji/http/snsforum/entity/PictureDynamic;->comment_count:I
|
|
|
|
if-le v4, v7, :cond_15
|
|
|
|
if-eqz v3, :cond_16
|
|
|
|
const/high16 v4, 0x40400000 # 3.0f
|
|
|
|
.line 248
|
|
invoke-static {v4}, Lcom/moji/tool/DeviceTool;->a(F)I
|
|
|
|
move-result v4
|
|
|
|
iput v4, v3, Landroid/widget/LinearLayout$LayoutParams;->bottomMargin:I
|
|
|
|
goto :goto_e
|
|
|
|
:cond_15
|
|
if-eqz v3, :cond_16
|
|
|
|
const/high16 v4, 0x41700000 # 15.0f
|
|
|
|
.line 252
|
|
invoke-static {v4}, Lcom/moji/tool/DeviceTool;->a(F)I
|
|
|
|
move-result v4
|
|
|
|
iput v4, v3, Landroid/widget/LinearLayout$LayoutParams;->bottomMargin:I
|
|
|
|
.line 257
|
|
:cond_16
|
|
:goto_e
|
|
iget-object v3, v0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v3, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget-object v3, v3, Lcom/moji/http/snsforum/entity/PictureDynamic;->comment_list:Ljava/util/ArrayList;
|
|
|
|
if-eqz v3, :cond_17
|
|
|
|
iget-object v3, v0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v3, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget-object v3, v3, Lcom/moji/http/snsforum/entity/PictureDynamic;->comment_list:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v3}, Ljava/util/ArrayList;->size()I
|
|
|
|
move-result v3
|
|
|
|
const/4 v4, 0x3
|
|
|
|
if-lt v3, v4, :cond_17
|
|
|
|
iget-object v3, v0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v3, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget v3, v3, Lcom/moji/http/snsforum/entity/PictureDynamic;->comment_count:I
|
|
|
|
if-le v3, v4, :cond_17
|
|
|
|
.line 258
|
|
invoke-virtual {v5, v10}, Landroid/widget/LinearLayout;->setVisibility(I)V
|
|
|
|
.line 259
|
|
sget v3, Lcom/moji/newliveview/R$string;->look_all_comment:I
|
|
|
|
new-array v4, v6, [Ljava/lang/Object;
|
|
|
|
iget-object v5, v0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v5, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget v5, v5, Lcom/moji/http/snsforum/entity/PictureDynamic;->comment_count:I
|
|
|
|
invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v5
|
|
|
|
aput-object v5, v4, v10
|
|
|
|
invoke-static {v3, v4}, Lcom/moji/tool/DeviceTool;->a(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v11, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
const/16 v3, 0x8
|
|
|
|
goto :goto_f
|
|
|
|
:cond_17
|
|
const/16 v3, 0x8
|
|
|
|
.line 261
|
|
invoke-virtual {v5, v3}, Landroid/widget/LinearLayout;->setVisibility(I)V
|
|
|
|
.line 264
|
|
:goto_f
|
|
sget v4, Lcom/moji/newliveview/R$id;->ll_praise_layout:I
|
|
|
|
invoke-virtual {v1, v4}, Lcom/moji/newliveview/dynamic/base/CustomViewHolder;->c(I)Landroid/view/View;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {v4, v0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
.line 265
|
|
sget v4, Lcom/moji/newliveview/R$id;->ll_comment_layout:I
|
|
|
|
invoke-virtual {v1, v4}, Lcom/moji/newliveview/dynamic/base/CustomViewHolder;->c(I)Landroid/view/View;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {v4, v0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
.line 266
|
|
iget-boolean v4, v0, Lcom/moji/newliveview/dynamic/DynamicCell;->d:Z
|
|
|
|
if-eqz v4, :cond_18
|
|
|
|
.line 267
|
|
invoke-virtual {v2, v3}, Landroid/widget/TextView;->setVisibility(I)V
|
|
|
|
return-void
|
|
|
|
.line 271
|
|
:cond_18
|
|
sget v2, Lcom/moji/newliveview/R$id;->ll_look_more:I
|
|
|
|
invoke-virtual {v1, v2}, Lcom/moji/newliveview/dynamic/base/CustomViewHolder;->c(I)Landroid/view/View;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2, v0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
.line 272
|
|
sget v2, Lcom/moji/newliveview/R$id;->ll_root:I
|
|
|
|
invoke-virtual {v1, v2}, Lcom/moji/newliveview/dynamic/base/CustomViewHolder;->c(I)Landroid/view/View;
|
|
|
|
move-result-object v2
|
|
|
|
iget-object v3, v0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
invoke-virtual {v2, v3}, Landroid/view/View;->setTag(Ljava/lang/Object;)V
|
|
|
|
.line 273
|
|
sget v2, Lcom/moji/newliveview/R$id;->ll_root:I
|
|
|
|
invoke-virtual {v1, v2}, Lcom/moji/newliveview/dynamic/base/CustomViewHolder;->c(I)Landroid/view/View;
|
|
|
|
move-result-object v2
|
|
|
|
new-instance v3, Lcom/moji/tool/drawable/MJStateDrawable;
|
|
|
|
sget v4, Lcom/moji/newliveview/R$color;->white:I
|
|
|
|
invoke-direct {v3, v4}, Lcom/moji/tool/drawable/MJStateDrawable;-><init>(I)V
|
|
|
|
invoke-virtual {v2, v3}, Landroid/view/View;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 274
|
|
sget v2, Lcom/moji/newliveview/R$id;->ll_root:I
|
|
|
|
invoke-virtual {v1, v2}, Lcom/moji/newliveview/dynamic/base/CustomViewHolder;->c(I)Landroid/view/View;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, v0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(ZI)V
|
|
.locals 0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 406
|
|
iget-object p1, p0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast p1, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
const/4 p2, 0x1
|
|
|
|
iput-boolean p2, p1, Lcom/moji/http/snsforum/entity/PictureDynamic;->is_concern:Z
|
|
|
|
goto :goto_0
|
|
|
|
.line 408
|
|
:cond_0
|
|
iget-object p1, p0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast p1, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
const/4 p2, 0x0
|
|
|
|
iput-boolean p2, p1, Lcom/moji/http/snsforum/entity/PictureDynamic;->is_concern:Z
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public b()V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 73
|
|
iput-boolean v0, p0, Lcom/moji/newliveview/dynamic/DynamicCell;->d:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public c()V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 78
|
|
iput-boolean v0, p0, Lcom/moji/newliveview/dynamic/DynamicCell;->g:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public d()V
|
|
.locals 3
|
|
|
|
.line 369
|
|
iget-object v0, p0, Lcom/moji/newliveview/dynamic/DynamicCell;->e:Landroid/widget/ImageView;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 370
|
|
invoke-direct {p0}, Lcom/moji/newliveview/dynamic/DynamicCell;->h()V
|
|
|
|
const/4 v0, 0x4
|
|
|
|
.line 371
|
|
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 372
|
|
invoke-virtual {v0, v1, v2}, Landroid/animation/ValueAnimator;->setDuration(J)Landroid/animation/ValueAnimator;
|
|
|
|
.line 373
|
|
new-instance v1, Lcom/moji/newliveview/dynamic/DynamicCell$1;
|
|
|
|
invoke-direct {v1, p0}, Lcom/moji/newliveview/dynamic/DynamicCell$1;-><init>(Lcom/moji/newliveview/dynamic/DynamicCell;)V
|
|
|
|
invoke-virtual {v0, v1}, Landroid/animation/ValueAnimator;->addUpdateListener(Landroid/animation/ValueAnimator$AnimatorUpdateListener;)V
|
|
|
|
.line 381
|
|
invoke-virtual {v0}, Landroid/animation/ValueAnimator;->start()V
|
|
|
|
:cond_0
|
|
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 public onClick(Landroid/view/View;)V
|
|
.locals 4
|
|
|
|
.line 280
|
|
invoke-static {}, Lcom/moji/tool/Utils;->b()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 283
|
|
:cond_0
|
|
invoke-virtual {p1}, Landroid/view/View;->getId()I
|
|
|
|
move-result v0
|
|
|
|
.line 284
|
|
iget-object v1, p0, Lcom/moji/newliveview/dynamic/DynamicCell;->b:Lcom/moji/newliveview/dynamic/DynamicCell$CellClickCallBack;
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
return-void
|
|
|
|
.line 287
|
|
:cond_1
|
|
sget v1, Lcom/moji/newliveview/R$id;->face_default:I
|
|
|
|
if-eq v0, v1, :cond_c
|
|
|
|
sget v1, Lcom/moji/newliveview/R$id;->tv_nick:I
|
|
|
|
if-ne v0, v1, :cond_2
|
|
|
|
goto/16 :goto_0
|
|
|
|
.line 289
|
|
:cond_2
|
|
sget v1, Lcom/moji/newliveview/R$id;->ll_praise_layout:I
|
|
|
|
if-ne v0, v1, :cond_4
|
|
|
|
.line 290
|
|
iget-object p1, p0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast p1, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget-boolean p1, p1, Lcom/moji/http/snsforum/entity/PictureDynamic;->is_praised:Z
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
.line 291
|
|
sget p1, Lcom/moji/newliveview/R$string;->click_praised:I
|
|
|
|
invoke-static {p1}, Lcom/moji/tool/ToastTool;->a(I)V
|
|
|
|
goto/16 :goto_1
|
|
|
|
.line 293
|
|
:cond_3
|
|
iget-object p1, p0, Lcom/moji/newliveview/dynamic/DynamicCell;->b:Lcom/moji/newliveview/dynamic/DynamicCell$CellClickCallBack;
|
|
|
|
invoke-interface {p1, p0}, Lcom/moji/newliveview/dynamic/DynamicCell$CellClickCallBack;->a(Lcom/moji/newliveview/dynamic/DynamicCell;)V
|
|
|
|
goto/16 :goto_1
|
|
|
|
.line 295
|
|
:cond_4
|
|
sget v1, Lcom/moji/newliveview/R$id;->ll_comment_layout:I
|
|
|
|
if-ne v0, v1, :cond_5
|
|
|
|
.line 296
|
|
new-instance v0, Lcom/moji/http/snsforum/entity/DynamicComment;
|
|
|
|
invoke-direct {v0}, Lcom/moji/http/snsforum/entity/DynamicComment;-><init>()V
|
|
|
|
.line 297
|
|
iget-object v1, p0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v1, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget-wide v1, v1, Lcom/moji/http/snsforum/entity/PictureDynamic;->dynamic_id:J
|
|
|
|
iput-wide v1, v0, Lcom/moji/http/snsforum/entity/DynamicComment;->dynamic_id:J
|
|
|
|
const-wide/16 v1, -0x1
|
|
|
|
.line 298
|
|
iput-wide v1, v0, Lcom/moji/http/snsforum/entity/DynamicComment;->id:J
|
|
|
|
.line 299
|
|
iget-object v1, p0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
invoke-virtual {p1, v1}, Landroid/view/View;->setTag(Ljava/lang/Object;)V
|
|
|
|
.line 300
|
|
iget-object v1, p0, Lcom/moji/newliveview/dynamic/DynamicCell;->b:Lcom/moji/newliveview/dynamic/DynamicCell$CellClickCallBack;
|
|
|
|
invoke-interface {v1, p1, v0}, Lcom/moji/newliveview/dynamic/DynamicCell$CellClickCallBack;->a(Landroid/view/View;Lcom/moji/http/snsforum/entity/DynamicComment;)V
|
|
|
|
goto/16 :goto_1
|
|
|
|
.line 301
|
|
:cond_5
|
|
sget v1, Lcom/moji/newliveview/R$id;->ll_look_more:I
|
|
|
|
if-ne v0, v1, :cond_6
|
|
|
|
.line 302
|
|
new-instance p1, Landroid/content/Intent;
|
|
|
|
iget-object v0, p0, Lcom/moji/newliveview/dynamic/DynamicCell;->a:Landroid/content/Context;
|
|
|
|
const-class v1, Lcom/moji/newliveview/dynamic/DynamicCommentActivity;
|
|
|
|
invoke-direct {p1, v0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V
|
|
|
|
const-string v0, "dynamic"
|
|
|
|
.line 303
|
|
iget-object v1, p0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v1, Landroid/os/Parcelable;
|
|
|
|
invoke-virtual {p1, v0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;
|
|
|
|
.line 304
|
|
iget-object v0, p0, Lcom/moji/newliveview/dynamic/DynamicCell;->b:Lcom/moji/newliveview/dynamic/DynamicCell$CellClickCallBack;
|
|
|
|
invoke-interface {v0, p1}, Lcom/moji/newliveview/dynamic/DynamicCell$CellClickCallBack;->a(Landroid/content/Intent;)V
|
|
|
|
goto/16 :goto_1
|
|
|
|
.line 305
|
|
:cond_6
|
|
sget v1, Lcom/moji/newliveview/R$id;->ll_root:I
|
|
|
|
if-ne v0, v1, :cond_7
|
|
|
|
.line 306
|
|
new-instance p1, Landroid/content/Intent;
|
|
|
|
iget-object v0, p0, Lcom/moji/newliveview/dynamic/DynamicCell;->a:Landroid/content/Context;
|
|
|
|
const-class v1, Lcom/moji/newliveview/dynamic/DynamicCommentActivity;
|
|
|
|
invoke-direct {p1, v0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V
|
|
|
|
const-string v0, "dynamic"
|
|
|
|
.line 307
|
|
iget-object v1, p0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v1, Landroid/os/Parcelable;
|
|
|
|
invoke-virtual {p1, v0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;
|
|
|
|
.line 308
|
|
iget-object v0, p0, Lcom/moji/newliveview/dynamic/DynamicCell;->b:Lcom/moji/newliveview/dynamic/DynamicCell$CellClickCallBack;
|
|
|
|
invoke-interface {v0, p1}, Lcom/moji/newliveview/dynamic/DynamicCell$CellClickCallBack;->a(Landroid/content/Intent;)V
|
|
|
|
goto/16 :goto_1
|
|
|
|
.line 309
|
|
:cond_7
|
|
sget v1, Lcom/moji/newliveview/R$id;->tv_delete_dynamic:I
|
|
|
|
if-ne v0, v1, :cond_8
|
|
|
|
.line 310
|
|
iget-object p1, p0, Lcom/moji/newliveview/dynamic/DynamicCell;->b:Lcom/moji/newliveview/dynamic/DynamicCell$CellClickCallBack;
|
|
|
|
invoke-interface {p1, p0}, Lcom/moji/newliveview/dynamic/DynamicCell$CellClickCallBack;->b(Lcom/moji/newliveview/dynamic/DynamicCell;)V
|
|
|
|
goto/16 :goto_1
|
|
|
|
.line 311
|
|
:cond_8
|
|
sget v1, Lcom/moji/newliveview/R$id;->attention_btn:I
|
|
|
|
if-ne v0, v1, :cond_b
|
|
|
|
.line 312
|
|
check-cast p1, Lcom/moji/newliveview/base/view/AttentionButton;
|
|
|
|
.line 313
|
|
invoke-static {}, Lcom/moji/account/data/AccountProvider;->a()Lcom/moji/account/data/AccountProvider;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/moji/account/data/AccountProvider;->f()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_9
|
|
|
|
.line 314
|
|
invoke-static {}, Lcom/moji/account/data/AccountProvider;->a()Lcom/moji/account/data/AccountProvider;
|
|
|
|
move-result-object p1
|
|
|
|
iget-object v0, p0, Lcom/moji/newliveview/dynamic/DynamicCell;->a:Landroid/content/Context;
|
|
|
|
invoke-virtual {p1, v0}, Lcom/moji/account/data/AccountProvider;->b(Landroid/content/Context;)V
|
|
|
|
return-void
|
|
|
|
.line 317
|
|
:cond_9
|
|
iget-object v0, p0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v0, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget-boolean v0, v0, Lcom/moji/http/snsforum/entity/PictureDynamic;->is_concern:Z
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-nez v0, :cond_a
|
|
|
|
.line 318
|
|
iget-object v0, p0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v0, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget-wide v2, v0, Lcom/moji/http/snsforum/entity/PictureDynamic;->sns_id:J
|
|
|
|
invoke-static {v2, v3}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v2, p0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v2, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget-boolean v2, v2, Lcom/moji/http/snsforum/entity/PictureDynamic;->is_followed:Z
|
|
|
|
invoke-virtual {p1, v0, v2, v1}, Lcom/moji/newliveview/base/view/AttentionButton;->a(Ljava/lang/String;ZI)V
|
|
|
|
.line 319
|
|
invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;
|
|
|
|
move-result-object p1
|
|
|
|
sget-object v0, Lcom/moji/statistics/EVENT_TAG;->NEWLIVEVIEW_MOVES_ATTENTION:Lcom/moji/statistics/EVENT_TAG;
|
|
|
|
const-string v1, "1"
|
|
|
|
invoke-virtual {p1, v0, v1}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;)Lcom/moji/statistics/EventManager;
|
|
|
|
goto :goto_1
|
|
|
|
.line 321
|
|
:cond_a
|
|
iget-object v0, p0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v0, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget-wide v2, v0, Lcom/moji/http/snsforum/entity/PictureDynamic;->sns_id:J
|
|
|
|
invoke-static {v2, v3}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v2, p0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v2, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget-boolean v2, v2, Lcom/moji/http/snsforum/entity/PictureDynamic;->is_followed:Z
|
|
|
|
invoke-virtual {p1, v0, v2, v1}, Lcom/moji/newliveview/base/view/AttentionButton;->b(Ljava/lang/String;ZI)V
|
|
|
|
.line 322
|
|
invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;
|
|
|
|
move-result-object p1
|
|
|
|
sget-object v0, Lcom/moji/statistics/EVENT_TAG;->NEWLIVEVIEW_MOVES_ATTENTION:Lcom/moji/statistics/EVENT_TAG;
|
|
|
|
const-string v1, "2"
|
|
|
|
invoke-virtual {p1, v0, v1}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;)Lcom/moji/statistics/EventManager;
|
|
|
|
goto :goto_1
|
|
|
|
.line 325
|
|
:cond_b
|
|
invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Lcom/moji/http/snsforum/entity/DynamicComment;
|
|
|
|
.line 326
|
|
new-instance v0, Landroid/content/Intent;
|
|
|
|
iget-object v1, p0, Lcom/moji/newliveview/dynamic/DynamicCell;->a:Landroid/content/Context;
|
|
|
|
const-class v2, Lcom/moji/newliveview/dynamic/DynamicCommentActivity;
|
|
|
|
invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V
|
|
|
|
const-string v1, "dynamic"
|
|
|
|
.line 327
|
|
iget-object v2, p0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v2, Landroid/os/Parcelable;
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;
|
|
|
|
const-string v1, "comment_id"
|
|
|
|
.line 328
|
|
invoke-virtual {p1}, Lcom/moji/http/snsforum/entity/DynamicComment;->getCommentId()J
|
|
|
|
move-result-wide v2
|
|
|
|
invoke-virtual {v0, v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;J)Landroid/content/Intent;
|
|
|
|
.line 329
|
|
iget-object p1, p0, Lcom/moji/newliveview/dynamic/DynamicCell;->b:Lcom/moji/newliveview/dynamic/DynamicCell$CellClickCallBack;
|
|
|
|
invoke-interface {p1, v0}, Lcom/moji/newliveview/dynamic/DynamicCell$CellClickCallBack;->a(Landroid/content/Intent;)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 288
|
|
:cond_c
|
|
:goto_0
|
|
iget-object p1, p0, Lcom/moji/newliveview/dynamic/DynamicCell;->b:Lcom/moji/newliveview/dynamic/DynamicCell$CellClickCallBack;
|
|
|
|
iget-object v0, p0, Lcom/moji/newliveview/dynamic/DynamicCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v0, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget-wide v0, v0, Lcom/moji/http/snsforum/entity/PictureDynamic;->sns_id:J
|
|
|
|
invoke-interface {p1, v0, v1}, Lcom/moji/newliveview/dynamic/DynamicCell$CellClickCallBack;->a(J)V
|
|
|
|
:goto_1
|
|
return-void
|
|
.end method
|