今奥全景相机
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.

256 lines
8.4 KiB

.class Lcom/viatech/community/PhotoDetailActivity$16$1;
.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$16;->onClick(Landroid/content/DialogInterface;I)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic a:Lcom/viatech/community/PhotoDetailActivity$16;
# direct methods
.method constructor <init>(Lcom/viatech/community/PhotoDetailActivity$16;)V
.locals 0
.prologue
.line 252
iput-object p1, p0, Lcom/viatech/community/PhotoDetailActivity$16$1;->a:Lcom/viatech/community/PhotoDetailActivity$16;
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 255
if-nez p1, :cond_2
.line 256
iget-object v0, p0, Lcom/viatech/community/PhotoDetailActivity$16$1;->a:Lcom/viatech/community/PhotoDetailActivity$16;
iget-object v0, v0, Lcom/viatech/community/PhotoDetailActivity$16;->b:Lcom/viatech/community/PhotoDetailActivity;
invoke-static {v0}, Lcom/viatech/community/PhotoDetailActivity;->g(Lcom/viatech/community/PhotoDetailActivity;)Ljava/util/List;
move-result-object v0
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v1
:cond_0
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_1
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/via/vpaicloud/community/respond/CommentRsp;
.line 257
iget-object v2, p0, Lcom/viatech/community/PhotoDetailActivity$16$1;->a:Lcom/viatech/community/PhotoDetailActivity$16;
iget-object v2, v2, Lcom/viatech/community/PhotoDetailActivity$16;->b:Lcom/viatech/community/PhotoDetailActivity;
invoke-static {v2}, Lcom/viatech/community/PhotoDetailActivity;->f(Lcom/viatech/community/PhotoDetailActivity;)Lcom/via/vpaicloud/community/respond/CommentRsp;
move-result-object v2
iget-wide v2, v2, Lcom/via/vpaicloud/community/respond/CommentRsp;->commentid:J
iget-wide v4, v0, Lcom/via/vpaicloud/community/respond/CommentRsp;->commentid:J
cmp-long v2, v2, v4
if-nez v2, :cond_0
.line 258
iget-object v1, p0, Lcom/viatech/community/PhotoDetailActivity$16$1;->a:Lcom/viatech/community/PhotoDetailActivity$16;
iget-object v1, v1, Lcom/viatech/community/PhotoDetailActivity$16;->b:Lcom/viatech/community/PhotoDetailActivity;
invoke-static {v1}, Lcom/viatech/community/PhotoDetailActivity;->g(Lcom/viatech/community/PhotoDetailActivity;)Ljava/util/List;
move-result-object v1
invoke-interface {v1, v0}, Ljava/util/List;->remove(Ljava/lang/Object;)Z
.line 262
:cond_1
iget-object v0, p0, Lcom/viatech/community/PhotoDetailActivity$16$1;->a:Lcom/viatech/community/PhotoDetailActivity$16;
iget-object v0, v0, Lcom/viatech/community/PhotoDetailActivity$16;->b: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
sub-long/2addr v2, v4
iput-wide v2, v0, Lcom/via/vpaicloud/community/respond/Post;->comments:J
.line 263
iget-object v0, p0, Lcom/viatech/community/PhotoDetailActivity$16$1;->a:Lcom/viatech/community/PhotoDetailActivity$16;
iget-object v0, v0, Lcom/viatech/community/PhotoDetailActivity$16;->b: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$16$1;->a:Lcom/viatech/community/PhotoDetailActivity$16;
iget-object v1, v1, Lcom/viatech/community/PhotoDetailActivity$16;->b: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 264
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, 0x0
iget-object v3, p0, Lcom/viatech/community/PhotoDetailActivity$16$1;->a:Lcom/viatech/community/PhotoDetailActivity$16;
iget-object v3, v3, Lcom/viatech/community/PhotoDetailActivity$16;->b: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 265
iget-object v0, p0, Lcom/viatech/community/PhotoDetailActivity$16$1;->a:Lcom/viatech/community/PhotoDetailActivity$16;
iget-object v0, v0, Lcom/viatech/community/PhotoDetailActivity$16;->b: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 266
iget-object v0, p0, Lcom/viatech/community/PhotoDetailActivity$16$1;->a:Lcom/viatech/community/PhotoDetailActivity$16;
iget-object v0, v0, Lcom/viatech/community/PhotoDetailActivity$16;->b:Lcom/viatech/community/PhotoDetailActivity;
invoke-static {v0}, Lcom/viatech/community/PhotoDetailActivity;->j(Lcom/viatech/community/PhotoDetailActivity;)Lcom/viatech/community/listener/EndlessRecyclerOnScrollListener;
move-result-object v0
invoke-virtual {v0}, Lcom/viatech/community/listener/EndlessRecyclerOnScrollListener;->a()V
.line 267
const v0, 0x7f070148
invoke-static {v0}, Lcom/viatech/VPaiApplication;->b(I)V
.line 279
:goto_0
return-void
.line 268
:cond_2
const/16 v0, 0x1f9
if-ne p1, v0, :cond_3
.line 269
const v0, 0x7f0701d5
invoke-static {v0}, Lcom/viatech/VPaiApplication;->b(I)V
.line 270
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$16$1;->a:Lcom/viatech/community/PhotoDetailActivity$16;
iget-object v2, v2, Lcom/viatech/community/PhotoDetailActivity$16;->b: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 271
iget-object v0, p0, Lcom/viatech/community/PhotoDetailActivity$16$1;->a:Lcom/viatech/community/PhotoDetailActivity$16;
iget-object v0, v0, Lcom/viatech/community/PhotoDetailActivity$16;->b:Lcom/viatech/community/PhotoDetailActivity;
invoke-virtual {v0}, Lcom/viatech/community/PhotoDetailActivity;->finish()V
goto :goto_0
.line 273
:cond_3
const/4 v0, -0x1
if-ne p1, v0, :cond_4
.line 274
const v0, 0x7f070068
invoke-static {v0}, Lcom/viatech/VPaiApplication;->b(I)V
goto :goto_0
.line 276
:cond_4
const v0, 0x7f070147
invoke-static {v0}, Lcom/viatech/VPaiApplication;->b(I)V
goto :goto_0
.end method