.class Lcom/viatech/community/PhotoDetailActivity$7; .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;->f()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 (Lcom/viatech/community/PhotoDetailActivity;)V .locals 0 .prologue .line 518 iput-object p1, p0, Lcom/viatech/community/PhotoDetailActivity$7;->a:Lcom/viatech/community/PhotoDetailActivity; invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method # virtual methods .method public onCommunityHttpCallback(IILjava/util/List;)V .locals 6 .prologue const/4 v1, 0x0 .line 521 iget-object v0, p0, Lcom/viatech/community/PhotoDetailActivity$7;->a:Lcom/viatech/community/PhotoDetailActivity; invoke-static {v0, v1}, Lcom/viatech/community/PhotoDetailActivity;->b(Lcom/viatech/community/PhotoDetailActivity;Z)Z .line 522 if-nez p1, :cond_2 .line 523 iget-object v0, p0, Lcom/viatech/community/PhotoDetailActivity$7;->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;->up:J const-wide/16 v4, 0x1 sub-long/2addr v2, v4 iput-wide v2, v0, Lcom/via/vpaicloud/community/respond/Post;->up:J move v0, v1 .line 524 :goto_0 iget-object v2, p0, Lcom/viatech/community/PhotoDetailActivity$7;->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 iget-object v2, v2, Lcom/via/vpaicloud/community/respond/Post;->likes:[Lcom/via/vpaicloud/community/respond/Likes; array-length v2, v2 if-ge v0, v2, :cond_1 .line 525 iget-object v2, p0, Lcom/viatech/community/PhotoDetailActivity$7;->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 iget-object v2, v2, Lcom/via/vpaicloud/community/respond/Post;->likes:[Lcom/via/vpaicloud/community/respond/Likes; aget-object v2, v2, v0 iget-wide v2, v2, Lcom/via/vpaicloud/community/respond/Likes;->userid:J iget-object v4, p0, Lcom/viatech/community/PhotoDetailActivity$7;->a:Lcom/viatech/community/PhotoDetailActivity; invoke-static {v4}, Lcom/viatech/community/b/a;->a(Landroid/content/Context;)Lcom/viatech/community/b/a; move-result-object v4 iget-wide v4, v4, Lcom/viatech/community/b/a;->e:J cmp-long v2, v2, v4 if-nez v2, :cond_0 .line 526 iget-object v2, p0, Lcom/viatech/community/PhotoDetailActivity$7;->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 iget-object v2, v2, Lcom/via/vpaicloud/community/respond/Post;->likes:[Lcom/via/vpaicloud/community/respond/Likes; aget-object v2, v2, v0 const-wide/16 v4, 0x0 iput-wide v4, v2, Lcom/via/vpaicloud/community/respond/Likes;->userid:J .line 524 :cond_0 add-int/lit8 v0, v0, 0x1 goto :goto_0 .line 529 :cond_1 iget-object v0, p0, Lcom/viatech/community/PhotoDetailActivity$7;->a:Lcom/viatech/community/PhotoDetailActivity; invoke-static {v0}, Lcom/viatech/community/PhotoDetailActivity;->q(Lcom/viatech/community/PhotoDetailActivity;)Landroid/widget/TextView; move-result-object v0 iget-object v2, p0, Lcom/viatech/community/PhotoDetailActivity$7;->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 iget-wide v2, v2, Lcom/via/vpaicloud/community/respond/Post;->up:J invoke-static {v2, v3}, Ljava/lang/String;->valueOf(J)Ljava/lang/String; move-result-object v2 invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V .line 530 invoke-static {}, Lorg/greenrobot/eventbus/c;->a()Lorg/greenrobot/eventbus/c; move-result-object v0 new-instance v2, Lcom/viatech/community/a/d; iget-object v3, p0, Lcom/viatech/community/PhotoDetailActivity$7;->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 sget-object v3, Lcom/viatech/community/a/d$a;->c:Lcom/viatech/community/a/d$a; invoke-direct {v2, v1, v4, v5, v3}, Lcom/viatech/community/a/d;->(ZJLcom/viatech/community/a/d$a;)V invoke-virtual {v0, v2}, Lorg/greenrobot/eventbus/c;->c(Ljava/lang/Object;)V .line 538 :goto_1 return-void .line 531 :cond_2 const/16 v0, 0x1f9 if-ne p1, v0, :cond_3 .line 532 const v0, 0x7f0701d5 invoke-static {v0}, Lcom/viatech/VPaiApplication;->b(I)V .line 533 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$7;->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;->(Lcom/via/vpaicloud/community/respond/Post;)V invoke-virtual {v0, v1}, Lorg/greenrobot/eventbus/c;->c(Ljava/lang/Object;)V .line 534 iget-object v0, p0, Lcom/viatech/community/PhotoDetailActivity$7;->a:Lcom/viatech/community/PhotoDetailActivity; invoke-virtual {v0}, Lcom/viatech/community/PhotoDetailActivity;->finish()V goto :goto_1 .line 536 :cond_3 const v0, 0x7f0701da invoke-static {v0}, Lcom/viatech/VPaiApplication;->b(I)V goto :goto_1 .end method