MyAlertDialog$Builder.smali

.class public Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog$Builder;
.super Lcom/cleanmaster/hpsharelib/ui/dlg/alert/base/BuilderBase;
.source "MyAlertDialog.java"


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

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x9
    name = "Builder"
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/cleanmaster/hpsharelib/ui/dlg/alert/base/BuilderBase",
        "<",
        "Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog$Builder;",
        ">;"
    }
.end annotation


# instance fields
.field private mTheme:I


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

    .prologue
    .line 188
    sget v0, Lcom/cleanmaster/hpsharelib/R$style;->AliDialog:I

    invoke-direct {p0, p1, v0}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog$Builder;-><init>(Landroid/content/Context;I)V

    .line 189
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;I)V
    .registers 4

    .prologue
    .line 192
    const/4 v0, 0x1

    invoke-direct {p0, p1, v0}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/base/BuilderBase;-><init>(Landroid/content/Context;I)V

    .line 193
    iput p2, p0, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog$Builder;->mTheme:I

    .line 194
    return-void
.end method


# virtual methods
.method public create()Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog;
    .registers 4

    .prologue
    .line 198
    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog$Builder;->P:Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController$AlertParams;

    iget-object v0, v0, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController$AlertParams;->mNegativeButtonListener:Landroid/content/DialogInterface$OnClickListener;

    if-nez v0, :cond_c

    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog$Builder;->P:Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController$AlertParams;

    iget-object v0, v0, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController$AlertParams;->mPositiveButtonListener:Landroid/content/DialogInterface$OnClickListener;

    if-eqz v0, :cond_c

    .line 202
    :cond_c
    new-instance v0, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog;

    iget-object v1, p0, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog$Builder;->P:Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController$AlertParams;

    iget-object v1, v1, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController$AlertParams;->mContext:Landroid/content/Context;

    iget v2, p0, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog$Builder;->mTheme:I

    invoke-direct {v0, v1, v2}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog;-><init>(Landroid/content/Context;I)V

    .line 203
    iget-object v1, p0, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog$Builder;->P:Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController$AlertParams;

    # getter for: Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog;->mAlert:Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;
    invoke-static {v0}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog;->access$000(Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog;)Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController$AlertParams;->apply(Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;)V

    .line 204
    iget-object v1, p0, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog$Builder;->P:Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController$AlertParams;

    iget-boolean v1, v1, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController$AlertParams;->mCancelable:Z

    invoke-virtual {v0, v1}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog;->setCancelable(Z)V

    .line 205
    iget-object v1, p0, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog$Builder;->P:Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController$AlertParams;

    iget-object v1, v1, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController$AlertParams;->mOnCancelListener:Landroid/content/DialogInterface$OnCancelListener;

    invoke-virtual {v0, v1}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog;->setOnCancelListener(Landroid/content/DialogInterface$OnCancelListener;)V

    .line 206
    iget-object v1, p0, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog$Builder;->P:Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController$AlertParams;

    iget-object v1, v1, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController$AlertParams;->mOnKeyListener:Landroid/content/DialogInterface$OnKeyListener;

    if-eqz v1, :cond_3b

    .line 207
    iget-object v1, p0, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog$Builder;->P:Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController$AlertParams;

    iget-object v1, v1, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController$AlertParams;->mOnKeyListener:Landroid/content/DialogInterface$OnKeyListener;

    invoke-virtual {v0, v1}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog;->setOnKeyListener(Landroid/content/DialogInterface$OnKeyListener;)V

    .line 209
    :cond_3b
    return-object v0
.end method

.method public bridge synthetic create()Ljava/lang/Object;
    .registers 2

    .prologue
    .line 184
    invoke-virtual {p0}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog$Builder;->create()Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog;

    move-result-object v0

    return-object v0
.end method

.method public show()Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog;
    .registers 2

    .prologue
    .line 213
    invoke-virtual {p0}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog$Builder;->checkActivityExist()Z

    move-result v0

    if-nez v0, :cond_8

    .line 214
    const/4 v0, 0x0

    .line 218
    :goto_7
    return-object v0

    .line 216
    :cond_8
    invoke-virtual {p0}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog$Builder;->create()Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog;

    move-result-object v0

    .line 217
    invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog;->show()V

    goto :goto_7
.end method

.method public bridge synthetic show()Ljava/lang/Object;
    .registers 2

    .prologue
    .line 184
    invoke-virtual {p0}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog$Builder;->show()Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog;

    move-result-object v0

    return-object v0
.end method

.method public showIsOutsideCancelable(Z)Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog;
    .registers 3

    .prologue
    .line 227
    invoke-virtual {p0}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog$Builder;->checkActivityExist()Z

    move-result v0

    if-nez v0, :cond_8

    .line 228
    const/4 v0, 0x0

    .line 233
    :goto_7
    return-object v0

    .line 230
    :cond_8
    invoke-virtual {p0}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog$Builder;->create()Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog;

    move-result-object v0

    .line 231
    invoke-virtual {v0, p1}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog;->setCanceledOnTouchOutside(Z)V

    .line 232
    invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog;->show()V

    goto :goto_7
.end method

.method public bridge synthetic showIsOutsideCancelable(Z)Ljava/lang/Object;
    .registers 3

    .prologue
    .line 184
    invoke-virtual {p0, p1}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog$Builder;->showIsOutsideCancelable(Z)Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog;

    move-result-object v0

    return-object v0
.end method

.method public showIsOutsideCancelableInServiceProcess(Z)Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog;
    .registers 5

    .prologue
    .line 238
    invoke-virtual {p0}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog$Builder;->checkActivityExist()Z

    move-result v0

    if-nez v0, :cond_8

    .line 239
    const/4 v0, 0x0

    .line 248
    :goto_7
    return-object v0

    .line 241
    :cond_8
    invoke-virtual {p0}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog$Builder;->create()Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog;

    move-result-object v0

    .line 242
    invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog;->getWindow()Landroid/view/Window;

    move-result-object v1

    const/16 v2, 0x7d3

    invoke-virtual {v1, v2}, Landroid/view/Window;->setType(I)V

    .line 243
    invoke-static {}, Lcom/cleanmaster/hpsharelib/compat/CompatUtils;->isAndroidM()Z

    move-result v1

    if-eqz v1, :cond_24

    .line 244
    invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog;->getWindow()Landroid/view/Window;

    move-result-object v1

    const/16 v2, 0x7d5

    invoke-virtual {v1, v2}, Landroid/view/Window;->setType(I)V

    .line 246
    :cond_24
    invoke-virtual {v0, p1}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog;->setCanceledOnTouchOutside(Z)V

    .line 247
    invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog;->show()V

    goto :goto_7
.end method