j.smali
.class public Lcom/cleanmaster/ui/floatwindow/switchcontrol/j;
.super Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;
.source "CameraController.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 21
const/4 v0, 0x0
sput-object v0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/j;->a:Ljava/lang/Boolean;
return-void
.end method
.method public constructor <init>()V
.registers 3
.prologue
.line 23
invoke-direct {p0}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;-><init>()V
.line 24
const v0, 0x7f0a0a29
iput v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/j;->t:I
.line 25
iget-object v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/j;->c:Landroid/content/Context;
iget v1, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/j;->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/j;->n:Ljava/lang/String;
.line 26
invoke-static {}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/j;->g()Z
.line 27
return-void
.end method
.method public static g()Z
.registers 5
.prologue
const/4 v0, 0x0
.line 30
sget-object v1, Lcom/cleanmaster/ui/floatwindow/switchcontrol/j;->a:Ljava/lang/Boolean;
if-eqz v1, :cond_c
.line 31
sget-object v0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/j;->a:Ljava/lang/Boolean;
invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z
move-result v0
.line 53
:cond_b
:goto_b
return v0
.line 33
:cond_c
new-instance v3, Landroid/content/Intent;
const-string v1, "android.media.action.STILL_IMAGE_CAMERA"
invoke-direct {v3, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
.line 37
invoke-static {}, Lcom/keniu/security/m;->d()Landroid/content/Context;
move-result-object v1
.line 38
invoke-virtual {v1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object v1
.line 39
if-nez v1, :cond_25
.line 40
invoke-static {}, Lcom/keniu/security/m;->g()Landroid/app/Application;
move-result-object v1
invoke-virtual {v1}, Landroid/app/Application;->getApplicationContext()Landroid/content/Context;
move-result-object v1
.line 42
:cond_25
if-eqz v1, :cond_b
.line 45
const/4 v2, 0x0
.line 47
:try_start_28
invoke-virtual {v1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object v1
.line 48
const/high16 v4, 0x10000
invoke-virtual {v1, v3, v4}, Landroid/content/pm/PackageManager;->queryIntentActivities(Landroid/content/Intent;I)Ljava/util/List;
:try_end_31
.catch Ljava/lang/Throwable; {:try_start_28 .. :try_end_31} :catch_46
move-result-object v1
.line 53
:goto_32
if-eqz v1, :cond_3b
invoke-interface {v1}, Ljava/util/List;->isEmpty()Z
move-result v1
if-nez v1, :cond_3b
const/4 v0, 0x1
:cond_3b
invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v0
sput-object v0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/j;->a:Ljava/lang/Boolean;
invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z
move-result v0
goto :goto_b
.line 50
:catch_46
move-exception v1
.line 51
invoke-virtual {v1}, Ljava/lang/Throwable;->printStackTrace()V
move-object v1, v2
goto :goto_32
.end method
# virtual methods
.method public a()I
.registers 2
.prologue
.line 58
sget-object v0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/j;->a:Ljava/lang/Boolean;
if-eqz v0, :cond_12
sget-object v0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/j;->a:Ljava/lang/Boolean;
invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z
move-result v0
if-eqz v0, :cond_12
const/4 v0, 0x1
:goto_d
iput v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/j;->q:I
.line 59
iget v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/j;->q:I
return v0
.line 58
:cond_12
const/4 v0, 0x0
goto :goto_d
.end method
.method public a(I)V
.registers 2
.prologue
.line 64
return-void
.end method
.method public b()V
.registers 1
.prologue
.line 75
invoke-virtual {p0}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/j;->onClick()V
.line 76
return-void
.end method
.method public c()I
.registers 2
.prologue
.line 80
const/4 v0, 0x5
return v0
.end method
.method public d()Ljava/lang/String;
.registers 2
.prologue
.line 90
iget-object v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/j;->l:Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;
iget-object v0, v0, Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;->camera:Ljava/lang/String;
return-object v0
.end method
.method public getNotificationResId(I)I
.registers 3
.prologue
.line 85
iget v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/j;->s:I
return v0
.end method
.method public onClick()V
.registers 3
.prologue
.line 68
new-instance v0, Landroid/content/Intent;
const-string v1, "android.media.action.STILL_IMAGE_CAMERA"
invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
.line 69
const/high16 v1, 0x10000000
invoke-virtual {v0, v1}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;
.line 70
invoke-static {}, Lcom/keniu/security/m;->d()Landroid/content/Context;
move-result-object v1
invoke-static {v1, v0}, Lcom/cleanmaster/hpsharelib/base/util/system/ComponentUtils;->startActivity(Landroid/content/Context;Landroid/content/Intent;)Z
.line 71
return-void
.end method