aa.smali

.class public Lcom/cleanmaster/ui/floatwindow/switchcontrol/aa;
.super Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;
.source "GalleryController.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 17
    const/4 v0, 0x0

    sput-object v0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/aa;->a:Ljava/lang/Boolean;

    return-void
.end method

.method public constructor <init>()V
    .registers 3

    .prologue
    .line 19
    invoke-direct {p0}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;-><init>()V

    .line 20
    const v0, 0x7f0a0a31

    iput v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/aa;->t:I

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

    iget v1, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/aa;->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/aa;->n:Ljava/lang/String;

    .line 22
    return-void
.end method

.method public static g()Z
    .registers 4

    .prologue
    const/4 v0, 0x0

    .line 35
    sget-object v1, Lcom/cleanmaster/ui/floatwindow/switchcontrol/aa;->a:Ljava/lang/Boolean;

    if-eqz v1, :cond_c

    .line 36
    sget-object v0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/aa;->a:Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    .line 52
    :cond_b
    :goto_b
    return v0

    .line 38
    :cond_c
    invoke-static {}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/aa;->n()Landroid/content/Intent;

    move-result-object v1

    .line 39
    if-eqz v1, :cond_b

    .line 42
    invoke-static {}, Lcom/keniu/security/m;->d()Landroid/content/Context;

    move-result-object v2

    .line 43
    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 44
    if-eqz v2, :cond_3d

    .line 46
    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 48
    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/aa;->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 49
    :catch_3c
    move-exception v1

    .line 52
    :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/aa;->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 3

    .prologue
    .line 57
    :try_start_0
    new-instance v0, Landroid/content/Intent;

    const-string v1, "android.intent.action.VIEW"

    sget-object v2, Landroid/provider/MediaStore$Images$Media;->EXTERNAL_CONTENT_URI:Landroid/net/Uri;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V
    :try_end_9
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_9} :catch_a

    .line 63
    :goto_9
    return-object v0

    .line 60
    :catch_a
    move-exception v0

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

    .line 63
    const/4 v0, 0x0

    goto :goto_9
.end method


# virtual methods
.method public a()I
    .registers 2

    .prologue
    .line 68
    sget-object v0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/aa;->a:Ljava/lang/Boolean;

    if-eqz v0, :cond_12

    sget-object v0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/aa;->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/aa;->q:I

    .line 69
    iget v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/aa;->q:I

    return v0

    .line 68
    :cond_12
    const/4 v0, 0x0

    goto :goto_d
.end method

.method public a(I)V
    .registers 2

    .prologue
    .line 74
    return-void
.end method

.method public b()V
    .registers 1

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

    .line 85
    return-void
.end method

.method public c()I
    .registers 2

    .prologue
    .line 26
    const/16 v0, 0x10

    return v0
.end method

.method public d()Ljava/lang/String;
    .registers 2

    .prologue
    .line 89
    iget-object v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/aa;->l:Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;

    iget-object v0, v0, Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;->picture:Ljava/lang/String;

    return-object v0
.end method

.method public getNotificationResId(I)I
    .registers 3

    .prologue
    .line 31
    iget v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/aa;->s:I

    return v0
.end method

.method public onClick()V
    .registers 3

    .prologue
    .line 78
    invoke-static {}, Lcom/keniu/security/m;->d()Landroid/content/Context;

    move-result-object v0

    .line 79
    invoke-virtual {v0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/aa;->n()Landroid/content/Intent;

    move-result-object v1

    .line 78
    invoke-static {v0, v1}, Lcom/cleanmaster/hpsharelib/base/util/system/ComponentUtils;->startActivityClearTask(Landroid/content/Context;Landroid/content/Intent;)Z

    .line 80
    return-void
.end method