m.smali
.class public Lcom/cleanmaster/ui/floatwindow/switchcontrol/m;
.super Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;
.source "ControllerExplorer.java"
# interfaces
.implements Lcom/cm/plugincluster/nagativescreen/interfaces/INotificationController;
# static fields
.field static a:Ljava/lang/Boolean;
# direct methods
.method static constructor <clinit>()V
.registers 1
.prologue
.line 19
const/4 v0, 0x0
sput-object v0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/m;->a:Ljava/lang/Boolean;
return-void
.end method
.method public constructor <init>()V
.registers 3
.prologue
.line 21
invoke-direct {p0}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;-><init>()V
.line 22
const v0, 0x7f0a109b
iput v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/m;->t:I
.line 23
iget-object v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/m;->c:Landroid/content/Context;
iget v1, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/m;->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/m;->n:Ljava/lang/String;
.line 24
invoke-static {}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/m;->g()Z
.line 25
return-void
.end method
.method public static g()Z
.registers 4
.prologue
const/4 v0, 0x0
.line 58
invoke-static {}, Lcom/cleanmaster/hpsharelib/base/util/system/RuntimeCheck;->IsWorkerProcess()Z
move-result v1
if-eqz v1, :cond_8
.line 78
:cond_7
:goto_7
return v0
.line 61
:cond_8
sget-object v1, Lcom/cleanmaster/ui/floatwindow/switchcontrol/m;->a:Ljava/lang/Boolean;
if-eqz v1, :cond_13
.line 62
sget-object v0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/m;->a:Ljava/lang/Boolean;
invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z
move-result v0
goto :goto_7
.line 64
:cond_13
invoke-static {}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/m;->n()Landroid/content/Intent;
move-result-object v1
.line 65
if-eqz v1, :cond_7
.line 68
invoke-static {}, Lcom/keniu/security/m;->d()Landroid/content/Context;
move-result-object v2
.line 69
invoke-virtual {v2}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object v2
invoke-virtual {v2}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object v2
.line 70
if-eqz v2, :cond_44
.line 72
const/high16 v3, 0x10000
:try_start_29
invoke-virtual {v2, v1, v3}, Landroid/content/pm/PackageManager;->queryIntentActivities(Landroid/content/Intent;I)Ljava/util/List;
move-result-object v1
.line 74
if-eqz v1, :cond_41
invoke-interface {v1}, Ljava/util/List;->isEmpty()Z
move-result v1
if-nez v1, :cond_41
const/4 v1, 0x1
:goto_36
invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v1
sput-object v1, Lcom/cleanmaster/ui/floatwindow/switchcontrol/m;->a:Ljava/lang/Boolean;
invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z
:try_end_3f
.catch Ljava/lang/Exception; {:try_start_29 .. :try_end_3f} :catch_43
move-result v0
goto :goto_7
:cond_41
move v1, v0
goto :goto_36
.line 75
:catch_43
move-exception v1
.line 78
:cond_44
invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v0
sput-object v0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/m;->a:Ljava/lang/Boolean;
invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z
move-result v0
goto :goto_7
.end method
.method private static n()Landroid/content/Intent;
.registers 2
.prologue
.line 50
new-instance v0, Landroid/content/Intent;
invoke-direct {v0}, Landroid/content/Intent;-><init>()V
.line 51
const/high16 v1, 0x14000000
invoke-virtual {v0, v1}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;
.line 52
const-string v1, "android.intent.action.VIEW"
invoke-virtual {v0, v1}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;
.line 53
const-string v1, "http://"
invoke-static {v1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;
.line 54
return-object v0
.end method
# virtual methods
.method public a()I
.registers 2
.prologue
.line 30
const/4 v0, 0x1
return v0
.end method
.method public a(I)V
.registers 2
.prologue
.line 36
return-void
.end method
.method public b()V
.registers 1
.prologue
.line 45
invoke-virtual {p0}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/m;->onClick()V
.line 46
return-void
.end method
.method public c()I
.registers 2
.prologue
.line 84
const/16 v0, 0x1e
return v0
.end method
.method public d()Ljava/lang/String;
.registers 2
.prologue
.line 94
iget-object v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/m;->l:Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;
iget-object v0, v0, Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;->explorer:Ljava/lang/String;
return-object v0
.end method
.method public getNotificationResId(I)I
.registers 3
.prologue
.line 89
iget v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/m;->s:I
return v0
.end method
.method public onClick()V
.registers 3
.prologue
.line 40
invoke-static {}, Lcom/keniu/security/m;->d()Landroid/content/Context;
move-result-object v0
invoke-static {}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/m;->n()Landroid/content/Intent;
move-result-object v1
invoke-static {v0, v1}, Lcom/cleanmaster/hpsharelib/base/util/system/ComponentUtils;->startActivity(Landroid/content/Context;Landroid/content/Intent;)Z
.line 41
return-void
.end method