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

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


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/forum/ui/TopicSquareActivity;->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/TopicSquareActivity;


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

    .line 473
    iput-object p1, p0, Lcom/moji/forum/ui/TopicSquareActivity$5;->a:Lcom/moji/forum/ui/TopicSquareActivity;

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

    return-void
.end method


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

    .line 477
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity$5;->a:Lcom/moji/forum/ui/TopicSquareActivity;

    invoke-static {v0}, Lcom/moji/forum/ui/TopicSquareActivity;->d(Lcom/moji/forum/ui/TopicSquareActivity;)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 482
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity$5;->a:Lcom/moji/forum/ui/TopicSquareActivity;

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

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

    if-ne v0, v1, :cond_0

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

    invoke-static {v0}, Lcom/moji/forum/ui/TopicSquareActivity;->c(Lcom/moji/forum/ui/TopicSquareActivity;)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 483
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity$5;->a:Lcom/moji/forum/ui/TopicSquareActivity;

    invoke-static {v0}, Lcom/moji/forum/ui/TopicSquareActivity;->d(Lcom/moji/forum/ui/TopicSquareActivity;)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 488
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity$5;->a:Lcom/moji/forum/ui/TopicSquareActivity;

    invoke-static {v0}, Lcom/moji/forum/ui/TopicSquareActivity;->j(Lcom/moji/forum/ui/TopicSquareActivity;)Landroid/widget/EditText;

    move-result-object v0

    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 489
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity$5;->a:Lcom/moji/forum/ui/TopicSquareActivity;

    invoke-static {v0}, Lcom/moji/forum/ui/TopicSquareActivity;->k(Lcom/moji/forum/ui/TopicSquareActivity;)Landroid/widget/TextView;

    move-result-object v0

    const/16 v1, 0x8

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

    .line 490
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity$5;->a:Lcom/moji/forum/ui/TopicSquareActivity;

    invoke-static {v0}, Lcom/moji/forum/ui/TopicSquareActivity;->b(Lcom/moji/forum/ui/TopicSquareActivity;)Landroid/widget/TextView;

    move-result-object v0

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

    invoke-static {v1}, Lcom/moji/forum/ui/TopicSquareActivity;->j(Lcom/moji/forum/ui/TopicSquareActivity;)Landroid/widget/EditText;

    move-result-object v1

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

    move-result-object v1

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

    move-result-object v1

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

    goto :goto_0

    .line 492
    :cond_0
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity$5;->a:Lcom/moji/forum/ui/TopicSquareActivity;

    invoke-static {v0}, Lcom/moji/forum/ui/TopicSquareActivity;->k(Lcom/moji/forum/ui/TopicSquareActivity;)Landroid/widget/TextView;

    move-result-object v0

    const/4 v1, 0x0

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

    .line 493
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity$5;->a:Lcom/moji/forum/ui/TopicSquareActivity;

    invoke-static {v0}, Lcom/moji/forum/ui/TopicSquareActivity;->b(Lcom/moji/forum/ui/TopicSquareActivity;)Landroid/widget/TextView;

    move-result-object v0

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

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

    :goto_0
    return-void
.end method
