GameBoostCommonDialog.smali
.class public Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;
.super Landroid/app/Dialog;
.source "GameBoostCommonDialog.java"
# interfaces
.implements Landroid/view/View$OnClickListener;
# instance fields
.field public a:I
.annotation build Landroid/support/annotation/StringRes;
.end annotation
.end field
.field public b:I
.annotation build Landroid/support/annotation/StringRes;
.end annotation
.end field
.field public c:Ljava/lang/String;
.field public d:Landroid/view/View$OnClickListener;
.field public e:Landroid/view/View$OnClickListener;
# direct methods
.method public constructor <init>(Landroid/content/Context;)V
.registers 3
.param p1 # Landroid/content/Context;
.annotation build Landroid/support/annotation/NonNull;
.end annotation
.end param
.prologue
.line 25
sget v0, Lcom/cleanmaster/gameboost/R$style;->game_boost_dialog:I
invoke-direct {p0, p1, v0}, Landroid/app/Dialog;-><init>(Landroid/content/Context;I)V
.line 26
return-void
.end method
.method private a()V
.registers 4
.prologue
.line 55
invoke-virtual {p0}, Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;->getWindow()Landroid/view/Window;
move-result-object v0
.line 56
if-eqz v0, :cond_11
.line 57
invoke-virtual {v0}, Landroid/view/Window;->getAttributes()Landroid/view/WindowManager$LayoutParams;
move-result-object v1
.line 58
const/16 v2, 0x11
iput v2, v1, Landroid/view/WindowManager$LayoutParams;->gravity:I
.line 59
invoke-virtual {v0, v1}, Landroid/view/Window;->setAttributes(Landroid/view/WindowManager$LayoutParams;)V
.line 61
:cond_11
return-void
.end method
# virtual methods
.method public a(ILandroid/view/View$OnClickListener;)Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;
.registers 3
.param p1 # I
.annotation build Landroid/support/annotation/StringRes;
.end annotation
.end param
.prologue
.line 82
iput p1, p0, Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;->a:I
.line 83
iput-object p2, p0, Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;->d:Landroid/view/View$OnClickListener;
.line 84
return-object p0
.end method
.method public a(Landroid/content/DialogInterface$OnCancelListener;)Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;
.registers 2
.prologue
.line 94
invoke-super {p0, p1}, Landroid/app/Dialog;->setOnCancelListener(Landroid/content/DialogInterface$OnCancelListener;)V
.line 95
return-object p0
.end method
.method public a(Ljava/lang/String;)Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;
.registers 2
.prologue
.line 77
iput-object p1, p0, Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;->c:Ljava/lang/String;
.line 78
return-object p0
.end method
.method public b(ILandroid/view/View$OnClickListener;)Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;
.registers 3
.param p1 # I
.annotation build Landroid/support/annotation/StringRes;
.end annotation
.end param
.prologue
.line 88
iput p1, p0, Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;->b:I
.line 89
iput-object p2, p0, Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;->e:Landroid/view/View$OnClickListener;
.line 90
return-object p0
.end method
.method public onClick(Landroid/view/View;)V
.registers 4
.prologue
.line 65
invoke-virtual {p1}, Landroid/view/View;->getId()I
move-result v0
sget v1, Lcom/cleanmaster/gameboost/R$id;->tv_cancel:I
if-ne v0, v1, :cond_12
.line 66
iget-object v0, p0, Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;->d:Landroid/view/View$OnClickListener;
if-eqz v0, :cond_11
.line 67
iget-object v0, p0, Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;->d:Landroid/view/View$OnClickListener;
invoke-interface {v0, p1}, Landroid/view/View$OnClickListener;->onClick(Landroid/view/View;)V
.line 74
:cond_11
:goto_11
return-void
.line 69
:cond_12
invoke-virtual {p1}, Landroid/view/View;->getId()I
move-result v0
sget v1, Lcom/cleanmaster/gameboost/R$id;->tv_submit:I
if-ne v0, v1, :cond_11
.line 70
iget-object v0, p0, Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;->e:Landroid/view/View$OnClickListener;
if-eqz v0, :cond_11
.line 71
iget-object v0, p0, Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;->e:Landroid/view/View$OnClickListener;
invoke-interface {v0, p1}, Landroid/view/View$OnClickListener;->onClick(Landroid/view/View;)V
goto :goto_11
.end method
.method protected onCreate(Landroid/os/Bundle;)V
.registers 4
.prologue
.line 38
invoke-super {p0, p1}, Landroid/app/Dialog;->onCreate(Landroid/os/Bundle;)V
.line 39
invoke-direct {p0}, Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;->a()V
.line 40
sget v0, Lcom/cleanmaster/gameboost/R$layout;->dialog_game_boost_common:I
invoke-virtual {p0, v0}, Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;->setContentView(I)V
.line 41
sget v0, Lcom/cleanmaster/gameboost/R$id;->tv_cancel:I
invoke-virtual {p0, v0}, Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;->findViewById(I)Landroid/view/View;
move-result-object v0
invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
.line 42
sget v0, Lcom/cleanmaster/gameboost/R$id;->tv_submit:I
invoke-virtual {p0, v0}, Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;->findViewById(I)Landroid/view/View;
move-result-object v0
invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
.line 43
iget v0, p0, Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;->a:I
if-eqz v0, :cond_2e
.line 44
sget v0, Lcom/cleanmaster/gameboost/R$id;->tv_cancel:I
invoke-virtual {p0, v0}, Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/TextView;
iget v1, p0, Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;->a:I
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V
.line 46
:cond_2e
iget v0, p0, Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;->b:I
if-eqz v0, :cond_3f
.line 47
sget v0, Lcom/cleanmaster/gameboost/R$id;->tv_submit:I
invoke-virtual {p0, v0}, Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/TextView;
iget v1, p0, Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;->b:I
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V
.line 49
:cond_3f
iget-object v0, p0, Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;->c:Ljava/lang/String;
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v0
if-nez v0, :cond_54
.line 50
sget v0, Lcom/cleanmaster/gameboost/R$id;->tv_title:I
invoke-virtual {p0, v0}, Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/TextView;
iget-object v1, p0, Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;->c:Ljava/lang/String;
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
.line 52
:cond_54
return-void
.end method