.class Lcom/moji/forum/ui/VoteTopicActivity$6;
.super Ljava/lang/Object;
.source "VoteTopicActivity.java"

# interfaces
.implements Lcom/moji/forum/view/AutoHeightLayout$OnAutoResizeListener;


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

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.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 584
    iput-object p1, p0, Lcom/moji/forum/ui/VoteTopicActivity$6;->a:Lcom/moji/forum/ui/VoteTopicActivity;

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

    return-void
.end method


# virtual methods
.method public a()V
    .locals 2

    .line 589
    iget-object v0, p0, Lcom/moji/forum/ui/VoteTopicActivity$6;->a:Lcom/moji/forum/ui/VoteTopicActivity;

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

    move-result-object v0

    sget v1, Lcom/moji/forum/R$drawable;->add_emotion_forum:I

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

    return-void
.end method

.method public b()V
    .locals 2

    .line 594
    iget-object v0, p0, Lcom/moji/forum/ui/VoteTopicActivity$6;->a:Lcom/moji/forum/ui/VoteTopicActivity;

    iget v0, v0, Lcom/moji/forum/ui/VoteTopicActivity;->mChildViewPosition:I

    sget v1, Lcom/moji/forum/ui/VoteTopicActivity;->FUNC_CHILD_VIEW_EMOTICON:I

    if-ne v0, v1, :cond_0

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

    invoke-static {v0}, Lcom/moji/forum/ui/VoteTopicActivity;->c(Lcom/moji/forum/ui/VoteTopicActivity;)Lcom/moji/forum/view/AutoHeightLayout;

    move-result-object v0

    invoke-virtual {v0}, Lcom/moji/forum/view/AutoHeightLayout;->a()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 595
    iget-object v0, p0, Lcom/moji/forum/ui/VoteTopicActivity$6;->a:Lcom/moji/forum/ui/VoteTopicActivity;

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

    move-result-object v0

    sget v1, Lcom/moji/forum/R$drawable;->add_words_forum:I

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

    :cond_0
    return-void
.end method

.method public c()V
    .locals 2

    .line 601
    iget-object v0, p0, Lcom/moji/forum/ui/VoteTopicActivity$6;->a:Lcom/moji/forum/ui/VoteTopicActivity;

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lcom/moji/forum/ui/VoteTopicActivity;->a(Lcom/moji/forum/ui/VoteTopicActivity;Z)V

    .line 602
    iget-object v0, p0, Lcom/moji/forum/ui/VoteTopicActivity$6;->a:Lcom/moji/forum/ui/VoteTopicActivity;

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

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

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

    move-result-object v0

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

    move-result-object v0

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 603
    iget-object v0, p0, Lcom/moji/forum/ui/VoteTopicActivity$6;->a:Lcom/moji/forum/ui/VoteTopicActivity;

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

    const/16 v1, 0x8

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

    .line 604
    iget-object v0, p0, Lcom/moji/forum/ui/VoteTopicActivity$6;->a:Lcom/moji/forum/ui/VoteTopicActivity;

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

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

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

    invoke-virtual {v1}, Landroid/widget/EditText;->getEditableText()Landroid/text/Editable;

    move-result-object v1

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

    goto :goto_0

    .line 606
    :cond_0
    iget-object v0, p0, Lcom/moji/forum/ui/VoteTopicActivity$6;->a:Lcom/moji/forum/ui/VoteTopicActivity;

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

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

    .line 607
    iget-object v0, p0, Lcom/moji/forum/ui/VoteTopicActivity$6;->a:Lcom/moji/forum/ui/VoteTopicActivity;

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

    const-string v1, "\u6b64\u523b\u60f3\u6cd5"

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

    :goto_0
    return-void
.end method
