af.smali
.class public Lcom/cleanmaster/ui/floatwindow/switchcontrol/af;
.super Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;
.source "RotateController.java"
# interfaces
.implements Lcom/cm/plugincluster/nagativescreen/interfaces/INotificationController;
# direct methods
.method public constructor <init>()V
.registers 3
.prologue
.line 13
invoke-direct {p0}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;-><init>()V
.line 14
const v0, 0x7f0a0a01
iput v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/af;->t:I
.line 15
iget-object v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/af;->c:Landroid/content/Context;
iget v1, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/af;->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/af;->n:Ljava/lang/String;
.line 16
const/4 v0, 0x0
iput-boolean v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/af;->f:Z
.line 17
const/4 v0, 0x1
iput-boolean v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/af;->e:Z
.line 18
return-void
.end method
# virtual methods
.method public a()I
.registers 3
.prologue
.line 23
:try_start_0
iget-object v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/af;->c:Landroid/content/Context;
invoke-virtual {v0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
move-result-object v0
.line 24
const-string v1, "accelerometer_rotation"
.line 25
invoke-static {v0, v1}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;)I
:try_end_b
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_b} :catch_d
move-result v0
.line 28
:goto_c
return v0
.line 26
:catch_d
move-exception v0
.line 28
const/4 v0, 0x0
goto :goto_c
.end method
.method public a(I)V
.registers 2
.prologue
.line 34
return-void
.end method
.method public b(I)Ljava/lang/String;
.registers 3
.prologue
.line 66
const-string v0, ""
.line 67
packed-switch p1, :pswitch_data_2e
.line 73
invoke-virtual {p0}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/af;->a()I
move-result v0
if-nez v0, :cond_26
iget-object v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/af;->l:Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;
invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;->getBlackGrayColor()Ljava/lang/String;
move-result-object v0
.line 76
:goto_11
return-object v0
.line 69
:pswitch_12
invoke-virtual {p0}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/af;->a()I
move-result v0
if-nez v0, :cond_1f
iget-object v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/af;->l:Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;
invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;->getGrayColor()Ljava/lang/String;
move-result-object v0
goto :goto_11
:cond_1f
iget-object v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/af;->l:Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;
invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;->getBlueColor()Ljava/lang/String;
move-result-object v0
goto :goto_11
.line 73
:cond_26
iget-object v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/af;->l:Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;
invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;->getWhiteColor()Ljava/lang/String;
move-result-object v0
goto :goto_11
.line 67
nop
:pswitch_data_2e
.packed-switch 0x0
:pswitch_12
.end packed-switch
.end method
.method public b()V
.registers 2
.prologue
.line 51
const-string v0, "android.settings.DISPLAY_SETTINGS"
invoke-virtual {p0, v0}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/af;->a(Ljava/lang/String;)Z
.line 52
return-void
.end method
.method public c()I
.registers 2
.prologue
.line 56
const/16 v0, 0x19
return v0
.end method
.method public d()Ljava/lang/String;
.registers 2
.prologue
.line 81
iget-object v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/af;->l:Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;
iget-object v0, v0, Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;->turnScreen:Ljava/lang/String;
return-object v0
.end method
.method public getNotificationResId(I)I
.registers 3
.prologue
.line 61
iget v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/af;->s:I
return v0
.end method
.method public onClick()V
.registers 4
.prologue
.line 39
const/4 v0, 0x0
:try_start_1
iput-boolean v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/af;->k:Z
.line 40
iget-object v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/af;->c:Landroid/content/Context;
invoke-virtual {v0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
move-result-object v0
.line 41
const-string v1, "accelerometer_rotation"
.line 42
invoke-virtual {p0}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/af;->a()I
move-result v2
invoke-virtual {p0, v2}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/af;->d(I)I
move-result v2
invoke-static {v0, v1, v2}, Landroid/provider/Settings$System;->putInt(Landroid/content/ContentResolver;Ljava/lang/String;I)Z
.line 43
invoke-virtual {p0}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/af;->k()V
:try_end_19
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_19} :catch_1a
.line 47
:goto_19
return-void
.line 44
:catch_1a
move-exception v0
.line 45
invoke-virtual {p0, v0}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/af;->a(Ljava/lang/Exception;)V
goto :goto_19
.end method