.class Lcom/moji/forum/ui/VoteTopicActivity$16;
.super Lcom/moji/requestcore/MJHttpCallback;
.source "VoteTopicActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/forum/ui/VoteTopicActivity;->a(JLjava/lang/String;Ljava/lang/String;)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/TopicNewComment;",
        ">;"
    }
.end annotation


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


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

    .line 1531
    iput-object p1, p0, Lcom/moji/forum/ui/VoteTopicActivity$16;->a:Lcom/moji/forum/ui/VoteTopicActivity;

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

    return-void
.end method


# virtual methods
.method protected a(Lcom/moji/http/mqn/entity/TopicNewComment;)V
    .locals 2

    .line 1534
    iget-object p1, p0, Lcom/moji/forum/ui/VoteTopicActivity$16;->a:Lcom/moji/forum/ui/VoteTopicActivity;

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

    .line 1535
    iget-object p1, p0, Lcom/moji/forum/ui/VoteTopicActivity$16;->a:Lcom/moji/forum/ui/VoteTopicActivity;

    invoke-static {p1}, Lcom/moji/forum/ui/VoteTopicActivity;->v(Lcom/moji/forum/ui/VoteTopicActivity;)Ljava/util/ArrayList;

    move-result-object p1

    invoke-virtual {p1}, Ljava/util/ArrayList;->clear()V

    .line 1536
    iget-object p1, p0, Lcom/moji/forum/ui/VoteTopicActivity$16;->a:Lcom/moji/forum/ui/VoteTopicActivity;

    invoke-static {p1}, Lcom/moji/forum/ui/VoteTopicActivity;->v(Lcom/moji/forum/ui/VoteTopicActivity;)Ljava/util/ArrayList;

    move-result-object p1

    new-instance v0, Lcom/moji/http/ugc/bean/ImageInfo;

    const/4 v1, 0x1

    invoke-direct {v0, v1}, Lcom/moji/http/ugc/bean/ImageInfo;-><init>(I)V

    invoke-virtual {p1, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 1537
    iget-object p1, p0, Lcom/moji/forum/ui/VoteTopicActivity$16;->a:Lcom/moji/forum/ui/VoteTopicActivity;

    invoke-static {p1}, Lcom/moji/forum/ui/VoteTopicActivity;->q(Lcom/moji/forum/ui/VoteTopicActivity;)V

    .line 1538
    iget-object p1, p0, Lcom/moji/forum/ui/VoteTopicActivity$16;->a:Lcom/moji/forum/ui/VoteTopicActivity;

    iget-object p1, p1, Lcom/moji/forum/ui/VoteTopicActivity;->mEditContent0:Landroid/widget/TextView;

    sget v0, Lcom/moji/forum/R$string;->topic_thinking:I

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

    .line 1539
    iget-object p1, p0, Lcom/moji/forum/ui/VoteTopicActivity$16;->a:Lcom/moji/forum/ui/VoteTopicActivity;

    iget-object p1, p1, Lcom/moji/forum/ui/VoteTopicActivity;->mEditContent1:Landroid/widget/EditText;

    const-string v0, ""

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

    .line 1540
    iget-object p1, p0, Lcom/moji/forum/ui/VoteTopicActivity$16;->a:Lcom/moji/forum/ui/VoteTopicActivity;

    invoke-static {p1}, Lcom/moji/forum/ui/VoteTopicActivity;->m(Lcom/moji/forum/ui/VoteTopicActivity;)Ljava/util/ArrayList;

    move-result-object p1

    if-eqz p1, :cond_0

    iget-object p1, p0, Lcom/moji/forum/ui/VoteTopicActivity$16;->a:Lcom/moji/forum/ui/VoteTopicActivity;

    invoke-static {p1}, Lcom/moji/forum/ui/VoteTopicActivity;->m(Lcom/moji/forum/ui/VoteTopicActivity;)Ljava/util/ArrayList;

    move-result-object p1

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

    move-result p1

    if-lez p1, :cond_0

    .line 1541
    iget-object p1, p0, Lcom/moji/forum/ui/VoteTopicActivity$16;->a:Lcom/moji/forum/ui/VoteTopicActivity;

    invoke-static {p1}, Lcom/moji/forum/ui/VoteTopicActivity;->m(Lcom/moji/forum/ui/VoteTopicActivity;)Ljava/util/ArrayList;

    move-result-object p1

    invoke-static {p1}, Lcom/moji/forum/common/ForumUtil;->a(Ljava/util/List;)V

    .line 1543
    :cond_0
    iget-object p1, p0, Lcom/moji/forum/ui/VoteTopicActivity$16;->a:Lcom/moji/forum/ui/VoteTopicActivity;

    invoke-static {p1}, Lcom/moji/forum/ui/VoteTopicActivity;->j(Lcom/moji/forum/ui/VoteTopicActivity;)Landroid/widget/RelativeLayout;

    move-result-object p1

    const/16 v0, 0x8

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

    .line 1545
    iget-object p1, p0, Lcom/moji/forum/ui/VoteTopicActivity$16;->a:Lcom/moji/forum/ui/VoteTopicActivity;

    invoke-static {p1}, Lcom/moji/forum/ui/VoteTopicActivity;->w(Lcom/moji/forum/ui/VoteTopicActivity;)Lcom/moji/forum/ui/ImageAdapter;

    move-result-object p1

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

    .line 1546
    iget-object p1, p0, Lcom/moji/forum/ui/VoteTopicActivity$16;->a:Lcom/moji/forum/ui/VoteTopicActivity;

    sget v0, Lcom/moji/forum/R$string;->comment_success:I

    invoke-static {p1, v0, v1}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object p1

    invoke-virtual {p1}, Landroid/widget/Toast;->show()V

    return-void
.end method

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

    .line 1551
    iget-object p1, p0, Lcom/moji/forum/ui/VoteTopicActivity$16;->a:Lcom/moji/forum/ui/VoteTopicActivity;

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

    return-void
.end method

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

    .line 1531
    check-cast p1, Lcom/moji/http/mqn/entity/TopicNewComment;

    invoke-virtual {p0, p1}, Lcom/moji/forum/ui/VoteTopicActivity$16;->a(Lcom/moji/http/mqn/entity/TopicNewComment;)V

    return-void
.end method
