MyAlertController$ButtonHandler.smali

.class final Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController$ButtonHandler;
.super Landroid/os/Handler;
.source "MyAlertController.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x1a
    name = "ButtonHandler"
.end annotation


# static fields
.field private static final MSG_DISMISS_DIALOG:I = 0x1


# instance fields
.field private mDialog:Ljava/lang/ref/WeakReference;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/lang/ref/WeakReference",
            "<",
            "Landroid/content/DialogInterface;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method public constructor <init>(Landroid/content/DialogInterface;)V
    .registers 3

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

    .line 204
    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/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController$ButtonHandler;->mDialog:Ljava/lang/ref/WeakReference;

    .line 205
    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .registers 5

    .prologue
    .line 209
    if-eqz p1, :cond_6

    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    if-nez v0, :cond_7

    .line 237
    :cond_6
    :goto_6
    return-void

    .line 213
    :cond_7
    iget v0, p1, Landroid/os/Message;->what:I

    packed-switch v0, :pswitch_data_32

    :pswitch_c
    goto :goto_6

    .line 218
    :pswitch_d
    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController$ButtonHandler;->mDialog:Ljava/lang/ref/WeakReference;

    if-eqz v0, :cond_6

    .line 222
    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController$ButtonHandler;->mDialog:Ljava/lang/ref/WeakReference;

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

    move-result-object v0

    check-cast v0, Landroid/content/DialogInterface;

    .line 224
    if-eqz v0, :cond_6

    .line 225
    iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v1, Landroid/content/DialogInterface$OnClickListener;

    iget v2, p1, Landroid/os/Message;->what:I

    invoke-interface {v1, v0, v2}, Landroid/content/DialogInterface$OnClickListener;->onClick(Landroid/content/DialogInterface;I)V

    goto :goto_6

    .line 232
    :pswitch_25
    :try_start_25
    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Landroid/content/DialogInterface;

    invoke-interface {v0}, Landroid/content/DialogInterface;->dismiss()V
    :try_end_2c
    .catch Ljava/lang/Throwable; {:try_start_25 .. :try_end_2c} :catch_2d

    goto :goto_6

    .line 233
    :catch_2d
    move-exception v0

    .line 234
    invoke-virtual {v0}, Ljava/lang/Throwable;->printStackTrace()V

    goto :goto_6

    .line 213
    :pswitch_data_32
    .packed-switch -0x3
        :pswitch_d
        :pswitch_d
        :pswitch_d
        :pswitch_c
        :pswitch_25
    .end packed-switch
.end method