GameBoostSettingActivity.smali
.class public Lcom/cleanmaster/gameboost/GameBoostSettingActivity;
.super Landroid/app/Activity;
.source "GameBoostSettingActivity.java"
# interfaces
.implements Landroid/widget/CompoundButton$OnCheckedChangeListener;
# instance fields
.field a:Landroid/text/style/ClickableSpan;
.field b:Landroid/text/style/ClickableSpan;
.field c:Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;
.field d:Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;
.field private e:Landroid/widget/TextView;
.field private f:Landroid/widget/TextView;
.field private g:Lcom/cleanmaster/gameboost/view/button/CommonSwitchButton;
.field private h:Lcom/cleanmaster/gameboost/view/button/CommonSwitchButton;
.field private i:Landroid/widget/ImageView;
.field private j:Landroid/widget/TextView;
.field private k:I
# direct methods
.method public constructor <init>()V
.registers 2
.prologue
.line 37
invoke-direct {p0}, Landroid/app/Activity;-><init>()V
.line 45
const/4 v0, 0x0
iput v0, p0, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->k:I
.line 165
new-instance v0, Lcom/cleanmaster/gameboost/bq;
invoke-direct {v0, p0}, Lcom/cleanmaster/gameboost/bq;-><init>(Lcom/cleanmaster/gameboost/GameBoostSettingActivity;)V
iput-object v0, p0, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->a:Landroid/text/style/ClickableSpan;
.line 179
new-instance v0, Lcom/cleanmaster/gameboost/br;
invoke-direct {v0, p0}, Lcom/cleanmaster/gameboost/br;-><init>(Lcom/cleanmaster/gameboost/GameBoostSettingActivity;)V
iput-object v0, p0, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->b:Landroid/text/style/ClickableSpan;
return-void
.end method
.method public static a(Landroid/content/Context;)B
.registers 3
.prologue
.line 318
invoke-static {p0}, Lcom/cleanmaster/gameboost/util/i;->b(Landroid/content/Context;)Z
move-result v0
.line 319
invoke-static {p0}, Lcom/cleanmaster/gameboost/util/i;->a(Landroid/content/Context;)Z
move-result v1
.line 322
if-eqz v0, :cond_e
if-eqz v1, :cond_e
.line 323
const/4 v0, 0x1
.line 334
:goto_d
return v0
.line 325
:cond_e
if-nez v0, :cond_14
if-nez v1, :cond_14
.line 326
const/4 v0, 0x2
goto :goto_d
.line 328
:cond_14
if-eqz v1, :cond_1a
if-nez v0, :cond_1a
.line 329
const/4 v0, 0x3
goto :goto_d
.line 331
:cond_1a
if-eqz v0, :cond_20
if-nez v1, :cond_20
.line 332
const/4 v0, 0x4
goto :goto_d
.line 334
:cond_20
const/16 v0, 0x7f
goto :goto_d
.end method
.method static synthetic a(Lcom/cleanmaster/gameboost/GameBoostSettingActivity;I)I
.registers 2
.prologue
.line 37
iput p1, p0, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->k:I
return p1
.end method
.method private a()V
.registers 3
.prologue
.line 56
sget v0, Lcom/cleanmaster/gameboost/R$id;->tv_phone_des:I
invoke-virtual {p0, v0}, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/TextView;
iput-object v0, p0, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->e:Landroid/widget/TextView;
.line 57
sget v0, Lcom/cleanmaster/gameboost/R$id;->tv_notification_des:I
invoke-virtual {p0, v0}, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/TextView;
iput-object v0, p0, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->f:Landroid/widget/TextView;
.line 58
sget v0, Lcom/cleanmaster/gameboost/R$id;->btn_phone:I
invoke-virtual {p0, v0}, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Lcom/cleanmaster/gameboost/view/button/CommonSwitchButton;
iput-object v0, p0, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->g:Lcom/cleanmaster/gameboost/view/button/CommonSwitchButton;
.line 59
sget v0, Lcom/cleanmaster/gameboost/R$id;->btn_notification:I
invoke-virtual {p0, v0}, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Lcom/cleanmaster/gameboost/view/button/CommonSwitchButton;
iput-object v0, p0, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->h:Lcom/cleanmaster/gameboost/view/button/CommonSwitchButton;
.line 60
sget v0, Lcom/cleanmaster/gameboost/R$id;->iv_back:I
invoke-virtual {p0, v0}, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/ImageView;
iput-object v0, p0, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->i:Landroid/widget/ImageView;
.line 61
sget v0, Lcom/cleanmaster/gameboost/R$id;->tv_intercept_details:I
invoke-virtual {p0, v0}, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/TextView;
iput-object v0, p0, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->j:Landroid/widget/TextView;
.line 62
iget-object v0, p0, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->j:Landroid/widget/TextView;
new-instance v1, Lcom/cleanmaster/gameboost/bl;
invoke-direct {v1, p0}, Lcom/cleanmaster/gameboost/bl;-><init>(Lcom/cleanmaster/gameboost/GameBoostSettingActivity;)V
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
.line 70
iget-object v0, p0, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->i:Landroid/widget/ImageView;
new-instance v1, Lcom/cleanmaster/gameboost/bo;
invoke-direct {v1, p0}, Lcom/cleanmaster/gameboost/bo;-><init>(Lcom/cleanmaster/gameboost/GameBoostSettingActivity;)V
invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
.line 76
iget-object v0, p0, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->g:Lcom/cleanmaster/gameboost/view/button/CommonSwitchButton;
invoke-virtual {v0, p0}, Lcom/cleanmaster/gameboost/view/button/CommonSwitchButton;->setOnCheckedChangeListener(Landroid/widget/CompoundButton$OnCheckedChangeListener;)V
.line 77
iget-object v0, p0, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->h:Lcom/cleanmaster/gameboost/view/button/CommonSwitchButton;
invoke-virtual {v0, p0}, Lcom/cleanmaster/gameboost/view/button/CommonSwitchButton;->setOnCheckedChangeListener(Landroid/widget/CompoundButton$OnCheckedChangeListener;)V
.line 78
invoke-direct {p0}, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->b()V
.line 79
return-void
.end method
.method static synthetic a(Lcom/cleanmaster/gameboost/GameBoostSettingActivity;)V
.registers 1
.prologue
.line 37
invoke-direct {p0}, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->c()V
return-void
.end method
.method private a(Z)V
.registers 8
.prologue
const/16 v5, 0x22
.line 119
sget v0, Lcom/cleanmaster/gameboost/R$string;->game_boost_setting_notification_des:I
invoke-virtual {p0, v0}, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->getString(I)Ljava/lang/String;
move-result-object v0
.line 120
if-nez p1, :cond_10
.line 121
iget-object v1, p0, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->f:Landroid/widget/TextView;
invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
.line 133
:goto_f
return-void
.line 123
:cond_10
sget v1, Lcom/cleanmaster/gameboost/R$string;->game_boost_setting_intecept_title:I
invoke-virtual {p0, v1}, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->getString(I)Ljava/lang/String;
move-result-object v1
.line 124
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v2, " "
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v2, ">"
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
.line 125
new-instance v2, Landroid/text/SpannableString;
invoke-direct {v2, v0}, Landroid/text/SpannableString;-><init>(Ljava/lang/CharSequence;)V
.line 126
invoke-virtual {v0, v1}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I
move-result v3
.line 127
iget-object v4, p0, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->b:Landroid/text/style/ClickableSpan;
invoke-virtual {v1}, Ljava/lang/String;->length()I
move-result v1
add-int/2addr v1, v3
invoke-virtual {v2, v4, v3, v1, v5}, Landroid/text/SpannableString;->setSpan(Ljava/lang/Object;III)V
.line 128
iget-object v1, p0, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->f:Landroid/widget/TextView;
invoke-static {}, Landroid/text/method/LinkMovementMethod;->getInstance()Landroid/text/method/MovementMethod;
move-result-object v4
invoke-virtual {v1, v4}, Landroid/widget/TextView;->setMovementMethod(Landroid/text/method/MovementMethod;)V
.line 129
new-instance v1, Landroid/text/style/ForegroundColorSpan;
const/4 v4, -0x1
invoke-direct {v1, v4}, Landroid/text/style/ForegroundColorSpan;-><init>(I)V
invoke-virtual {v0}, Ljava/lang/String;->length()I
move-result v0
invoke-virtual {v2, v1, v3, v0, v5}, Landroid/text/SpannableString;->setSpan(Ljava/lang/Object;III)V
.line 130
iget-object v0, p0, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->f:Landroid/widget/TextView;
const/4 v1, 0x0
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setHighlightColor(I)V
.line 131
iget-object v0, p0, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->f:Landroid/widget/TextView;
invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
goto :goto_f
.end method
.method private b()V
.registers 3
.prologue
.line 82
invoke-static {}, Lcom/cleanmaster/gameboost/util/k;->b()Z
move-result v0
if-eqz v0, :cond_16
.line 83
iget-object v0, p0, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->g:Lcom/cleanmaster/gameboost/view/button/CommonSwitchButton;
const/4 v1, 0x1
invoke-virtual {v0, v1}, Lcom/cleanmaster/gameboost/view/button/CommonSwitchButton;->setTouchDispath(Z)V
.line 84
iget-object v0, p0, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->g:Lcom/cleanmaster/gameboost/view/button/CommonSwitchButton;
new-instance v1, Lcom/cleanmaster/gameboost/bp;
invoke-direct {v1, p0}, Lcom/cleanmaster/gameboost/bp;-><init>(Lcom/cleanmaster/gameboost/GameBoostSettingActivity;)V
invoke-virtual {v0, v1}, Lcom/cleanmaster/gameboost/view/button/CommonSwitchButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V
.line 91
:cond_16
return-void
.end method
.method private b(Z)V
.registers 8
.prologue
const/16 v5, 0x22
.line 148
sget v0, Lcom/cleanmaster/gameboost/R$string;->game_boost_setting_phone_des:I
invoke-virtual {p0, v0}, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->getString(I)Ljava/lang/String;
move-result-object v0
.line 149
if-nez p1, :cond_10
.line 150
iget-object v1, p0, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->e:Landroid/widget/TextView;
invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
.line 162
:goto_f
return-void
.line 152
:cond_10
sget v1, Lcom/cleanmaster/gameboost/R$string;->game_boost_setting_intecept_title:I
invoke-virtual {p0, v1}, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->getString(I)Ljava/lang/String;
move-result-object v1
.line 153
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v2, " "
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v2, ">"
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
.line 154
new-instance v2, Landroid/text/SpannableString;
invoke-direct {v2, v0}, Landroid/text/SpannableString;-><init>(Ljava/lang/CharSequence;)V
.line 155
invoke-virtual {v0, v1}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I
move-result v3
.line 156
iget-object v4, p0, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->a:Landroid/text/style/ClickableSpan;
invoke-virtual {v1}, Ljava/lang/String;->length()I
move-result v1
add-int/2addr v1, v3
invoke-virtual {v2, v4, v3, v1, v5}, Landroid/text/SpannableString;->setSpan(Ljava/lang/Object;III)V
.line 157
iget-object v1, p0, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->e:Landroid/widget/TextView;
invoke-static {}, Landroid/text/method/LinkMovementMethod;->getInstance()Landroid/text/method/MovementMethod;
move-result-object v4
invoke-virtual {v1, v4}, Landroid/widget/TextView;->setMovementMethod(Landroid/text/method/MovementMethod;)V
.line 158
new-instance v1, Landroid/text/style/ForegroundColorSpan;
const/4 v4, -0x1
invoke-direct {v1, v4}, Landroid/text/style/ForegroundColorSpan;-><init>(I)V
invoke-virtual {v0}, Ljava/lang/String;->length()I
move-result v0
invoke-virtual {v2, v1, v3, v0, v5}, Landroid/text/SpannableString;->setSpan(Ljava/lang/Object;III)V
.line 159
iget-object v0, p0, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->e:Landroid/widget/TextView;
const/4 v1, 0x0
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setHighlightColor(I)V
.line 160
iget-object v0, p0, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->e:Landroid/widget/TextView;
invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
goto :goto_f
.end method
.method private c()V
.registers 1
.prologue
.line 101
invoke-direct {p0}, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->e()V
.line 102
invoke-direct {p0}, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->d()V
.line 103
return-void
.end method
.method private d()V
.registers 4
.prologue
const/4 v2, 0x2
.line 107
invoke-static {p0}, Lcom/cleanmaster/gameboost/util/i;->a(Landroid/content/Context;)Z
move-result v0
.line 108
iget-object v1, p0, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->h:Lcom/cleanmaster/gameboost/view/button/CommonSwitchButton;
invoke-virtual {v1}, Lcom/cleanmaster/gameboost/view/button/CommonSwitchButton;->isChecked()Z
move-result v1
if-eq v1, v0, :cond_12
.line 109
iget-object v1, p0, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->h:Lcom/cleanmaster/gameboost/view/button/CommonSwitchButton;
invoke-virtual {v1, v0}, Lcom/cleanmaster/gameboost/view/button/CommonSwitchButton;->setChecked(Z)V
.line 113
:cond_12
iget v1, p0, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->k:I
if-ne v1, v2, :cond_24
if-eqz v0, :cond_24
.line 114
new-instance v0, Lcom/cleanmaster/gameboost/b/g;
invoke-direct {v0}, Lcom/cleanmaster/gameboost/b/g;-><init>()V
invoke-virtual {v0, v2}, Lcom/cleanmaster/gameboost/b/g;->d(B)Lcom/cleanmaster/gameboost/b/g;
move-result-object v0
invoke-virtual {v0}, Lcom/cleanmaster/gameboost/b/g;->report()V
.line 116
:cond_24
return-void
.end method
.method private e()V
.registers 4
.prologue
.line 136
invoke-static {p0}, Lcom/cleanmaster/gameboost/util/i;->b(Landroid/content/Context;)Z
move-result v0
.line 137
iget-object v1, p0, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->g:Lcom/cleanmaster/gameboost/view/button/CommonSwitchButton;
invoke-virtual {v1}, Lcom/cleanmaster/gameboost/view/button/CommonSwitchButton;->isChecked()Z
move-result v1
if-eq v1, v0, :cond_11
.line 138
iget-object v1, p0, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->g:Lcom/cleanmaster/gameboost/view/button/CommonSwitchButton;
invoke-virtual {v1, v0}, Lcom/cleanmaster/gameboost/view/button/CommonSwitchButton;->setChecked(Z)V
.line 141
:cond_11
iget v1, p0, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->k:I
const/4 v2, 0x1
if-ne v1, v2, :cond_25
if-eqz v0, :cond_25
.line 142
new-instance v0, Lcom/cleanmaster/gameboost/b/g;
invoke-direct {v0}, Lcom/cleanmaster/gameboost/b/g;-><init>()V
const/4 v1, 0x4
invoke-virtual {v0, v1}, Lcom/cleanmaster/gameboost/b/g;->d(B)Lcom/cleanmaster/gameboost/b/g;
move-result-object v0
invoke-virtual {v0}, Lcom/cleanmaster/gameboost/b/g;->report()V
.line 145
:cond_25
return-void
.end method
.method private f()I
.registers 3
.prologue
.line 359
invoke-static {p0}, Lcom/cleanmaster/gameboost/util/i;->b(Landroid/content/Context;)Z
move-result v0
.line 360
invoke-static {p0}, Lcom/cleanmaster/gameboost/util/i;->a(Landroid/content/Context;)Z
move-result v1
.line 362
if-eqz v0, :cond_f
if-eqz v1, :cond_f
.line 364
const/16 v0, 0x64
.line 372
:goto_e
return v0
.line 365
:cond_f
if-nez v0, :cond_16
if-nez v1, :cond_16
.line 367
const/16 v0, 0x50
goto :goto_e
.line 370
:cond_16
const/16 v0, 0x5a
goto :goto_e
.end method
# virtual methods
.method protected onActivityResult(IILandroid/content/Intent;)V
.registers 6
.prologue
.line 297
invoke-super {p0, p1, p2, p3}, Landroid/app/Activity;->onActivityResult(IILandroid/content/Intent;)V
.line 298
const/16 v0, 0x64
if-ne p1, v0, :cond_15
.line 299
invoke-static {p0}, Lcom/cleanmaster/gameboost/doNotDisturb/c;->b(Landroid/content/Context;)Z
move-result v0
if-eqz v0, :cond_15
.line 300
invoke-virtual {p0}, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->getApplicationContext()Landroid/content/Context;
move-result-object v0
const/4 v1, 0x1
invoke-static {v0, v1}, Lcom/cleanmaster/gameboost/util/i;->a(Landroid/content/Context;Z)V
.line 303
:cond_15
return-void
.end method
.method public onCheckedChanged(Landroid/widget/CompoundButton;Z)V
.registers 6
.prologue
.line 195
invoke-virtual {p1}, Landroid/widget/CompoundButton;->getId()I
move-result v0
sget v1, Lcom/cleanmaster/gameboost/R$id;->btn_notification:I
if-ne v0, v1, :cond_12
.line 196
invoke-direct {p0, p2}, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->a(Z)V
.line 200
:cond_b
:goto_b
invoke-virtual {p1}, Landroid/widget/CompoundButton;->isPressed()Z
move-result v0
if-nez v0, :cond_1e
.line 277
:cond_11
:goto_11
return-void
.line 197
:cond_12
invoke-virtual {p1}, Landroid/widget/CompoundButton;->getId()I
move-result v0
sget v1, Lcom/cleanmaster/gameboost/R$id;->btn_phone:I
if-ne v0, v1, :cond_b
.line 198
invoke-direct {p0, p2}, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->b(Z)V
goto :goto_b
.line 203
:cond_1e
invoke-virtual {p1}, Landroid/widget/CompoundButton;->getId()I
move-result v0
sget v1, Lcom/cleanmaster/gameboost/R$id;->btn_notification:I
if-ne v0, v1, :cond_7c
.line 204
invoke-virtual {p0}, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->getApplicationContext()Landroid/content/Context;
move-result-object v0
invoke-static {v0, p2}, Lcom/cleanmaster/gameboost/util/i;->a(Landroid/content/Context;Z)V
.line 205
if-eqz p2, :cond_11
.line 208
invoke-static {p0}, Lcom/cleanmaster/gameboost/doNotDisturb/c;->b(Landroid/content/Context;)Z
move-result v0
if-nez v0, :cond_11
.line 212
iget-object v0, p0, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->c:Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;
if-nez v0, :cond_69
.line 213
new-instance v0, Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;
invoke-direct {v0, p0}, Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;-><init>(Landroid/content/Context;)V
sget v1, Lcom/cleanmaster/gameboost/R$string;->game_boost_setting_notification_permission_tip:I
.line 214
invoke-virtual {p0, v1}, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->getString(I)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;->a(Ljava/lang/String;)Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;
move-result-object v0
sget v1, Lcom/cleanmaster/gameboost/R$string;->game_boost_setting_dialog_cancel:I
new-instance v2, Lcom/cleanmaster/gameboost/bu;
invoke-direct {v2, p0}, Lcom/cleanmaster/gameboost/bu;-><init>(Lcom/cleanmaster/gameboost/GameBoostSettingActivity;)V
.line 215
invoke-virtual {v0, v1, v2}, Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;->a(ILandroid/view/View$OnClickListener;)Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;
move-result-object v0
sget v1, Lcom/cleanmaster/gameboost/R$string;->game_boost_setting_dialog_permission:I
new-instance v2, Lcom/cleanmaster/gameboost/bt;
invoke-direct {v2, p0, p2}, Lcom/cleanmaster/gameboost/bt;-><init>(Lcom/cleanmaster/gameboost/GameBoostSettingActivity;Z)V
.line 222
invoke-virtual {v0, v1, v2}, Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;->b(ILandroid/view/View$OnClickListener;)Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;
move-result-object v0
new-instance v1, Lcom/cleanmaster/gameboost/bs;
invoke-direct {v1, p0}, Lcom/cleanmaster/gameboost/bs;-><init>(Lcom/cleanmaster/gameboost/GameBoostSettingActivity;)V
.line 231
invoke-virtual {v0, v1}, Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;->a(Landroid/content/DialogInterface$OnCancelListener;)Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;
move-result-object v0
iput-object v0, p0, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->c:Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;
.line 238
:cond_69
iget-object v0, p0, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->c:Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;
invoke-virtual {v0}, Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;->show()V
.line 239
new-instance v0, Lcom/cleanmaster/gameboost/b/g;
invoke-direct {v0}, Lcom/cleanmaster/gameboost/b/g;-><init>()V
const/4 v1, 0x1
invoke-virtual {v0, v1}, Lcom/cleanmaster/gameboost/b/g;->d(B)Lcom/cleanmaster/gameboost/b/g;
move-result-object v0
invoke-virtual {v0}, Lcom/cleanmaster/gameboost/b/g;->report()V
goto :goto_11
.line 240
:cond_7c
invoke-virtual {p1}, Landroid/widget/CompoundButton;->getId()I
move-result v0
sget v1, Lcom/cleanmaster/gameboost/R$id;->btn_phone:I
if-ne v0, v1, :cond_11
.line 241
invoke-virtual {p0}, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->getApplicationContext()Landroid/content/Context;
move-result-object v0
invoke-static {v0, p2}, Lcom/cleanmaster/gameboost/util/i;->b(Landroid/content/Context;Z)V
.line 242
if-eqz p2, :cond_11
.line 245
invoke-static {p0}, Lcom/cleanmaster/gameboost/doNotDisturb/f;->a(Landroid/content/Context;)Ljava/util/ArrayList;
move-result-object v0
invoke-virtual {v0}, Ljava/util/ArrayList;->isEmpty()Z
move-result v0
if-nez v0, :cond_11
.line 248
iget-object v0, p0, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->d:Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;
if-nez v0, :cond_cb
.line 249
new-instance v0, Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;
invoke-direct {v0, p0}, Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;-><init>(Landroid/content/Context;)V
sget v1, Lcom/cleanmaster/gameboost/R$string;->game_boost_setting_phone_permission_tip:I
.line 250
invoke-virtual {p0, v1}, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->getString(I)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;->a(Ljava/lang/String;)Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;
move-result-object v0
sget v1, Lcom/cleanmaster/gameboost/R$string;->game_boost_setting_dialog_cancel:I
new-instance v2, Lcom/cleanmaster/gameboost/bn;
invoke-direct {v2, p0}, Lcom/cleanmaster/gameboost/bn;-><init>(Lcom/cleanmaster/gameboost/GameBoostSettingActivity;)V
.line 251
invoke-virtual {v0, v1, v2}, Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;->a(ILandroid/view/View$OnClickListener;)Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;
move-result-object v0
sget v1, Lcom/cleanmaster/gameboost/R$string;->game_boost_setting_dialog_permission:I
new-instance v2, Lcom/cleanmaster/gameboost/bm;
invoke-direct {v2, p0}, Lcom/cleanmaster/gameboost/bm;-><init>(Lcom/cleanmaster/gameboost/GameBoostSettingActivity;)V
.line 258
invoke-virtual {v0, v1, v2}, Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;->b(ILandroid/view/View$OnClickListener;)Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;
move-result-object v0
new-instance v1, Lcom/cleanmaster/gameboost/bv;
invoke-direct {v1, p0}, Lcom/cleanmaster/gameboost/bv;-><init>(Lcom/cleanmaster/gameboost/GameBoostSettingActivity;)V
.line 267
invoke-virtual {v0, v1}, Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;->a(Landroid/content/DialogInterface$OnCancelListener;)Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;
move-result-object v0
iput-object v0, p0, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->d:Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;
.line 274
:cond_cb
iget-object v0, p0, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->d:Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;
invoke-virtual {v0}, Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;->show()V
.line 275
new-instance v0, Lcom/cleanmaster/gameboost/b/g;
invoke-direct {v0}, Lcom/cleanmaster/gameboost/b/g;-><init>()V
const/4 v1, 0x3
invoke-virtual {v0, v1}, Lcom/cleanmaster/gameboost/b/g;->d(B)Lcom/cleanmaster/gameboost/b/g;
move-result-object v0
invoke-virtual {v0}, Lcom/cleanmaster/gameboost/b/g;->report()V
goto/16 :goto_11
.end method
.method protected onCreate(Landroid/os/Bundle;)V
.registers 4
.param p1 # Landroid/os/Bundle;
.annotation build Landroid/support/annotation/Nullable;
.end annotation
.end param
.prologue
.line 49
invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V
.line 50
sget v0, Lcom/cleanmaster/gameboost/R$layout;->activity_game_boost_setting:I
invoke-virtual {p0, v0}, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->setContentView(I)V
.line 51
invoke-direct {p0}, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->a()V
.line 52
new-instance v0, Lcom/cleanmaster/gameboost/b/g;
invoke-direct {v0}, Lcom/cleanmaster/gameboost/b/g;-><init>()V
const/4 v1, 0x1
invoke-virtual {v0, v1}, Lcom/cleanmaster/gameboost/b/g;->c(B)Lcom/cleanmaster/gameboost/b/g;
move-result-object v0
invoke-direct {p0}, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->f()I
move-result v1
int-to-byte v1, v1
invoke-virtual {v0, v1}, Lcom/cleanmaster/gameboost/b/g;->b(B)Lcom/cleanmaster/gameboost/b/g;
move-result-object v0
invoke-virtual {v0}, Lcom/cleanmaster/gameboost/b/g;->report()V
.line 53
return-void
.end method
.method protected onDestroy()V
.registers 3
.prologue
.line 307
invoke-super {p0}, Landroid/app/Activity;->onDestroy()V
.line 308
iget-object v0, p0, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->c:Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;
if-eqz v0, :cond_c
.line 309
iget-object v0, p0, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->c:Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;
invoke-virtual {v0}, Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;->dismiss()V
.line 311
:cond_c
iget-object v0, p0, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->d:Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;
if-eqz v0, :cond_15
.line 312
iget-object v0, p0, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->d:Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;
invoke-virtual {v0}, Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;->dismiss()V
.line 314
:cond_15
new-instance v0, Lcom/cleanmaster/gameboost/b/g;
invoke-direct {v0}, Lcom/cleanmaster/gameboost/b/g;-><init>()V
invoke-static {p0}, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->a(Landroid/content/Context;)B
move-result v1
invoke-virtual {v0, v1}, Lcom/cleanmaster/gameboost/b/g;->e(B)Lcom/cleanmaster/gameboost/b/g;
move-result-object v0
invoke-virtual {v0}, Lcom/cleanmaster/gameboost/b/g;->report()V
.line 315
return-void
.end method
.method public onRequestPermissionsResult(I[Ljava/lang/String;[I)V
.registers 7
.param p2 # [Ljava/lang/String;
.annotation build Landroid/support/annotation/NonNull;
.end annotation
.end param
.param p3 # [I
.annotation build Landroid/support/annotation/NonNull;
.end annotation
.end param
.prologue
.line 284
invoke-super {p0, p1, p2, p3}, Landroid/app/Activity;->onRequestPermissionsResult(I[Ljava/lang/String;[I)V
.line 285
const/16 v0, 0x65
if-ne p1, v0, :cond_f
.line 286
array-length v1, p3
const/4 v0, 0x0
:goto_9
if-ge v0, v1, :cond_13
aget v2, p3, v0
.line 287
if-eqz v2, :cond_10
.line 293
:cond_f
:goto_f
return-void
.line 286
:cond_10
add-int/lit8 v0, v0, 0x1
goto :goto_9
.line 291
:cond_13
invoke-virtual {p0}, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->getApplicationContext()Landroid/content/Context;
move-result-object v0
const/4 v1, 0x1
invoke-static {v0, v1}, Lcom/cleanmaster/gameboost/util/i;->b(Landroid/content/Context;Z)V
goto :goto_f
.end method
.method protected onResume()V
.registers 2
.prologue
.line 95
invoke-super {p0}, Landroid/app/Activity;->onResume()V
.line 96
invoke-direct {p0}, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->c()V
.line 97
const/4 v0, 0x0
iput v0, p0, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;->k:I
.line 98
return-void
.end method