a.smali
.class public Lcom/cleanmaster/ui/floatwindow/switchcontrol/a;
.super Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;
.source "AlarmController.java"
# interfaces
.implements Lcom/cm/plugincluster/nagativescreen/interfaces/INotificationController;
# direct methods
.method public constructor <init>()V
.registers 3
.prologue
.line 16
invoke-direct {p0}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;-><init>()V
.line 17
const v0, 0x7f0a1090
iput v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/a;->t:I
.line 18
iget-object v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/a;->c:Landroid/content/Context;
iget v1, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/a;->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/a;->n:Ljava/lang/String;
.line 19
return-void
.end method
# virtual methods
.method public a()I
.registers 2
.prologue
.line 23
const/4 v0, 0x1
return v0
.end method
.method public a(I)V
.registers 2
.prologue
.line 29
return-void
.end method
.method public b()V
.registers 4
.annotation build Landroid/annotation/TargetApi;
value = 0x9
.end annotation
.prologue
.line 44
new-instance v0, Landroid/content/Intent;
const-string v1, "android.intent.action.SET_ALARM"
invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
.line 46
const/high16 v1, 0x10000000
:try_start_9
invoke-virtual {v0, v1}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;
.line 48
invoke-static {}, Lcom/keniu/security/m;->d()Landroid/content/Context;
move-result-object v1
.line 47
invoke-static {v1, v0}, Lcom/cleanmaster/base/a;->b(Landroid/content/Context;Landroid/content/Intent;)I
move-result v1
const/4 v2, 0x1
if-ne v1, v2, :cond_1f
.line 49
invoke-static {}, Lcom/keniu/security/m;->d()Landroid/content/Context;
move-result-object v1
invoke-static {v1, v0}, Lcom/cleanmaster/base/a;->f(Landroid/content/Context;Landroid/content/Intent;)V
.line 66
:goto_1e
return-void
.line 53
:cond_1f
invoke-static {}, Lcom/keniu/security/m;->d()Landroid/content/Context;
move-result-object v1
.line 52
invoke-static {v1, v0}, Lcom/cleanmaster/base/a;->c(Landroid/content/Context;Landroid/content/Intent;)Ljava/lang/String;
move-result-object v1
.line 54
if-eqz v1, :cond_3d
.line 55
invoke-virtual {v0, v1}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;
.line 57
invoke-static {}, Lcom/keniu/security/m;->d()Landroid/content/Context;
move-result-object v1
.line 56
invoke-static {v1, v0}, Lcom/cleanmaster/base/a;->f(Landroid/content/Context;Landroid/content/Intent;)V
:try_end_33
.catch Ljava/lang/Exception; {:try_start_9 .. :try_end_33} :catch_34
goto :goto_1e
.line 62
:catch_34
move-exception v1
.line 63
invoke-static {}, Lcom/keniu/security/m;->d()Landroid/content/Context;
move-result-object v1
invoke-static {v1, v0}, Lcom/cleanmaster/base/a;->f(Landroid/content/Context;Landroid/content/Intent;)V
goto :goto_1e
.line 59
:cond_3d
:try_start_3d
invoke-static {}, Lcom/keniu/security/m;->d()Landroid/content/Context;
move-result-object v1
invoke-virtual {v1, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
:try_end_44
.catch Ljava/lang/Exception; {:try_start_3d .. :try_end_44} :catch_34
goto :goto_1e
.end method
.method public c()I
.registers 2
.prologue
.line 70
const/16 v0, 0xa
return v0
.end method
.method public d()Ljava/lang/String;
.registers 2
.prologue
.line 80
iget-object v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/a;->l:Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;
iget-object v0, v0, Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;->alarmclock:Ljava/lang/String;
return-object v0
.end method
.method public getNotificationResId(I)I
.registers 3
.prologue
.line 75
iget v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/a;->s:I
return v0
.end method
.method public onClick()V
.registers 1
.prologue
.line 33
invoke-virtual {p0}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/a;->b()V
.line 34
return-void
.end method