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

# interfaces
.implements Landroid/text/TextWatcher;


# 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 558
    iput-object p1, p0, Lcom/moji/forum/ui/VoteTopicActivity$5;->a:Lcom/moji/forum/ui/VoteTopicActivity;

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

    return-void
.end method


# virtual methods
.method public afterTextChanged(Landroid/text/Editable;)V
    .locals 0

    return-void
.end method

.method public beforeTextChanged(Ljava/lang/CharSequence;III)V
    .locals 0

    return-void
.end method

.method public onTextChanged(Ljava/lang/CharSequence;III)V
    .locals 0

    const/4 p2, 0x3

    if-le p3, p2, :cond_0

    if-nez p4, :cond_0

    .line 567
    invoke-interface {p1}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object p3

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

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

    move-result-object p4

    invoke-static {p3, p4}, Lcom/moji/forum/common/ForumUtil;->c(Ljava/lang/String;Ljava/util/List;)V

    .line 569
    :cond_0
    invoke-interface {p1}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object p1

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

    move-result-object p1

    const-string p3, " "

    const-string p4, ""

    invoke-virtual {p1, p3, p4}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object p1

    invoke-static {p1}, Lcom/moji/tool/TextUtil;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    invoke-static {p1, p2}, Lcom/moji/tool/TextUtil;->b(Ljava/lang/String;I)Z

    move-result p1

    const/4 p2, 0x0

    const/16 p3, 0x8

    if-eqz p1, :cond_1

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

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

    move-result-object p1

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

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

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

    move-result-object p1

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

    goto :goto_0

    .line 573
    :cond_1
    iget-object p1, p0, Lcom/moji/forum/ui/VoteTopicActivity$5;->a:Lcom/moji/forum/ui/VoteTopicActivity;

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

    move-result-object p1

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

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

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

    move-result-object p1

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

    :goto_0
    return-void
.end method
