274 lines
8.1 KiB
Smali
274 lines
8.1 KiB
Smali
.class public Lcom/moji/newliveview/dynamic/DynamicCommentCell;
|
|
.super Lcom/moji/newliveview/dynamic/base/BaseCell;
|
|
.source "DynamicCommentCell.java"
|
|
|
|
# interfaces
|
|
.implements Landroid/view/View$OnClickListener;
|
|
.implements Lcom/moji/mjweather/ipc/view/liveviewcomment/LiveViewReplyCommentView$OnReplyCommentListener;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/moji/newliveview/dynamic/DynamicCommentCell$CommentCellCallBack;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/moji/newliveview/dynamic/base/BaseCell<",
|
|
"Lcom/moji/http/snsforum/entity/DynamicComment;",
|
|
">;",
|
|
"Landroid/view/View$OnClickListener;",
|
|
"Lcom/moji/mjweather/ipc/view/liveviewcomment/LiveViewReplyCommentView$OnReplyCommentListener;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public a:Z
|
|
|
|
.field private b:Lcom/moji/newliveview/dynamic/DynamicCommentCell$CommentCellCallBack;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/moji/http/snsforum/entity/DynamicComment;Lcom/moji/newliveview/dynamic/DynamicCommentCell$CommentCellCallBack;)V
|
|
.locals 0
|
|
|
|
.line 27
|
|
invoke-direct {p0, p1}, Lcom/moji/newliveview/dynamic/base/BaseCell;-><init>(Ljava/lang/Object;)V
|
|
|
|
.line 28
|
|
iput-object p2, p0, Lcom/moji/newliveview/dynamic/DynamicCommentCell;->b:Lcom/moji/newliveview/dynamic/DynamicCommentCell$CommentCellCallBack;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a()I
|
|
.locals 1
|
|
|
|
const/4 v0, 0x2
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public a(Landroid/view/ViewGroup;I)Lcom/moji/newliveview/dynamic/base/CustomViewHolder;
|
|
.locals 1
|
|
|
|
.line 38
|
|
new-instance p2, Lcom/moji/newliveview/dynamic/base/CustomViewHolder;
|
|
|
|
new-instance v0, Lcom/moji/mjweather/ipc/view/liveviewcomment/CommentView;
|
|
|
|
invoke-virtual {p1}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {v0, p1}, Lcom/moji/mjweather/ipc/view/liveviewcomment/CommentView;-><init>(Landroid/content/Context;)V
|
|
|
|
invoke-direct {p2, v0}, Lcom/moji/newliveview/dynamic/base/CustomViewHolder;-><init>(Landroid/view/View;)V
|
|
|
|
return-object p2
|
|
.end method
|
|
|
|
.method public a(J)V
|
|
.locals 1
|
|
|
|
.line 94
|
|
iget-object v0, p0, Lcom/moji/newliveview/dynamic/DynamicCommentCell;->b:Lcom/moji/newliveview/dynamic/DynamicCommentCell$CommentCellCallBack;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 95
|
|
iget-object v0, p0, Lcom/moji/newliveview/dynamic/DynamicCommentCell;->b:Lcom/moji/newliveview/dynamic/DynamicCommentCell$CommentCellCallBack;
|
|
|
|
invoke-interface {v0, p1, p2}, Lcom/moji/newliveview/dynamic/DynamicCommentCell$CommentCellCallBack;->a(J)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Landroid/view/View;Lcom/moji/http/snsforum/ILiveViewComment;)V
|
|
.locals 1
|
|
|
|
.line 80
|
|
iget-object v0, p0, Lcom/moji/newliveview/dynamic/DynamicCommentCell;->b:Lcom/moji/newliveview/dynamic/DynamicCommentCell$CommentCellCallBack;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 81
|
|
iget-object v0, p0, Lcom/moji/newliveview/dynamic/DynamicCommentCell;->b:Lcom/moji/newliveview/dynamic/DynamicCommentCell$CommentCellCallBack;
|
|
|
|
invoke-interface {v0, p1, p2}, Lcom/moji/newliveview/dynamic/DynamicCommentCell$CommentCellCallBack;->a(Landroid/view/View;Lcom/moji/http/snsforum/ILiveViewComment;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Lcom/moji/newliveview/dynamic/base/CustomViewHolder;I)V
|
|
.locals 3
|
|
|
|
.line 44
|
|
invoke-virtual {p1}, Lcom/moji/newliveview/dynamic/base/CustomViewHolder;->z()Landroid/view/View;
|
|
|
|
move-result-object p2
|
|
|
|
check-cast p2, Lcom/moji/mjweather/ipc/view/liveviewcomment/CommentView;
|
|
|
|
.line 45
|
|
iget-object v0, p0, Lcom/moji/newliveview/dynamic/DynamicCommentCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v0, Lcom/moji/http/snsforum/ILiveViewComment;
|
|
|
|
invoke-virtual {p2, v0}, Lcom/moji/mjweather/ipc/view/liveviewcomment/CommentView;->setComment(Lcom/moji/http/snsforum/ILiveViewComment;)V
|
|
|
|
.line 46
|
|
invoke-virtual {p2, p0}, Lcom/moji/mjweather/ipc/view/liveviewcomment/CommentView;->setOnReplyCommentListener(Lcom/moji/mjweather/ipc/view/liveviewcomment/LiveViewReplyCommentView$OnReplyCommentListener;)V
|
|
|
|
.line 47
|
|
iget-boolean p2, p0, Lcom/moji/newliveview/dynamic/DynamicCommentCell;->a:Z
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
.line 48
|
|
invoke-virtual {p1}, Lcom/moji/newliveview/dynamic/base/CustomViewHolder;->z()Landroid/view/View;
|
|
|
|
move-result-object p2
|
|
|
|
sget v0, Lcom/moji/newliveview/R$color;->dynamic_comment_selected:I
|
|
|
|
invoke-static {v0}, Lcom/moji/tool/DeviceTool;->e(I)I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p2, v0}, Landroid/view/View;->setBackgroundColor(I)V
|
|
|
|
.line 49
|
|
invoke-virtual {p1}, Lcom/moji/newliveview/dynamic/base/CustomViewHolder;->z()Landroid/view/View;
|
|
|
|
move-result-object p2
|
|
|
|
new-instance v0, Lcom/moji/newliveview/dynamic/DynamicCommentCell$1;
|
|
|
|
invoke-direct {v0, p0, p1}, Lcom/moji/newliveview/dynamic/DynamicCommentCell$1;-><init>(Lcom/moji/newliveview/dynamic/DynamicCommentCell;Lcom/moji/newliveview/dynamic/base/CustomViewHolder;)V
|
|
|
|
const-wide/16 v1, 0x3e8
|
|
|
|
invoke-virtual {p2, v0, v1, v2}, Landroid/view/View;->postDelayed(Ljava/lang/Runnable;J)Z
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 55
|
|
iput-boolean p1, p0, Lcom/moji/newliveview/dynamic/DynamicCommentCell;->a:Z
|
|
|
|
goto :goto_0
|
|
|
|
.line 57
|
|
:cond_0
|
|
invoke-virtual {p1}, Lcom/moji/newliveview/dynamic/base/CustomViewHolder;->z()Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
sget p2, Lcom/moji/newliveview/R$color;->white:I
|
|
|
|
invoke-static {p2}, Lcom/moji/tool/DeviceTool;->e(I)I
|
|
|
|
move-result p2
|
|
|
|
invoke-virtual {p1, p2}, Landroid/view/View;->setBackgroundColor(I)V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public onClick(Landroid/view/View;)V
|
|
.locals 2
|
|
|
|
.line 64
|
|
invoke-static {}, Lcom/moji/tool/Utils;->b()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 67
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/moji/newliveview/dynamic/DynamicCommentCell;->b:Lcom/moji/newliveview/dynamic/DynamicCommentCell$CommentCellCallBack;
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
return-void
|
|
|
|
.line 70
|
|
:cond_1
|
|
invoke-virtual {p1}, Landroid/view/View;->getId()I
|
|
|
|
move-result v0
|
|
|
|
.line 71
|
|
sget v1, Lcom/moji/newliveview/R$id;->riv_item_face:I
|
|
|
|
if-eq v0, v1, :cond_3
|
|
|
|
sget v1, Lcom/moji/newliveview/R$id;->tv_item_name:I
|
|
|
|
if-ne v0, v1, :cond_2
|
|
|
|
goto :goto_0
|
|
|
|
.line 73
|
|
:cond_2
|
|
sget v1, Lcom/moji/newliveview/R$id;->tv_item_content:I
|
|
|
|
if-ne v0, v1, :cond_4
|
|
|
|
.line 74
|
|
iget-object v0, p0, Lcom/moji/newliveview/dynamic/DynamicCommentCell;->b:Lcom/moji/newliveview/dynamic/DynamicCommentCell$CommentCellCallBack;
|
|
|
|
iget-object v1, p0, Lcom/moji/newliveview/dynamic/DynamicCommentCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v1, Lcom/moji/http/snsforum/ILiveViewComment;
|
|
|
|
invoke-interface {v0, p1, v1}, Lcom/moji/newliveview/dynamic/DynamicCommentCell$CommentCellCallBack;->a(Landroid/view/View;Lcom/moji/http/snsforum/ILiveViewComment;)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 72
|
|
:cond_3
|
|
:goto_0
|
|
iget-object p1, p0, Lcom/moji/newliveview/dynamic/DynamicCommentCell;->b:Lcom/moji/newliveview/dynamic/DynamicCommentCell$CommentCellCallBack;
|
|
|
|
iget-object v0, p0, Lcom/moji/newliveview/dynamic/DynamicCommentCell;->c:Ljava/lang/Object;
|
|
|
|
check-cast v0, Lcom/moji/http/snsforum/entity/DynamicComment;
|
|
|
|
iget-wide v0, v0, Lcom/moji/http/snsforum/entity/DynamicComment;->sns_id:J
|
|
|
|
invoke-interface {p1, v0, v1}, Lcom/moji/newliveview/dynamic/DynamicCommentCell$CommentCellCallBack;->a(J)V
|
|
|
|
:cond_4
|
|
:goto_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public v_()V
|
|
.locals 1
|
|
|
|
.line 87
|
|
iget-object v0, p0, Lcom/moji/newliveview/dynamic/DynamicCommentCell;->b:Lcom/moji/newliveview/dynamic/DynamicCommentCell$CommentCellCallBack;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 88
|
|
iget-object v0, p0, Lcom/moji/newliveview/dynamic/DynamicCommentCell;->b:Lcom/moji/newliveview/dynamic/DynamicCommentCell$CommentCellCallBack;
|
|
|
|
invoke-interface {v0}, Lcom/moji/newliveview/dynamic/DynamicCommentCell$CommentCellCallBack;->a()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|