.class Lcom/moji/forum/ui/VoteTopicActivity$TopicHandler;
.super Landroid/os/Handler;
.source "VoteTopicActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/moji/forum/ui/VoteTopicActivity;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x8
    name = "TopicHandler"
.end annotation


# instance fields
.field private a:Ljava/lang/ref/WeakReference;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/lang/ref/WeakReference<",
            "Lcom/moji/forum/ui/VoteTopicActivity;",
            ">;"
        }
    .end annotation
.end field


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

    .line 296
    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    .line 297
    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/moji/forum/ui/VoteTopicActivity$TopicHandler;->a:Ljava/lang/ref/WeakReference;

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 1

    .line 302
    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    .line 303
    iget-object v0, p0, Lcom/moji/forum/ui/VoteTopicActivity$TopicHandler;->a:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    if-eqz v0, :cond_1

    .line 304
    iget p1, p1, Landroid/os/Message;->what:I

    const/16 v0, 0x64

    if-eq p1, v0, :cond_0

    goto :goto_0

    .line 306
    :cond_0
    iget-object p1, p0, Lcom/moji/forum/ui/VoteTopicActivity$TopicHandler;->a:Ljava/lang/ref/WeakReference;

    invoke-virtual {p1}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/moji/forum/ui/VoteTopicActivity;

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

    if-eqz p1, :cond_1

    .line 307
    iget-object p1, p0, Lcom/moji/forum/ui/VoteTopicActivity$TopicHandler;->a:Ljava/lang/ref/WeakReference;

    invoke-virtual {p1}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/moji/forum/ui/VoteTopicActivity;

    const/4 v0, 0x1

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

    :cond_1
    :goto_0
    return-void
.end method
