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 30
    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 36
    invoke-direct {p0}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;-><init>()V

    .line 37
    iput-object p2, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;->n:Ljava/lang/String;

    .line 38
    iput p3, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;->r:I

    .line 39
    iput p1, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;->t:I

    .line 40
    iput p4, p0, Lcom/cleanmaster/ui/floatwindow/ui/a;->b:I

    .line 41
    return-void
.end method

.method public static a(Landroid/content/Context;II)Lcom/cleanmaster/ui/floatwindow/ui/a;
    .registers 12

    .prologue
    const v3, 0x7f0a0a17

    const v1, 0x7f0a0a16

    const v4, 0x7f0a0a15

    const v2, 0x7f0a0a19

    const/4 v7, 0x1

    .line 69
    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 70
    const/4 v5, 0x0

    .line 71
    const/16 v0, 0x12

    .line 72
    sparse-switch p1, :sswitch_data_92

    move p1, v0

    move-object v1, v6

    move v0, v5

    .line 124
    :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 125
    return-object v2

    .line 75
    :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 77
    goto :goto_1e

    .line 81
    :sswitch_30
    sput v7, Lcom/cleanmaster/ui/floatwindow/ui/a;->a:I

    .line 82
    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 84
    goto :goto_1e

    .line 88
    :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 90
    goto :goto_1e

    .line 92
    :sswitch_48
    const v0, 0x7f0a0a18

    .line 93
    invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f0a0a18

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v1

    .line 95
    if-nez p2, :cond_5b

    .line 96
    sput v7, Lcom/cleanmaster/ui/floatwindow/ui/a;->a:I

    goto :goto_1e

    .line 98
    :cond_5b
    sput v7, Lcom/cleanmaster/ui/floatwindow/ui/a;->a:I

    goto :goto_1e

    .line 102
    :sswitch_5e
    invoke-static {}, Lcom/cleanmaster/m/a;->b()Lcom/cm/plugincluster/common/IMainPluginProxy;

    move-result-object v0

    .line 103
    if-eqz v0, :cond_67

    .line 104
    invoke-interface {v0, v7}, Lcom/cm/plugincluster/common/IMainPluginProxy;->setStarttingSecurityScan(Z)V

    .line 106
    :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 109
    goto :goto_1e

    .line 111
    :sswitch_72
    invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f0a12f1

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v1

    .line 112
    const v0, 0x7f0a12f1

    .line 114
    goto :goto_1e

    .line 116
    :sswitch_81
    invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f0a0a38

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v1

    .line 118
    sput v7, Lcom/cleanmaster/ui/floatwindow/ui/a;->a:I

    .line 119
    const v0, 0x7f0a0a38

    .line 120
    goto :goto_1e

    .line 72
    :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 144
    sget v0, Lcom/cleanmaster/ui/floatwindow/ui/a;->a:I

    return v0
.end method

.method public a(I)V
    .registers 2

    .prologue
    .line 150
    return-void
.end method

.method public b(I)Ljava/lang/String;
    .registers 3

    .prologue
    .line 264
    packed-switch p1, :pswitch_data_2c

    .line 270
    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 273
    :goto_f
    return-object v0

    .line 266
    :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 270
    :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 264
    nop

    :pswitch_data_2c
    .packed-switch 0x0
        :pswitch_10
    .end packed-switch
.end method

.method public b()V
    .registers 1

    .prologue
    .line 227
    invoke-virtual {p0}, Lcom/cleanmaster/ui/floatwindow/ui/a;->onClick()V

    .line 228
    return-void
.end method

.method public c()I
    .registers 2

    .prologue
    .line 232
    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 237
    const-string v0, ""

    .line 238
    iget v1, p0, Lcom/cleanmaster/ui/floatwindow/ui/a;->r:I

    sparse-switch v1, :sswitch_data_22

    .line 258
    :goto_7
    return-object v0

    .line 240
    :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 244
    :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 247
    :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 250
    :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 253
    :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 238
    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 50
    .line 52
    :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 53
    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 54
    const/4 v1, 0x1

    .line 59
    :goto_f
    new-instance v2, Landroid/content/Intent;

    invoke-direct {v2}, Landroid/content/Intent;-><init>()V

    .line 60
    const/high16 v3, 0x10000000

    invoke-virtual {v2, v3}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 61
    if-eqz v1, :cond_1e

    .line 62
    invoke-virtual {v2, v0}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 64
    :cond_1e
    return-object v2

    .line 55
    :catch_1f
    move-exception v1

    move v1, v0

    .line 56
    goto :goto_f
.end method

.method public getNotificationResId(I)I
    .registers 4

    .prologue
    .line 130
    iget v0, p0, Lcom/cleanmaster/ui/floatwindow/ui/a;->r:I

    const/16 v1, 0x14

    if-ne v0, v1, :cond_9

    .line 131
    packed-switch p1, :pswitch_data_14

    .line 139
    :cond_9
    const/4 v0, 0x0

    :goto_a
    return v0

    .line 133
    :pswitch_b
    const v0, 0x7f02057c

    goto :goto_a

    .line 135
    :pswitch_f
    const v0, 0x7f02057b

    goto :goto_a

    .line 131
    nop

    :pswitch_data_14
    .packed-switch 0x0
        :pswitch_f
        :pswitch_b
    .end packed-switch
.end method

.method public i()I
    .registers 2

    .prologue
    .line 45
    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 155
    :try_start_0
    invoke-virtual {p0}, Lcom/cleanmaster/ui/floatwindow/ui/a;->g()Landroid/content/Intent;

    move-result-object v1

    .line 156
    invoke-virtual {p0}, Lcom/cleanmaster/ui/floatwindow/ui/a;->c()I

    move-result v0

    sparse-switch v0, :sswitch_data_b2

    :cond_b
    move-object v0, v1

    .line 217
    :cond_c
    :goto_c
    if-eqz v0, :cond_13

    .line 218
    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 223
    :cond_13
    :goto_13
    return-void

    :sswitch_14
    move-object v0, v1

    .line 161
    goto :goto_c

    .line 164
    :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 165
    if-eqz v0, :cond_13

    .line 168
    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 169
    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 170
    goto :goto_c

    .line 173
    :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 174
    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 175
    if-eqz v0, :cond_c

    .line 176
    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 220
    :catch_4a
    move-exception v0

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

    goto :goto_13

    .line 180
    :sswitch_4f
    :try_start_4f
    iget v0, p0, Lcom/cleanmaster/ui/floatwindow/ui/a;->b:I

    if-nez v0, :cond_5b

    .line 181
    iget-object v0, p0, Lcom/cleanmaster/ui/floatwindow/ui/a;->c:Landroid/content/Context;

    const/16 v1, 0x68

    invoke-static {v0, v1}, Lcom/cm/plugincluster/gamebox/GameBoxPluginDelegate;->startProperGameBox(Landroid/content/Context;I)V

    goto :goto_13

    .line 183
    :cond_5b
    iget-object v0, p0, Lcom/cleanmaster/ui/floatwindow/ui/a;->c:Landroid/content/Context;

    const/4 v1, 0x7

    invoke-static {v0, v1}, Lcom/cm/plugincluster/gamebox/GameBoxPluginDelegate;->startProperGameBox(Landroid/content/Context;I)V

    goto :goto_13

    .line 187
    :sswitch_62
    invoke-static {}, Lcom/cm/plugincluster/core/proxy/SecurityMainActivityProxy;->getActivityCls()Ljava/lang/Class;

    move-result-object v0

    .line 188
    if-eqz v0, :cond_13

    .line 191
    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 192
    const-string/jumbo 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 193
    invoke-static {}, Lcom/cleanmaster/m/a;->b()Lcom/cm/plugincluster/common/IMainPluginProxy;

    move-result-object v0

    .line 194
    if-eqz v0, :cond_b

    .line 195
    const/4 v2, 0x1

    invoke-interface {v0, v2}, Lcom/cm/plugincluster/common/IMainPluginProxy;->setStarttingSecurityScan(Z)V

    move-object v0, v1

    goto :goto_c

    .line 199
    :sswitch_84
    invoke-static {}, Lcom/cm/plugincluster/core/proxy/ProcessManagerActivityProxy;->getActivityCls()Ljava/lang/Class;

    move-result-object v0

    .line 200
    if-eqz v0, :cond_13

    .line 203
    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 204
    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_99
    .catch Ljava/lang/Exception; {:try_start_4f .. :try_end_99} :catch_4a

    move-object v0, v1

    .line 205
    goto/16 :goto_c

    .line 208
    :sswitch_9c
    :try_start_9c
    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_a7
    .catch Ljava/lang/Exception; {:try_start_9c .. :try_end_a7} :catch_aa

    move-result-object v0

    goto/16 :goto_c

    .line 209
    :catch_aa
    move-exception v0

    .line 210
    :try_start_ab
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V
    :try_end_ae
    .catch Ljava/lang/Exception; {:try_start_ab .. :try_end_ae} :catch_4a

    move-object v0, v1

    .line 212
    goto/16 :goto_c

    .line 156
    nop

    :sswitch_data_b2
    .sparse-switch
        0x12 -> :sswitch_16
        0x13 -> :sswitch_36
        0x14 -> :sswitch_4f
        0x15 -> :sswitch_84
        0x16 -> :sswitch_62
        0x26 -> :sswitch_9c
        0x27 -> :sswitch_14
    .end sparse-switch
.end method