You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
186 lines
5.9 KiB
186 lines
5.9 KiB
.class Lcom/viatech/community/PhotoDetailActivity$10; |
|
.super Ljava/lang/Object; |
|
.source "PhotoDetailActivity.java" |
|
|
|
# interfaces |
|
.implements Lcom/via/vpaicloud/community/callback/CommunityHttpCallback; |
|
|
|
|
|
# annotations |
|
.annotation system Ldalvik/annotation/EnclosingMethod; |
|
value = Lcom/viatech/community/PhotoDetailActivity;->onClick(Landroid/view/View;)V |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/InnerClass; |
|
accessFlags = 0x0 |
|
name = null |
|
.end annotation |
|
|
|
|
|
# instance fields |
|
.field final synthetic a:Lcom/viatech/community/PhotoDetailActivity; |
|
|
|
|
|
# direct methods |
|
.method constructor <init>(Lcom/viatech/community/PhotoDetailActivity;)V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 686 |
|
iput-object p1, p0, Lcom/viatech/community/PhotoDetailActivity$10;->a:Lcom/viatech/community/PhotoDetailActivity; |
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V |
|
|
|
return-void |
|
.end method |
|
|
|
|
|
# virtual methods |
|
.method public onCommunityHttpCallback(IILjava/util/List;)V |
|
.locals 6 |
|
|
|
.prologue |
|
.line 689 |
|
if-nez p1, :cond_0 |
|
|
|
.line 690 |
|
iget-object v0, p0, Lcom/viatech/community/PhotoDetailActivity$10;->a:Lcom/viatech/community/PhotoDetailActivity; |
|
|
|
invoke-static {v0}, Lcom/viatech/community/PhotoDetailActivity;->s(Lcom/viatech/community/PhotoDetailActivity;)Lcom/via/vpaicloud/community/respond/CommentRsp; |
|
|
|
move-result-object v0 |
|
|
|
int-to-long v2, p2 |
|
|
|
iput-wide v2, v0, Lcom/via/vpaicloud/community/respond/CommentRsp;->commentid:J |
|
|
|
.line 691 |
|
iget-object v0, p0, Lcom/viatech/community/PhotoDetailActivity$10;->a:Lcom/viatech/community/PhotoDetailActivity; |
|
|
|
invoke-static {v0}, Lcom/viatech/community/PhotoDetailActivity;->g(Lcom/viatech/community/PhotoDetailActivity;)Ljava/util/List; |
|
|
|
move-result-object v0 |
|
|
|
const/4 v1, 0x0 |
|
|
|
iget-object v2, p0, Lcom/viatech/community/PhotoDetailActivity$10;->a:Lcom/viatech/community/PhotoDetailActivity; |
|
|
|
invoke-static {v2}, Lcom/viatech/community/PhotoDetailActivity;->s(Lcom/viatech/community/PhotoDetailActivity;)Lcom/via/vpaicloud/community/respond/CommentRsp; |
|
|
|
move-result-object v2 |
|
|
|
invoke-interface {v0, v1, v2}, Ljava/util/List;->add(ILjava/lang/Object;)V |
|
|
|
.line 692 |
|
iget-object v0, p0, Lcom/viatech/community/PhotoDetailActivity$10;->a:Lcom/viatech/community/PhotoDetailActivity; |
|
|
|
invoke-static {v0}, Lcom/viatech/community/PhotoDetailActivity;->e(Lcom/viatech/community/PhotoDetailActivity;)Lcom/via/vpaicloud/community/respond/Post; |
|
|
|
move-result-object v0 |
|
|
|
iget-wide v2, v0, Lcom/via/vpaicloud/community/respond/Post;->comments:J |
|
|
|
const-wide/16 v4, 0x1 |
|
|
|
add-long/2addr v2, v4 |
|
|
|
iput-wide v2, v0, Lcom/via/vpaicloud/community/respond/Post;->comments:J |
|
|
|
.line 693 |
|
iget-object v0, p0, Lcom/viatech/community/PhotoDetailActivity$10;->a:Lcom/viatech/community/PhotoDetailActivity; |
|
|
|
invoke-static {v0}, Lcom/viatech/community/PhotoDetailActivity;->h(Lcom/viatech/community/PhotoDetailActivity;)Landroid/widget/TextView; |
|
|
|
move-result-object v0 |
|
|
|
iget-object v1, p0, Lcom/viatech/community/PhotoDetailActivity$10;->a:Lcom/viatech/community/PhotoDetailActivity; |
|
|
|
invoke-static {v1}, Lcom/viatech/community/PhotoDetailActivity;->e(Lcom/viatech/community/PhotoDetailActivity;)Lcom/via/vpaicloud/community/respond/Post; |
|
|
|
move-result-object v1 |
|
|
|
iget-wide v2, v1, Lcom/via/vpaicloud/community/respond/Post;->comments:J |
|
|
|
invoke-static {v2, v3}, Ljava/lang/String;->valueOf(J)Ljava/lang/String; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V |
|
|
|
.line 694 |
|
invoke-static {}, Lorg/greenrobot/eventbus/c;->a()Lorg/greenrobot/eventbus/c; |
|
|
|
move-result-object v0 |
|
|
|
new-instance v1, Lcom/viatech/community/a/a; |
|
|
|
const/4 v2, 0x1 |
|
|
|
iget-object v3, p0, Lcom/viatech/community/PhotoDetailActivity$10;->a:Lcom/viatech/community/PhotoDetailActivity; |
|
|
|
invoke-static {v3}, Lcom/viatech/community/PhotoDetailActivity;->e(Lcom/viatech/community/PhotoDetailActivity;)Lcom/via/vpaicloud/community/respond/Post; |
|
|
|
move-result-object v3 |
|
|
|
iget-wide v4, v3, Lcom/via/vpaicloud/community/respond/Post;->postid:J |
|
|
|
invoke-direct {v1, v2, v4, v5}, Lcom/viatech/community/a/a;-><init>(ZJ)V |
|
|
|
invoke-virtual {v0, v1}, Lorg/greenrobot/eventbus/c;->c(Ljava/lang/Object;)V |
|
|
|
.line 695 |
|
iget-object v0, p0, Lcom/viatech/community/PhotoDetailActivity$10;->a:Lcom/viatech/community/PhotoDetailActivity; |
|
|
|
invoke-static {v0}, Lcom/viatech/community/PhotoDetailActivity;->i(Lcom/viatech/community/PhotoDetailActivity;)Lcom/viatech/community/adapter/DetailAdapter; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0}, Lcom/viatech/community/adapter/DetailAdapter;->notifyDataSetChanged()V |
|
|
|
.line 703 |
|
:goto_0 |
|
return-void |
|
|
|
.line 696 |
|
:cond_0 |
|
const/16 v0, 0x1f9 |
|
|
|
if-ne p1, v0, :cond_1 |
|
|
|
.line 697 |
|
const v0, 0x7f0701d5 |
|
|
|
invoke-static {v0}, Lcom/viatech/VPaiApplication;->b(I)V |
|
|
|
.line 698 |
|
invoke-static {}, Lorg/greenrobot/eventbus/c;->a()Lorg/greenrobot/eventbus/c; |
|
|
|
move-result-object v0 |
|
|
|
new-instance v1, Lcom/viatech/community/a/c; |
|
|
|
iget-object v2, p0, Lcom/viatech/community/PhotoDetailActivity$10;->a:Lcom/viatech/community/PhotoDetailActivity; |
|
|
|
invoke-static {v2}, Lcom/viatech/community/PhotoDetailActivity;->e(Lcom/viatech/community/PhotoDetailActivity;)Lcom/via/vpaicloud/community/respond/Post; |
|
|
|
move-result-object v2 |
|
|
|
invoke-direct {v1, v2}, Lcom/viatech/community/a/c;-><init>(Lcom/via/vpaicloud/community/respond/Post;)V |
|
|
|
invoke-virtual {v0, v1}, Lorg/greenrobot/eventbus/c;->c(Ljava/lang/Object;)V |
|
|
|
.line 699 |
|
iget-object v0, p0, Lcom/viatech/community/PhotoDetailActivity$10;->a:Lcom/viatech/community/PhotoDetailActivity; |
|
|
|
invoke-virtual {v0}, Lcom/viatech/community/PhotoDetailActivity;->finish()V |
|
|
|
goto :goto_0 |
|
|
|
.line 701 |
|
:cond_1 |
|
const v0, 0x7f0701d4 |
|
|
|
invoke-static {v0}, Lcom/viatech/VPaiApplication;->b(I)V |
|
|
|
goto :goto_0 |
|
.end method
|
|
|