n.smali
.class public Lcom/cleanmaster/ui/floatwindow/switchcontrol/n;
.super Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;
.source "ControllerFileManager.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 18
const/4 v0, 0x0
sput-object v0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/n;->a:Ljava/lang/Boolean;
return-void
.end method
.method public constructor <init>()V
.registers 3
.prologue
.line 20
invoke-direct {p0}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;-><init>()V
.line 21
const v0, 0x7f0a0f6a
iput v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/n;->t:I
.line 22
iget-object v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/n;->c:Landroid/content/Context;
iget v1, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/n;->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/n;->n:Ljava/lang/String;
.line 23
invoke-static {}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/n;->g()Z
.line 24
return-void
.end method
.method public static g()Z
.registers 4
.prologue
const/4 v0, 0x0
.line 56
sget-object v1, Lcom/cleanmaster/ui/floatwindow/switchcontrol/n;->a:Ljava/lang/Boolean;
if-eqz v1, :cond_c
.line 57
sget-object v0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/n;->a:Ljava/lang/Boolean;
invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z
move-result v0
.line 73
:cond_b
:goto_b
return v0
.line 59
:cond_c
invoke-static {}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/n;->n()Landroid/content/Intent;
move-result-object v1
.line 60
if-eqz v1, :cond_b
.line 63
invoke-static {}, Lcom/keniu/security/l;->d()Landroid/content/Context;
move-result-object v2
.line 64
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 65
if-eqz v2, :cond_3d
.line 67
const/high16 v3, 0x10000
:try_start_22
invoke-virtual {v2, v1, v3}, Landroid/content/pm/PackageManager;->queryIntentActivities(Landroid/content/Intent;I)Ljava/util/List;
move-result-object v1
.line 69
if-eqz v1, :cond_3a
invoke-interface {v1}, Ljava/util/List;->isEmpty()Z
move-result v1
if-nez v1, :cond_3a
const/4 v1, 0x1
:goto_2f
invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v1
sput-object v1, Lcom/cleanmaster/ui/floatwindow/switchcontrol/n;->a:Ljava/lang/Boolean;
invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z
:try_end_38
.catch Ljava/lang/Exception; {:try_start_22 .. :try_end_38} :catch_3c
move-result v0
goto :goto_b
:cond_3a
move v1, v0
goto :goto_2f
.line 70
:catch_3c
move-exception v1
.line 73
:cond_3d
invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v0
sput-object v0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/n;->a:Ljava/lang/Boolean;
invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z
move-result v0
goto :goto_b
.end method
.method private static n()Landroid/content/Intent;
.registers 2
.prologue
.line 48
new-instance v0, Landroid/content/Intent;
invoke-direct {v0}, Landroid/content/Intent;-><init>()V
.line 49
const-string v1, "android.intent.action.GET_CONTENT"
invoke-virtual {v0, v1}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;
.line 50
const/high16 v1, 0x14000000
invoke-virtual {v0, v1}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;
.line 51
const-string v1, "file/*"
invoke-virtual {v0, v1}, Landroid/content/Intent;->setType(Ljava/lang/String;)Landroid/content/Intent;
.line 52
return-object v0
.end method
# virtual methods
.method public a()I
.registers 2
.prologue
.line 28
const/4 v0, 0x1
return v0
.end method
.method public a(I)V
.registers 2
.prologue
.line 34
return-void
.end method
.method public b()V
.registers 3
.annotation build Landroid/annotation/TargetApi;
value = 0x9
.end annotation
.prologue
.line 44
invoke-static {}, Lcom/keniu/security/l;->d()Landroid/content/Context;
move-result-object v0
invoke-static {}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/n;->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 45
return-void
.end method
.method public c()I
.registers 2
.prologue
.line 78
const/16 v0, 0x21
return v0
.end method
.method public d()Ljava/lang/String;
.registers 2
.prologue
.line 88
iget-object v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/n;->l:Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;
iget-object v0, v0, Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;->fileManager:Ljava/lang/String;
return-object v0
.end method
.method public getNotificationResId(I)I
.registers 3
.prologue
.line 83
iget v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/n;->s:I
return v0
.end method
.method public onClick()V
.registers 1
.prologue
.line 38
invoke-virtual {p0}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/n;->b()V
.line 39
return-void
.end method