.class Lcom/moji/forum/ui/ForumPictureActivity$3;
.super Lcom/moji/requestcore/MJHttpCallback;
.source "ForumPictureActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/forum/ui/ForumPictureActivity;->b()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/moji/requestcore/MJHttpCallback<",
        "Lcom/moji/http/mqn/entity/ImageList;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic a:Lcom/moji/forum/ui/ForumPictureActivity;


# direct methods
.method constructor <init>(Lcom/moji/forum/ui/ForumPictureActivity;)V
    .locals 0

    .line 159
    iput-object p1, p0, Lcom/moji/forum/ui/ForumPictureActivity$3;->a:Lcom/moji/forum/ui/ForumPictureActivity;

    invoke-direct {p0}, Lcom/moji/requestcore/MJHttpCallback;-><init>()V

    return-void
.end method


# virtual methods
.method public a(Lcom/moji/http/mqn/entity/ImageList;)V
    .locals 3

    .line 162
    iget-object v0, p0, Lcom/moji/forum/ui/ForumPictureActivity$3;->a:Lcom/moji/forum/ui/ForumPictureActivity;

    invoke-static {v0}, Lcom/moji/forum/ui/ForumPictureActivity;->d(Lcom/moji/forum/ui/ForumPictureActivity;)Landroid/widget/FrameLayout;

    move-result-object v0

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->setVisibility(I)V

    .line 163
    iget-object v0, p0, Lcom/moji/forum/ui/ForumPictureActivity$3;->a:Lcom/moji/forum/ui/ForumPictureActivity;

    invoke-static {v0, p1}, Lcom/moji/forum/ui/ForumPictureActivity;->a(Lcom/moji/forum/ui/ForumPictureActivity;Lcom/moji/http/mqn/entity/ImageList;)Lcom/moji/http/mqn/entity/ImageList;

    .line 164
    iget-object p1, p0, Lcom/moji/forum/ui/ForumPictureActivity$3;->a:Lcom/moji/forum/ui/ForumPictureActivity;

    invoke-static {p1}, Lcom/moji/forum/ui/ForumPictureActivity;->a(Lcom/moji/forum/ui/ForumPictureActivity;)Lcom/moji/http/mqn/entity/ImageList;

    move-result-object p1

    if-eqz p1, :cond_0

    .line 165
    iget-object p1, p0, Lcom/moji/forum/ui/ForumPictureActivity$3;->a:Lcom/moji/forum/ui/ForumPictureActivity;

    invoke-static {p1}, Lcom/moji/forum/ui/ForumPictureActivity;->e(Lcom/moji/forum/ui/ForumPictureActivity;)Lcom/moji/forum/ui/ForumPictureActivity$ImageAdapter;

    move-result-object p1

    invoke-virtual {p1}, Lcom/moji/forum/ui/ForumPictureActivity$ImageAdapter;->notifyDataSetChanged()V

    .line 166
    iget-object p1, p0, Lcom/moji/forum/ui/ForumPictureActivity$3;->a:Lcom/moji/forum/ui/ForumPictureActivity;

    invoke-static {p1}, Lcom/moji/forum/ui/ForumPictureActivity;->a(Lcom/moji/forum/ui/ForumPictureActivity;)Lcom/moji/http/mqn/entity/ImageList;

    move-result-object p1

    iget-object v0, p0, Lcom/moji/forum/ui/ForumPictureActivity$3;->a:Lcom/moji/forum/ui/ForumPictureActivity;

    invoke-static {v0}, Lcom/moji/forum/ui/ForumPictureActivity;->a(Lcom/moji/forum/ui/ForumPictureActivity;)Lcom/moji/http/mqn/entity/ImageList;

    move-result-object v0

    iget v0, v0, Lcom/moji/http/mqn/entity/ImageList;->seat:I

    const/4 v1, 0x1

    sub-int/2addr v0, v1

    iput v0, p1, Lcom/moji/http/mqn/entity/ImageList;->seat:I

    .line 167
    iget-object p1, p0, Lcom/moji/forum/ui/ForumPictureActivity$3;->a:Lcom/moji/forum/ui/ForumPictureActivity;

    invoke-static {p1}, Lcom/moji/forum/ui/ForumPictureActivity;->b(Lcom/moji/forum/ui/ForumPictureActivity;)Landroid/support/v4/view/ViewPager;

    move-result-object p1

    iget-object v0, p0, Lcom/moji/forum/ui/ForumPictureActivity$3;->a:Lcom/moji/forum/ui/ForumPictureActivity;

    .line 168
    invoke-static {v0}, Lcom/moji/forum/ui/ForumPictureActivity;->a(Lcom/moji/forum/ui/ForumPictureActivity;)Lcom/moji/http/mqn/entity/ImageList;

    move-result-object v0

    iget v0, v0, Lcom/moji/http/mqn/entity/ImageList;->seat:I

    const/4 v2, 0x0

    .line 167
    invoke-virtual {p1, v0, v2}, Landroid/support/v4/view/ViewPager;->setCurrentItem(IZ)V

    .line 169
    iget-object p1, p0, Lcom/moji/forum/ui/ForumPictureActivity$3;->a:Lcom/moji/forum/ui/ForumPictureActivity;

    invoke-static {p1}, Lcom/moji/forum/ui/ForumPictureActivity;->a(Lcom/moji/forum/ui/ForumPictureActivity;)Lcom/moji/http/mqn/entity/ImageList;

    move-result-object p1

    iget-object p1, p1, Lcom/moji/http/mqn/entity/ImageList;->image_list:Ljava/util/ArrayList;

    invoke-virtual {p1}, Ljava/util/ArrayList;->size()I

    move-result p1

    if-le p1, v1, :cond_0

    .line 170
    iget-object p1, p0, Lcom/moji/forum/ui/ForumPictureActivity$3;->a:Lcom/moji/forum/ui/ForumPictureActivity;

    invoke-static {p1}, Lcom/moji/forum/ui/ForumPictureActivity;->f(Lcom/moji/forum/ui/ForumPictureActivity;)Landroid/widget/TextView;

    move-result-object p1

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v2, p0, Lcom/moji/forum/ui/ForumPictureActivity$3;->a:Lcom/moji/forum/ui/ForumPictureActivity;

    .line 171
    invoke-static {v2}, Lcom/moji/forum/ui/ForumPictureActivity;->a(Lcom/moji/forum/ui/ForumPictureActivity;)Lcom/moji/http/mqn/entity/ImageList;

    move-result-object v2

    iget v2, v2, Lcom/moji/http/mqn/entity/ImageList;->seat:I

    add-int/2addr v2, v1

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v1, "/"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v1, p0, Lcom/moji/forum/ui/ForumPictureActivity$3;->a:Lcom/moji/forum/ui/ForumPictureActivity;

    .line 173
    invoke-static {v1}, Lcom/moji/forum/ui/ForumPictureActivity;->a(Lcom/moji/forum/ui/ForumPictureActivity;)Lcom/moji/http/mqn/entity/ImageList;

    move-result-object v1

    iget-object v1, v1, Lcom/moji/http/mqn/entity/ImageList;->image_list:Ljava/util/ArrayList;

    .line 174
    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 171
    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :cond_0
    return-void
.end method

.method protected onFailed(Lcom/moji/requestcore/MJException;)V
    .locals 1

    .line 181
    iget-object p1, p0, Lcom/moji/forum/ui/ForumPictureActivity$3;->a:Lcom/moji/forum/ui/ForumPictureActivity;

    invoke-static {p1}, Lcom/moji/forum/ui/ForumPictureActivity;->d(Lcom/moji/forum/ui/ForumPictureActivity;)Landroid/widget/FrameLayout;

    move-result-object p1

    const/16 v0, 0x8

    invoke-virtual {p1, v0}, Landroid/widget/FrameLayout;->setVisibility(I)V

    .line 182
    iget-object p1, p0, Lcom/moji/forum/ui/ForumPictureActivity$3;->a:Lcom/moji/forum/ui/ForumPictureActivity;

    invoke-virtual {p1}, Lcom/moji/forum/ui/ForumPictureActivity;->finish()V

    return-void
.end method

.method public synthetic onSuccess(Ljava/lang/Object;)V
    .locals 0

    .line 159
    check-cast p1, Lcom/moji/http/mqn/entity/ImageList;

    invoke-virtual {p0, p1}, Lcom/moji/forum/ui/ForumPictureActivity$3;->a(Lcom/moji/http/mqn/entity/ImageList;)V

    return-void
.end method
