MyFloatAlertDialog.smali

.class public Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyFloatAlertDialog;
.super Lcom/cleanmaster/hpsharelib/ui/dlg/alert/base/FloatAlertWindowBase;
.source "MyFloatAlertDialog.java"

# interfaces
.implements Landroid/content/DialogInterface;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyFloatAlertDialog$Builder;
    }
.end annotation


# instance fields
.field private mAlert:Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;


# direct methods
.method protected constructor <init>(Landroid/content/Context;)V
    .registers 4

    .prologue
    .line 17
    invoke-direct {p0, p1}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/base/FloatAlertWindowBase;-><init>(Landroid/content/Context;)V

    .line 18
    invoke-virtual {p0}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyFloatAlertDialog;->setRootView()V

    .line 19
    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyFloatAlertDialog;->mView:Landroid/view/View;

    if-nez v0, :cond_b

    .line 23
    :goto_a
    return-void

    .line 22
    :cond_b
    new-instance v0, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;

    iget-object v1, p0, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyFloatAlertDialog;->mView:Landroid/view/View;

    invoke-direct {v0, p1, p0, v1}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;-><init>(Landroid/content/Context;Landroid/content/DialogInterface;Landroid/view/View;)V

    iput-object v0, p0, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyFloatAlertDialog;->mAlert:Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;

    goto :goto_a
.end method

.method static synthetic access$000(Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyFloatAlertDialog;)Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;
    .registers 2

    .prologue
    .line 13
    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyFloatAlertDialog;->mAlert:Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;

    return-object v0
.end method


# virtual methods
.method public cancel()V
    .registers 1

    .prologue
    .line 127
    return-void
.end method

.method public dismiss()V
    .registers 1

    .prologue
    .line 131
    invoke-virtual {p0}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyFloatAlertDialog;->close()V

    .line 132
    return-void
.end method

.method public getButton(I)Landroid/widget/Button;
    .registers 3

    .prologue
    .line 26
    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyFloatAlertDialog;->mAlert:Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;

    invoke-virtual {v0, p1}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;->getButton(I)Landroid/widget/Button;

    move-result-object v0

    return-object v0
.end method

.method public getView()Landroid/view/View;
    .registers 2

    .prologue
    .line 45
    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyFloatAlertDialog;->mAlert:Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;

    invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;->getView()Landroid/view/View;

    move-result-object v0

    return-object v0
.end method

.method protected onCreate()V
    .registers 2

    .prologue
    .line 70
    invoke-super {p0}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/base/FloatAlertWindowBase;->onCreate()V

    .line 72
    :try_start_3
    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyFloatAlertDialog;->mAlert:Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;

    invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;->installContent()V
    :try_end_8
    .catch Ljava/lang/Throwable; {:try_start_3 .. :try_end_8} :catch_9

    .line 76
    :goto_8
    return-void

    .line 73
    :catch_9
    move-exception v0

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

    goto :goto_8
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .registers 4

    .prologue
    .line 80
    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyFloatAlertDialog;->mAlert:Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;

    invoke-virtual {v0, p1, p2}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;->onKeyDown(ILandroid/view/KeyEvent;)Z

    move-result v0

    if-eqz v0, :cond_a

    .line 81
    const/4 v0, 0x1

    .line 82
    :goto_9
    return v0

    :cond_a
    invoke-super {p0, p1, p2}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/base/FloatAlertWindowBase;->onKeyDown(ILandroid/view/KeyEvent;)Z

    move-result v0

    goto :goto_9
.end method

.method public onKeyUp(ILandroid/view/KeyEvent;)Z
    .registers 4

    .prologue
    .line 87
    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyFloatAlertDialog;->mAlert:Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;

    invoke-virtual {v0, p1, p2}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;->onKeyUp(ILandroid/view/KeyEvent;)Z

    move-result v0

    if-eqz v0, :cond_a

    .line 88
    const/4 v0, 0x1

    .line 92
    :goto_9
    return v0

    .line 90
    :cond_a
    const/4 v0, 0x4

    if-ne p1, v0, :cond_d

    .line 92
    :cond_d
    invoke-super {p0, p1, p2}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/base/FloatAlertWindowBase;->onKeyUp(ILandroid/view/KeyEvent;)Z

    move-result v0

    goto :goto_9
.end method

.method public setButton(ILjava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)V
    .registers 6

    .prologue
    .line 61
    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyFloatAlertDialog;->mAlert:Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;

    const/4 v1, 0x0

    invoke-virtual {v0, p1, p2, p3, v1}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;->setButton(ILjava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;Landroid/os/Message;)V

    .line 62
    return-void
.end method

.method public setCustomButtonMargin(I)V
    .registers 3

    .prologue
    .line 53
    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyFloatAlertDialog;->mAlert:Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;

    invoke-virtual {v0, p1}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;->setCustomButtonMargin(I)V

    .line 54
    return-void
.end method

.method public setMessage(Ljava/lang/CharSequence;)V
    .registers 3

    .prologue
    .line 34
    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyFloatAlertDialog;->mAlert:Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;

    invoke-virtual {v0, p1}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;->setMessage(Ljava/lang/CharSequence;)V

    .line 35
    return-void
.end method

.method public setTitle(Ljava/lang/CharSequence;)V
    .registers 3

    .prologue
    .line 30
    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyFloatAlertDialog;->mAlert:Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;

    invoke-virtual {v0, p1}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;->setTitle(Ljava/lang/CharSequence;)V

    .line 31
    return-void
.end method

.method public setView(Landroid/view/View;)V
    .registers 3

    .prologue
    .line 41
    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyFloatAlertDialog;->mAlert:Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;

    invoke-virtual {v0, p1}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;->setView(Landroid/view/View;)V

    .line 42
    return-void
.end method

.method public setView(Landroid/view/View;IIII)V
    .registers 12

    .prologue
    .line 49
    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyFloatAlertDialog;->mAlert:Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;

    move-object v1, p1

    move v2, p2

    move v3, p3

    move v4, p4

    move v5, p5

    invoke-virtual/range {v0 .. v5}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;->setView(Landroid/view/View;IIII)V

    .line 50
    return-void
.end method