w.smali
.class public Lcom/cleanmaster/ui/floatwindow/switchcontrol/w;
.super Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;
.source "FeedBackController.java"
# direct methods
.method public constructor <init>()V
.registers 3
.prologue
.line 12
invoke-direct {p0}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;-><init>()V
.line 13
const v0, 0x7f0a0a2c
iput v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/w;->t:I
.line 14
iget-object v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/w;->c:Landroid/content/Context;
iget v1, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/w;->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/w;->n:Ljava/lang/String;
.line 15
return-void
.end method
# virtual methods
.method public a()I
.registers 4
.prologue
.line 20
:try_start_0
iget-object v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/w;->c:Landroid/content/Context;
invoke-virtual {v0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
move-result-object v1
.line 21
const-string/jumbo v0, "sound_effects_enabled"
.line 22
invoke-static {v1, v0}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;)I
move-result v0
.line 23
const/4 v2, 0x1
if-ne v0, v2, :cond_11
.line 31
:goto_10
return v0
.line 26
:cond_11
const-string v0, "haptic_feedback_enabled"
.line 27
invoke-static {v1, v0}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;)I
:try_end_16
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_16} :catch_18
move-result v0
goto :goto_10
.line 29
:catch_18
move-exception v0
.line 31
const/4 v0, 0x0
goto :goto_10
.end method
.method public a(I)V
.registers 2
.prologue
.line 37
return-void
.end method
.method public b()V
.registers 2
.prologue
.line 60
const-string v0, "android.settings.SOUND_SETTINGS"
invoke-virtual {p0, v0}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/w;->a(Ljava/lang/String;)Z
.line 61
return-void
.end method
.method public c()I
.registers 2
.prologue
.line 65
const/16 v0, 0x1a
return v0
.end method
.method public d()Ljava/lang/String;
.registers 2
.prologue
.line 70
iget-object v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/w;->l:Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;
iget-object v0, v0, Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;->feedBack:Ljava/lang/String;
return-object v0
.end method
.method public onClick()V
.registers 4
.prologue
.line 42
const/4 v0, 0x0
:try_start_1
iput-boolean v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/w;->k:Z
.line 43
invoke-virtual {p0}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/w;->a()I
move-result v0
invoke-virtual {p0, v0}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/w;->d(I)I
move-result v0
.line 44
iget-object v1, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/w;->c:Landroid/content/Context;
invoke-virtual {v1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
move-result-object v1
.line 46
const-string/jumbo v2, "sound_effects_enabled"
.line 47
invoke-static {v1, v2, v0}, Landroid/provider/Settings$System;->putInt(Landroid/content/ContentResolver;Ljava/lang/String;I)Z
.line 49
const-string v2, "haptic_feedback_enabled"
.line 50
invoke-static {v1, v2, v0}, Landroid/provider/Settings$System;->putInt(Landroid/content/ContentResolver;Ljava/lang/String;I)Z
.line 52
invoke-virtual {p0}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/w;->k()V
:try_end_1f
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1f} :catch_20
.line 56
:goto_1f
return-void
.line 53
:catch_20
move-exception v0
.line 54
invoke-virtual {p0, v0}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/w;->a(Ljava/lang/Exception;)V
goto :goto_1f
.end method