h.smali
.class public Lcom/cleanmaster/ui/floatwindow/switchcontrol/h;
.super Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;
.source "CalcController.java"
# interfaces
.implements Lcom/cm/plugincluster/nagativescreen/interfaces/INotificationController;
# static fields
.field static a:Ljava/lang/Boolean;
.field private static b:Ljava/lang/String;
# direct methods
.method static constructor <clinit>()V
.registers 1
.prologue
.line 13
const/4 v0, 0x0
sput-object v0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/h;->a:Ljava/lang/Boolean;
return-void
.end method
.method public constructor <init>()V
.registers 3
.prologue
.line 15
invoke-direct {p0}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;-><init>()V
.line 16
const v0, 0x7f0a0a28
iput v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/h;->t:I
.line 17
iget-object v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/h;->c:Landroid/content/Context;
iget v1, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/h;->t:I
invoke-virtual {v0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;
move-result-object v0
iput-object v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/h;->n:Ljava/lang/String;
.line 18
sget-object v0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/h;->b:Ljava/lang/String;
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v0
if-eqz v0, :cond_24
.line 19
invoke-static {}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/h;->g()Z
move-result v0
invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v0
sput-object v0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/h;->a:Ljava/lang/Boolean;
.line 20
:cond_24
return-void
.end method
.method public static g()Z
.registers 7
.prologue
const/4 v6, 0x1
const/4 v1, 0x0
.line 49
sget-object v0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/h;->a:Ljava/lang/Boolean;
if-eqz v0, :cond_d
.line 50
sget-object v0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/h;->a:Ljava/lang/Boolean;
invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z
move-result v0
.line 63
:goto_c
return v0
.line 53
:cond_d
const/4 v0, 0x3
new-array v2, v0, [Ljava/lang/String;
const-string v0, "com.android.calculator2"
aput-object v0, v2, v1
const-string v0, "com.sec.android.app.popupcalculator"
aput-object v0, v2, v6
const/4 v0, 0x2
const-string v3, "com.sec.android.app.calculator"
aput-object v3, v2, v0
.line 57
array-length v3, v2
move v0, v1
:goto_1f
if-ge v0, v3, :cond_3d
aget-object v4, v2, v0
.line 58
invoke-static {}, Lcom/keniu/security/m;->d()Landroid/content/Context;
move-result-object v5
invoke-static {v5, v4}, Lcom/cleanmaster/hpsharelib/base/util/system/PackageUtils;->getPkgAvailable(Landroid/content/Context;Ljava/lang/String;)Z
move-result v5
if-eqz v5, :cond_3a
.line 59
sput-object v4, Lcom/cleanmaster/ui/floatwindow/switchcontrol/h;->b:Ljava/lang/String;
.line 60
invoke-static {v6}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v0
sput-object v0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/h;->a:Ljava/lang/Boolean;
invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z
move-result v0
goto :goto_c
.line 57
:cond_3a
add-int/lit8 v0, v0, 0x1
goto :goto_1f
.line 63
:cond_3d
invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v0
sput-object v0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/h;->a:Ljava/lang/Boolean;
invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z
move-result v0
goto :goto_c
.end method
# virtual methods
.method public a()I
.registers 2
.prologue
.line 24
const/4 v0, 0x1
return v0
.end method
.method public a(I)V
.registers 2
.prologue
.line 29
return-void
.end method
.method public b()V
.registers 1
.prologue
.line 40
invoke-virtual {p0}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/h;->onClick()V
.line 41
return-void
.end method
.method public c()I
.registers 2
.prologue
.line 45
const/4 v0, 0x6
return v0
.end method
.method public d()Ljava/lang/String;
.registers 2
.prologue
.line 73
iget-object v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/h;->l:Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;
iget-object v0, v0, Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;->calculator:Ljava/lang/String;
return-object v0
.end method
.method public getNotificationResId(I)I
.registers 3
.prologue
.line 68
iget v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/h;->s:I
return v0
.end method
.method public onClick()V
.registers 3
.prologue
.line 33
sget-object v0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/h;->a:Ljava/lang/Boolean;
if-eqz v0, :cond_1d
sget-object v0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/h;->a:Ljava/lang/Boolean;
invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z
move-result v0
if-eqz v0, :cond_1d
sget-object v0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/h;->b:Ljava/lang/String;
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v0
if-nez v0, :cond_1d
.line 34
invoke-static {}, Lcom/keniu/security/m;->d()Landroid/content/Context;
move-result-object v0
sget-object v1, Lcom/cleanmaster/ui/floatwindow/switchcontrol/h;->b:Ljava/lang/String;
invoke-static {v0, v1}, Lcom/cleanmaster/hpsharelib/base/util/system/PackageUtils;->openApp(Landroid/content/Context;Ljava/lang/String;)V
.line 36
:cond_1d
return-void
.end method