a.smali
.class public Lcom/cleanmaster/ui/floatwindow/ui/a;
.super Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;
.source "FloatBottomSwitchBase.java"
# interfaces
.implements Lcom/cm/plugincluster/nagativescreen/interfaces/INotificationController;
# static fields
.field private static a:I
# instance fields
.field private b:I
# direct methods
.method static constructor <clinit>()V
.registers 1
.prologue
.line 28
const/4 v0, 0x0
sput v0, Lcom/cleanmaster/ui/floatwindow/ui/a;->a:I
return-void
.end method
.method public constructor <init>(ILjava/lang/String;II)V
.registers 5
.prologue
.line 34
invoke-direct {p0}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;-><init>()V
.line 35
iput-object p2, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;->n:Ljava/lang/String;
.line 36
iput p3, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;->r:I
.line 37
iput p1, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;->t:I
.line 38
iput p4, p0, Lcom/cleanmaster/ui/floatwindow/ui/a;->b:I
.line 39
return-void
.end method
.method public static a(Landroid/content/Context;II)Lcom/cleanmaster/ui/floatwindow/ui/a;
.registers 12
.prologue
const v3, 0x7f0a09e3
const v1, 0x7f0a09e2
const v4, 0x7f0a09e1
const v2, 0x7f0a09e5
const/4 v7, 0x1
.line 67
invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v0
invoke-virtual {v0, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
move-result-object v6
.line 68
const/4 v5, 0x0
.line 69
const/16 v0, 0x12
.line 70
sparse-switch p1, :sswitch_data_92
move p1, v0
move-object v1, v6
move v0, v5
.line 122
:goto_1e
new-instance v2, Lcom/cleanmaster/ui/floatwindow/ui/a;
invoke-direct {v2, v0, v1, p1, p2}, Lcom/cleanmaster/ui/floatwindow/ui/a;-><init>(ILjava/lang/String;II)V
.line 123
return-object v2
.line 73
:sswitch_24
invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v0
invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
move-result-object v0
move v8, v1
move-object v1, v0
move v0, v8
.line 75
goto :goto_1e
.line 79
:sswitch_30
sput v7, Lcom/cleanmaster/ui/floatwindow/ui/a;->a:I
.line 80
invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v0
invoke-virtual {v0, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
move-result-object v0
move-object v1, v0
move v0, v2
.line 82
goto :goto_1e
.line 86
:sswitch_3d
invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v0
invoke-virtual {v0, v3}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
move-result-object v0
move-object v1, v0
move v0, v3
.line 88
goto :goto_1e
.line 90
:sswitch_48
const v0, 0x7f0a09e4
.line 91
invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v1
const v2, 0x7f0a09e4
invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
move-result-object v1
.line 93
if-nez p2, :cond_5b
.line 94
sput v7, Lcom/cleanmaster/ui/floatwindow/ui/a;->a:I
goto :goto_1e
.line 96
:cond_5b
sput v7, Lcom/cleanmaster/ui/floatwindow/ui/a;->a:I
goto :goto_1e
.line 100
:sswitch_5e
invoke-static {}, Lcom/cleanmaster/m/a;->b()Lcom/cm/plugincluster/common/IMainPluginProxy;
move-result-object v0
.line 101
if-eqz v0, :cond_67
.line 102
invoke-interface {v0, v7}, Lcom/cm/plugincluster/common/IMainPluginProxy;->setStarttingSecurityScan(Z)V
.line 104
:cond_67
invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v0
invoke-virtual {v0, v4}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
move-result-object v0
move-object v1, v0
move v0, v4
.line 107
goto :goto_1e
.line 109
:sswitch_72
invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v0
const v1, 0x7f0a11a6
invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
move-result-object v1
.line 110
const v0, 0x7f0a11a6
.line 112
goto :goto_1e
.line 114
:sswitch_81
invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v0
const v1, 0x7f0a0a04
invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
move-result-object v1
.line 116
sput v7, Lcom/cleanmaster/ui/floatwindow/ui/a;->a:I
.line 117
const v0, 0x7f0a0a04
.line 118
goto :goto_1e
.line 70
:sswitch_data_92
.sparse-switch
0x12 -> :sswitch_30
0x13 -> :sswitch_3d
0x14 -> :sswitch_48
0x15 -> :sswitch_72
0x16 -> :sswitch_5e
0x26 -> :sswitch_81
0x27 -> :sswitch_24
.end sparse-switch
.end method
# virtual methods
.method public a()I
.registers 2
.prologue
.line 142
sget v0, Lcom/cleanmaster/ui/floatwindow/ui/a;->a:I
return v0
.end method
.method public a(I)V
.registers 2
.prologue
.line 148
return-void
.end method
.method public b(I)Ljava/lang/String;
.registers 3
.prologue
.line 255
packed-switch p1, :pswitch_data_2c
.line 261
invoke-virtual {p0}, Lcom/cleanmaster/ui/floatwindow/ui/a;->a()I
move-result v0
if-nez v0, :cond_24
iget-object v0, p0, Lcom/cleanmaster/ui/floatwindow/ui/a;->l:Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;
invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;->getBlackGrayColor()Ljava/lang/String;
move-result-object v0
.line 264
:goto_f
return-object v0
.line 257
:pswitch_10
invoke-virtual {p0}, Lcom/cleanmaster/ui/floatwindow/ui/a;->a()I
move-result v0
if-nez v0, :cond_1d
iget-object v0, p0, Lcom/cleanmaster/ui/floatwindow/ui/a;->l:Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;
invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;->getGrayColor()Ljava/lang/String;
move-result-object v0
goto :goto_f
:cond_1d
iget-object v0, p0, Lcom/cleanmaster/ui/floatwindow/ui/a;->l:Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;
invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;->getBlueColor()Ljava/lang/String;
move-result-object v0
goto :goto_f
.line 261
:cond_24
iget-object v0, p0, Lcom/cleanmaster/ui/floatwindow/ui/a;->l:Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;
invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;->getWhiteColor()Ljava/lang/String;
move-result-object v0
goto :goto_f
.line 255
nop
:pswitch_data_2c
.packed-switch 0x0
:pswitch_10
.end packed-switch
.end method
.method public b()V
.registers 1
.prologue
.line 218
invoke-virtual {p0}, Lcom/cleanmaster/ui/floatwindow/ui/a;->onClick()V
.line 219
return-void
.end method
.method public c()I
.registers 2
.prologue
.line 223
iget v0, p0, Lcom/cleanmaster/ui/floatwindow/ui/a;->r:I
return v0
.end method
.method public d()Ljava/lang/String;
.registers 3
.prologue
.line 228
const-string v0, ""
.line 229
iget v1, p0, Lcom/cleanmaster/ui/floatwindow/ui/a;->r:I
sparse-switch v1, :sswitch_data_22
.line 249
:goto_7
return-object v0
.line 231
:sswitch_8
iget-object v0, p0, Lcom/cleanmaster/ui/floatwindow/ui/a;->l:Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;
iget-object v0, v0, Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;->junk:Ljava/lang/String;
goto :goto_7
.line 235
:sswitch_d
iget-object v0, p0, Lcom/cleanmaster/ui/floatwindow/ui/a;->l:Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;
iget-object v0, v0, Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;->app:Ljava/lang/String;
goto :goto_7
.line 238
:sswitch_12
iget-object v0, p0, Lcom/cleanmaster/ui/floatwindow/ui/a;->l:Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;
iget-object v0, v0, Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;->game:Ljava/lang/String;
goto :goto_7
.line 241
:sswitch_17
iget-object v0, p0, Lcom/cleanmaster/ui/floatwindow/ui/a;->l:Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;
iget-object v0, v0, Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;->sysSetting:Ljava/lang/String;
goto :goto_7
.line 244
:sswitch_1c
iget-object v0, p0, Lcom/cleanmaster/ui/floatwindow/ui/a;->l:Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;
iget-object v0, v0, Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;->translate:Ljava/lang/String;
goto :goto_7
.line 229
nop
:sswitch_data_22
.sparse-switch
0x12 -> :sswitch_8
0x13 -> :sswitch_d
0x14 -> :sswitch_12
0x26 -> :sswitch_1c
0x27 -> :sswitch_17
.end sparse-switch
.end method
.method public g()Landroid/content/Intent;
.registers 5
.prologue
const/4 v0, 0x0
.line 48
.line 50
:try_start_1
const-class v1, Landroid/content/Intent;
const-string v2, "FLAG_ACTIVITY_CLEAR_TASK"
invoke-virtual {v1, v2}, Ljava/lang/Class;->getField(Ljava/lang/String;)Ljava/lang/reflect/Field;
move-result-object v1
.line 51
const/4 v2, 0x0
invoke-virtual {v1, v2}, Ljava/lang/reflect/Field;->getInt(Ljava/lang/Object;)I
:try_end_d
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_d} :catch_1f
move-result v0
.line 52
const/4 v1, 0x1
.line 57
:goto_f
new-instance v2, Landroid/content/Intent;
invoke-direct {v2}, Landroid/content/Intent;-><init>()V
.line 58
const/high16 v3, 0x10000000
invoke-virtual {v2, v3}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;
.line 59
if-eqz v1, :cond_1e
.line 60
invoke-virtual {v2, v0}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;
.line 62
:cond_1e
return-object v2
.line 53
:catch_1f
move-exception v1
move v1, v0
.line 54
goto :goto_f
.end method
.method public getNotificationResId(I)I
.registers 4
.prologue
.line 128
iget v0, p0, Lcom/cleanmaster/ui/floatwindow/ui/a;->r:I
const/16 v1, 0x14
if-ne v0, v1, :cond_9
.line 129
packed-switch p1, :pswitch_data_14
.line 137
:cond_9
const/4 v0, 0x0
:goto_a
return v0
.line 131
:pswitch_b
const v0, 0x7f02046f
goto :goto_a
.line 133
:pswitch_f
const v0, 0x7f02046e
goto :goto_a
.line 129
nop
:pswitch_data_14
.packed-switch 0x0
:pswitch_f
:pswitch_b
.end packed-switch
.end method
.method public i()I
.registers 2
.prologue
.line 43
invoke-super {p0}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;->i()I
move-result v0
return v0
.end method
.method public onClick()V
.registers 5
.prologue
.line 153
:try_start_0
invoke-virtual {p0}, Lcom/cleanmaster/ui/floatwindow/ui/a;->g()Landroid/content/Intent;
move-result-object v1
.line 154
invoke-virtual {p0}, Lcom/cleanmaster/ui/floatwindow/ui/a;->c()I
move-result v0
sparse-switch v0, :sswitch_data_9c
:cond_b
move-object v0, v1
.line 208
:cond_c
:goto_c
if-eqz v0, :cond_13
.line 209
iget-object v1, p0, Lcom/cleanmaster/ui/floatwindow/ui/a;->c:Landroid/content/Context;
invoke-virtual {v1, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
.line 214
:cond_13
:goto_13
return-void
:sswitch_14
move-object v0, v1
.line 159
goto :goto_c
.line 162
:sswitch_16
const v0, 0x22c12f
const/4 v2, 0x0
new-array v2, v2, [Ljava/lang/Object;
invoke-static {v0, v2}, Lcom/cm/plugincluster/spec/CommanderManager;->invokeCommandExpNull(I[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/Class;
.line 163
if-eqz v0, :cond_13
.line 166
const-string v2, "fromtype"
const/16 v3, 0x9
invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;B)Landroid/content/Intent;
.line 167
iget-object v2, p0, Lcom/cleanmaster/ui/floatwindow/ui/a;->c:Landroid/content/Context;
invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;
move-result-object v0
invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->setClassName(Landroid/content/Context;Ljava/lang/String;)Landroid/content/Intent;
move-object v0, v1
.line 168
goto :goto_c
.line 171
:sswitch_36
invoke-static {}, Lcom/cm/plugincluster/softmgr/plugin/SoftMgrCommonPluginDelegate;->getSoftMgrPluginModule()Lcom/cm/plugincluster/softmgr/interfaces/plugin/ISoftCommonPluginModule;
move-result-object v0
iget-object v1, p0, Lcom/cleanmaster/ui/floatwindow/ui/a;->c:Landroid/content/Context;
const/16 v2, 0xa
.line 172
invoke-interface {v0, v1, v2}, Lcom/cm/plugincluster/softmgr/interfaces/plugin/ISoftCommonPluginModule;->getLaunchIntentUnInstaller(Landroid/content/Context;I)Landroid/content/Intent;
move-result-object v0
.line 173
if-eqz v0, :cond_c
.line 174
const/high16 v1, 0x10000000
invoke-virtual {v0, v1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;
:try_end_49
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_49} :catch_4a
goto :goto_c
.line 211
:catch_4a
move-exception v0
.line 212
invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V
goto :goto_13
.line 178
:sswitch_4f
:try_start_4f
invoke-static {}, Lcom/cm/plugincluster/core/proxy/SecurityMainActivityProxy;->getActivityCls()Ljava/lang/Class;
move-result-object v0
.line 179
if-eqz v0, :cond_13
.line 182
iget-object v2, p0, Lcom/cleanmaster/ui/floatwindow/ui/a;->c:Landroid/content/Context;
invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;
move-result-object v0
invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->setClassName(Landroid/content/Context;Ljava/lang/String;)Landroid/content/Intent;
.line 183
const-string v0, "scan_trigger_src"
const/4 v2, 0x1
invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;
.line 184
invoke-static {}, Lcom/cleanmaster/m/a;->b()Lcom/cm/plugincluster/common/IMainPluginProxy;
move-result-object v0
.line 185
if-eqz v0, :cond_b
.line 186
const/4 v2, 0x1
invoke-interface {v0, v2}, Lcom/cm/plugincluster/common/IMainPluginProxy;->setStarttingSecurityScan(Z)V
move-object v0, v1
goto :goto_c
.line 190
:sswitch_70
invoke-static {}, Lcom/cm/plugincluster/core/proxy/ProcessManagerActivityProxy;->getActivityCls()Ljava/lang/Class;
move-result-object v0
.line 191
if-eqz v0, :cond_13
.line 194
iget-object v2, p0, Lcom/cleanmaster/ui/floatwindow/ui/a;->c:Landroid/content/Context;
invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;
move-result-object v0
invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->setClassName(Landroid/content/Context;Ljava/lang/String;)Landroid/content/Intent;
.line 195
const-string v0, "from_where"
const/4 v2, 0x7
invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;
:try_end_85
.catch Ljava/lang/Exception; {:try_start_4f .. :try_end_85} :catch_4a
move-object v0, v1
.line 196
goto :goto_c
.line 199
:sswitch_87
:try_start_87
iget-object v0, p0, Lcom/cleanmaster/ui/floatwindow/ui/a;->c:Landroid/content/Context;
invoke-virtual {v0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object v0
const-string v2, "com.google.android.apps.translate"
invoke-virtual {v0, v2}, Landroid/content/pm/PackageManager;->getLaunchIntentForPackage(Ljava/lang/String;)Landroid/content/Intent;
:try_end_92
.catch Ljava/lang/Exception; {:try_start_87 .. :try_end_92} :catch_95
move-result-object v0
goto/16 :goto_c
.line 200
:catch_95
move-exception v0
.line 201
:try_start_96
invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V
:try_end_99
.catch Ljava/lang/Exception; {:try_start_96 .. :try_end_99} :catch_4a
move-object v0, v1
.line 203
goto/16 :goto_c
.line 154
:sswitch_data_9c
.sparse-switch
0x12 -> :sswitch_16
0x13 -> :sswitch_36
0x15 -> :sswitch_70
0x16 -> :sswitch_4f
0x26 -> :sswitch_87
0x27 -> :sswitch_14
.end sparse-switch
.end method