q.smali
.class public Lcom/cleanmaster/ui/floatwindow/switchcontrol/q;
.super Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;
.source "ControllerMusic.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/q;->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, 0x7f0a0f77
iput v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/q;->t:I
.line 25
iget-object v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/q;->c:Landroid/content/Context;
iget v1, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/q;->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/q;->n:Ljava/lang/String;
.line 26
invoke-static {}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/q;->g()Z
.line 27
return-void
.end method
.method public static g()Z
.registers 4
.prologue
const/4 v0, 0x0
.line 65
sget-object v1, Lcom/cleanmaster/ui/floatwindow/switchcontrol/q;->a:Ljava/lang/Boolean;
if-eqz v1, :cond_c
.line 66
sget-object v0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/q;->a:Ljava/lang/Boolean;
invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z
move-result v0
.line 82
:cond_b
:goto_b
return v0
.line 68
:cond_c
invoke-static {}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/q;->n()Landroid/content/Intent;
move-result-object v1
.line 69
if-eqz v1, :cond_b
.line 72
invoke-static {}, Lcom/keniu/security/l;->d()Landroid/content/Context;
move-result-object v2
.line 73
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 74
if-eqz v2, :cond_3d
.line 76
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 78
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/q;->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 79
:catch_3c
move-exception v1
.line 82
: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/q;->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 58
new-instance v0, Landroid/content/Intent;
const-string v1, "android.intent.action.MUSIC_PLAYER"
invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
.line 59
const/high16 v1, 0x14000000
invoke-virtual {v0, v1}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;
.line 61
return-object v0
.end method
# virtual methods
.method public a()I
.registers 2
.prologue
.line 31
const/4 v0, 0x1
return v0
.end method
.method public a(I)V
.registers 2
.prologue
.line 37
return-void
.end method
.method public b()V
.registers 4
.annotation build Landroid/annotation/TargetApi;
value = 0x9
.end annotation
.prologue
.line 47
invoke-static {}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/q;->n()Landroid/content/Intent;
move-result-object v0
.line 48
invoke-static {}, Lcom/cleanmaster/hpsharelib/base/util/system/PhoneModelUtils;->isSingleMiuiV6()Z
move-result v1
if-eqz v1, :cond_1b
.line 49
new-instance v0, Landroid/content/Intent;
invoke-direct {v0}, Landroid/content/Intent;-><init>()V
.line 50
const/high16 v1, 0x10000000
invoke-virtual {v0, v1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;
.line 51
const-string v1, "com.miui.player"
const-string v2, "com.miui.player.ui.MusicBrowserActivity"
invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
.line 54
:cond_1b
invoke-static {}, Lcom/keniu/security/l;->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 55
return-void
.end method
.method public c()I
.registers 2
.prologue
.line 87
const/16 v0, 0x20
return v0
.end method
.method public d()Ljava/lang/String;
.registers 2
.prologue
.line 97
iget-object v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/q;->l:Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;
iget-object v0, v0, Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;->music:Ljava/lang/String;
return-object v0
.end method
.method public getNotificationResId(I)I
.registers 3
.prologue
.line 92
iget v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/q;->s:I
return v0
.end method
.method public onClick()V
.registers 1
.prologue
.line 41
invoke-virtual {p0}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/q;->b()V
.line 42
return-void
.end method