267 lines
6.4 KiB
Smali
267 lines
6.4 KiB
Smali
.class public Lcom/moji/notify/NotifyPreference;
|
|
.super Lcom/moji/tool/preferences/core/BasePreferences;
|
|
.source "NotifyPreference.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/moji/notify/NotifyPreference$KeyConstant;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field private static final a:Ljava/lang/Object;
|
|
|
|
.field private static b:Lcom/moji/notify/NotifyPreference;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
.line 14
|
|
new-instance v0, Ljava/lang/Object;
|
|
|
|
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
|
|
|
|
sput-object v0, Lcom/moji/notify/NotifyPreference;->a:Ljava/lang/Object;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 15
|
|
sput-object v0, Lcom/moji/notify/NotifyPreference;->b:Lcom/moji/notify/NotifyPreference;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private constructor <init>(Landroid/content/Context;)V
|
|
.locals 0
|
|
|
|
.line 17
|
|
invoke-direct {p0, p1}, Lcom/moji/tool/preferences/core/BasePreferences;-><init>(Landroid/content/Context;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static a(Landroid/content/Context;)Lcom/moji/notify/NotifyPreference;
|
|
.locals 2
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
.line 31
|
|
invoke-static {}, Lcom/moji/tool/AppDelegate;->a()Landroid/content/Context;
|
|
|
|
move-result-object p0
|
|
|
|
:cond_0
|
|
if-nez p0, :cond_1
|
|
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
|
|
.line 36
|
|
:cond_1
|
|
sget-object v0, Lcom/moji/notify/NotifyPreference;->a:Ljava/lang/Object;
|
|
|
|
monitor-enter v0
|
|
|
|
.line 37
|
|
:try_start_0
|
|
sget-object v1, Lcom/moji/notify/NotifyPreference;->b:Lcom/moji/notify/NotifyPreference;
|
|
|
|
if-nez v1, :cond_2
|
|
|
|
.line 38
|
|
new-instance v1, Lcom/moji/notify/NotifyPreference;
|
|
|
|
invoke-direct {v1, p0}, Lcom/moji/notify/NotifyPreference;-><init>(Landroid/content/Context;)V
|
|
|
|
sput-object v1, Lcom/moji/notify/NotifyPreference;->b:Lcom/moji/notify/NotifyPreference;
|
|
|
|
.line 40
|
|
:cond_2
|
|
sget-object p0, Lcom/moji/notify/NotifyPreference;->b:Lcom/moji/notify/NotifyPreference;
|
|
|
|
monitor-exit v0
|
|
|
|
return-object p0
|
|
|
|
:catchall_0
|
|
move-exception p0
|
|
|
|
.line 41
|
|
monitor-exit v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a()Ljava/lang/String;
|
|
.locals 1
|
|
|
|
.line 21
|
|
sget-object v0, Lcom/moji/preferences/PreferenceNameEnum;->NOTIFY_INFO:Lcom/moji/preferences/PreferenceNameEnum;
|
|
|
|
invoke-virtual {v0}, Lcom/moji/preferences/PreferenceNameEnum;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public a(I)V
|
|
.locals 1
|
|
|
|
.line 68
|
|
sget-object v0, Lcom/moji/notify/NotifyPreference$KeyConstant;->NOTIFY_TEXT_COLOR:Lcom/moji/notify/NotifyPreference$KeyConstant;
|
|
|
|
invoke-virtual {p0, v0, p1}, Lcom/moji/notify/NotifyPreference;->b(Lcom/moji/tool/preferences/core/IPreferKey;I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Z)V
|
|
.locals 1
|
|
|
|
.line 52
|
|
sget-object v0, Lcom/moji/notify/NotifyPreference$KeyConstant;->NOTIFY_WEATHER_SWITCH:Lcom/moji/notify/NotifyPreference$KeyConstant;
|
|
|
|
invoke-static {p1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, v0, p1}, Lcom/moji/notify/NotifyPreference;->a(Lcom/moji/tool/preferences/core/IPreferKey;Ljava/lang/Boolean;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public b()I
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public b(I)V
|
|
.locals 1
|
|
|
|
.line 76
|
|
sget-object v0, Lcom/moji/notify/NotifyPreference$KeyConstant;->NOTIFY_BACK_COLOR:Lcom/moji/notify/NotifyPreference$KeyConstant;
|
|
|
|
invoke-virtual {p0, v0, p1}, Lcom/moji/notify/NotifyPreference;->b(Lcom/moji/tool/preferences/core/IPreferKey;I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public b(Z)V
|
|
.locals 1
|
|
|
|
.line 64
|
|
sget-object v0, Lcom/moji/notify/NotifyPreference$KeyConstant;->EXTEND_NOTIFICATION_ENABLE:Lcom/moji/notify/NotifyPreference$KeyConstant;
|
|
|
|
invoke-static {p1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, v0, p1}, Lcom/moji/notify/NotifyPreference;->a(Lcom/moji/tool/preferences/core/IPreferKey;Ljava/lang/Boolean;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public c(Z)V
|
|
.locals 1
|
|
|
|
.line 88
|
|
sget-object v0, Lcom/moji/notify/NotifyPreference$KeyConstant;->NEED_TRANSFER:Lcom/moji/notify/NotifyPreference$KeyConstant;
|
|
|
|
invoke-static {p1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, v0, p1}, Lcom/moji/notify/NotifyPreference;->a(Lcom/moji/tool/preferences/core/IPreferKey;Ljava/lang/Boolean;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public c()Z
|
|
.locals 2
|
|
|
|
.line 56
|
|
sget-object v0, Lcom/moji/notify/NotifyPreference$KeyConstant;->NOTIFY_WEATHER_SWITCH:Lcom/moji/notify/NotifyPreference$KeyConstant;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {p0, v0, v1}, Lcom/moji/notify/NotifyPreference;->a(Lcom/moji/tool/preferences/core/IPreferKey;Z)Z
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public d()Z
|
|
.locals 2
|
|
|
|
.line 60
|
|
sget-object v0, Lcom/moji/notify/NotifyPreference$KeyConstant;->EXTEND_NOTIFICATION_ENABLE:Lcom/moji/notify/NotifyPreference$KeyConstant;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {p0, v0, v1}, Lcom/moji/notify/NotifyPreference;->a(Lcom/moji/tool/preferences/core/IPreferKey;Z)Z
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public e()I
|
|
.locals 2
|
|
|
|
.line 72
|
|
sget-object v0, Lcom/moji/notify/NotifyPreference$KeyConstant;->NOTIFY_TEXT_COLOR:Lcom/moji/notify/NotifyPreference$KeyConstant;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {p0, v0, v1}, Lcom/moji/notify/NotifyPreference;->a(Lcom/moji/tool/preferences/core/IPreferKey;I)I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public f()I
|
|
.locals 2
|
|
|
|
.line 80
|
|
sget-object v0, Lcom/moji/notify/NotifyPreference$KeyConstant;->NOTIFY_BACK_COLOR:Lcom/moji/notify/NotifyPreference$KeyConstant;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {p0, v0, v1}, Lcom/moji/notify/NotifyPreference;->a(Lcom/moji/tool/preferences/core/IPreferKey;I)I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public g()Z
|
|
.locals 2
|
|
|
|
.line 84
|
|
sget-object v0, Lcom/moji/notify/NotifyPreference$KeyConstant;->NEED_TRANSFER:Lcom/moji/notify/NotifyPreference$KeyConstant;
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-virtual {p0, v0, v1}, Lcom/moji/notify/NotifyPreference;->a(Lcom/moji/tool/preferences/core/IPreferKey;Z)Z
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|