442 lines
13 KiB
Smali
442 lines
13 KiB
Smali
.class public Lcom/moji/mjweather/setting/fragment/SettingPersonalityFunctionFragment;
|
|
.super Lcom/moji/mvpframe/MJPreferenceFragment;
|
|
.source "SettingPersonalityFunctionFragment.java"
|
|
|
|
# interfaces
|
|
.implements Landroid/preference/Preference$OnPreferenceClickListener;
|
|
|
|
|
|
# instance fields
|
|
.field private a:Lcom/moji/mjweather/settingpreference/pref/MJPreferenceCategory;
|
|
|
|
.field private b:Lcom/moji/mjweather/settingpreference/pref/MJPreferenceWithValue;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 20
|
|
invoke-direct {p0}, Lcom/moji/mvpframe/MJPreferenceFragment;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private a(Landroid/preference/Preference;)V
|
|
.locals 3
|
|
|
|
.line 99
|
|
invoke-virtual {p0}, Lcom/moji/mjweather/setting/fragment/SettingPersonalityFunctionFragment;->getActivity()Landroid/app/Activity;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1}, Landroid/preference/Preference;->getKey()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v1, "pref_key_"
|
|
|
|
const-string v2, ""
|
|
|
|
invoke-virtual {p1, v1, v2}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {v0, p1}, Lcom/moji/mjweather/NavigationManager;->b(Landroid/content/Context;Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method protected a()I
|
|
.locals 1
|
|
|
|
const v0, 0x7f110010
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method protected b()Ljava/lang/String;
|
|
.locals 1
|
|
.annotation build Landroid/support/annotation/NonNull;
|
|
.end annotation
|
|
|
|
const v0, 0x7f0e07de
|
|
|
|
.line 31
|
|
invoke-virtual {p0, v0}, Lcom/moji/mjweather/setting/fragment/SettingPersonalityFunctionFragment;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method protected d()V
|
|
.locals 1
|
|
|
|
.line 52
|
|
invoke-super {p0}, Lcom/moji/mvpframe/MJPreferenceFragment;->d()V
|
|
|
|
const-string v0, "setting_personality_function_skin_shop_setting"
|
|
|
|
.line 53
|
|
invoke-virtual {p0, v0}, Lcom/moji/mjweather/setting/fragment/SettingPersonalityFunctionFragment;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p0}, Landroid/preference/Preference;->setOnPreferenceClickListener(Landroid/preference/Preference$OnPreferenceClickListener;)V
|
|
|
|
const-string v0, "pref_key_setting_personality_widget"
|
|
|
|
.line 54
|
|
invoke-virtual {p0, v0}, Lcom/moji/mjweather/setting/fragment/SettingPersonalityFunctionFragment;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p0}, Landroid/preference/Preference;->setOnPreferenceClickListener(Landroid/preference/Preference$OnPreferenceClickListener;)V
|
|
|
|
const-string v0, "pref_key_setting_personality_assist"
|
|
|
|
.line 55
|
|
invoke-virtual {p0, v0}, Lcom/moji/mjweather/setting/fragment/SettingPersonalityFunctionFragment;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p0}, Landroid/preference/Preference;->setOnPreferenceClickListener(Landroid/preference/Preference$OnPreferenceClickListener;)V
|
|
|
|
const-string v0, "pref_key_setting_personality_weather_background"
|
|
|
|
.line 56
|
|
invoke-virtual {p0, v0}, Lcom/moji/mjweather/setting/fragment/SettingPersonalityFunctionFragment;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p0}, Landroid/preference/Preference;->setOnPreferenceClickListener(Landroid/preference/Preference$OnPreferenceClickListener;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected f()V
|
|
.locals 2
|
|
|
|
.line 36
|
|
invoke-super {p0}, Lcom/moji/mvpframe/MJPreferenceFragment;->f()V
|
|
|
|
const-string v0, "pref_key_setting_personality"
|
|
|
|
.line 37
|
|
invoke-virtual {p0, v0}, Lcom/moji/mjweather/setting/fragment/SettingPersonalityFunctionFragment;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/moji/mjweather/settingpreference/pref/MJPreferenceCategory;
|
|
|
|
iput-object v0, p0, Lcom/moji/mjweather/setting/fragment/SettingPersonalityFunctionFragment;->a:Lcom/moji/mjweather/settingpreference/pref/MJPreferenceCategory;
|
|
|
|
const-string v0, "pref_key_setting_personality_information"
|
|
|
|
.line 38
|
|
invoke-virtual {p0, v0}, Lcom/moji/mjweather/setting/fragment/SettingPersonalityFunctionFragment;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/moji/mjweather/settingpreference/pref/MJPreferenceWithValue;
|
|
|
|
iput-object v0, p0, Lcom/moji/mjweather/setting/fragment/SettingPersonalityFunctionFragment;->b:Lcom/moji/mjweather/settingpreference/pref/MJPreferenceWithValue;
|
|
|
|
.line 39
|
|
invoke-static {}, Lcom/moji/preferences/units/SettingCenter;->a()Lcom/moji/preferences/units/SettingCenter;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/moji/preferences/units/SettingCenter;->b()Lcom/moji/preferences/units/ELanguage;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/moji/preferences/units/ELanguage;->name()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "CN"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 40
|
|
iget-object v0, p0, Lcom/moji/mjweather/setting/fragment/SettingPersonalityFunctionFragment;->a:Lcom/moji/mjweather/settingpreference/pref/MJPreferenceCategory;
|
|
|
|
iget-object v1, p0, Lcom/moji/mjweather/setting/fragment/SettingPersonalityFunctionFragment;->b:Lcom/moji/mjweather/settingpreference/pref/MJPreferenceWithValue;
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/mjweather/settingpreference/pref/MJPreferenceCategory;->removePreference(Landroid/preference/Preference;)Z
|
|
|
|
.line 42
|
|
:cond_0
|
|
invoke-static {}, Lcom/moji/preferences/units/SettingCenter;->a()Lcom/moji/preferences/units/SettingCenter;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/moji/preferences/units/SettingCenter;->b()Lcom/moji/preferences/units/ELanguage;
|
|
|
|
move-result-object v0
|
|
|
|
.line 43
|
|
sget-object v1, Lcom/moji/preferences/units/ELanguage;->CN:Lcom/moji/preferences/units/ELanguage;
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/preferences/units/ELanguage;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
.line 44
|
|
iget-object v0, p0, Lcom/moji/mjweather/setting/fragment/SettingPersonalityFunctionFragment;->a:Lcom/moji/mjweather/settingpreference/pref/MJPreferenceCategory;
|
|
|
|
iget-object v1, p0, Lcom/moji/mjweather/setting/fragment/SettingPersonalityFunctionFragment;->b:Lcom/moji/mjweather/settingpreference/pref/MJPreferenceWithValue;
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/mjweather/settingpreference/pref/MJPreferenceCategory;->removePreference(Landroid/preference/Preference;)Z
|
|
|
|
goto :goto_0
|
|
|
|
.line 46
|
|
:cond_1
|
|
iget-object v0, p0, Lcom/moji/mjweather/setting/fragment/SettingPersonalityFunctionFragment;->b:Lcom/moji/mjweather/settingpreference/pref/MJPreferenceWithValue;
|
|
|
|
invoke-virtual {v0, p0}, Lcom/moji/mjweather/settingpreference/pref/MJPreferenceWithValue;->setOnPreferenceClickListener(Landroid/preference/Preference$OnPreferenceClickListener;)V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public onPreferenceClick(Landroid/preference/Preference;)Z
|
|
.locals 3
|
|
|
|
.line 62
|
|
invoke-virtual {p1}, Landroid/preference/Preference;->getKey()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/String;->hashCode()I
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
sparse-switch v1, :sswitch_data_0
|
|
|
|
goto :goto_0
|
|
|
|
:sswitch_0
|
|
const-string v1, "pref_key_setting_personality_information"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x2
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_1
|
|
const-string v1, "pref_key_setting_personality_widget"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_2
|
|
const-string v1, "pref_key_setting_personality_assist"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x3
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_3
|
|
const-string v1, "pref_key_setting_personality_skin_shop"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x4
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_4
|
|
const-string v1, "pref_key_setting_personality_weather_background"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x5
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_5
|
|
const-string v1, "setting_personality_function_skin_shop_setting"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
:goto_0
|
|
const/4 v0, -0x1
|
|
|
|
:goto_1
|
|
packed-switch v0, :pswitch_data_0
|
|
|
|
goto :goto_2
|
|
|
|
.line 91
|
|
:pswitch_0
|
|
invoke-direct {p0, p1}, Lcom/moji/mjweather/setting/fragment/SettingPersonalityFunctionFragment;->a(Landroid/preference/Preference;)V
|
|
|
|
.line 92
|
|
invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;
|
|
|
|
move-result-object p1
|
|
|
|
sget-object v0, Lcom/moji/statistics/EVENT_TAG;->SET_FUNCTION_DETAIL_CLICK:Lcom/moji/statistics/EVENT_TAG;
|
|
|
|
const-string v1, "5"
|
|
|
|
invoke-virtual {p1, v0, v1}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;)Lcom/moji/statistics/EventManager;
|
|
|
|
goto :goto_2
|
|
|
|
.line 86
|
|
:pswitch_1
|
|
invoke-direct {p0, p1}, Lcom/moji/mjweather/setting/fragment/SettingPersonalityFunctionFragment;->a(Landroid/preference/Preference;)V
|
|
|
|
.line 87
|
|
invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;
|
|
|
|
move-result-object p1
|
|
|
|
sget-object v0, Lcom/moji/statistics/EVENT_TAG;->SET_FUNCTION_DETAIL_CLICK:Lcom/moji/statistics/EVENT_TAG;
|
|
|
|
const-string v1, "4"
|
|
|
|
invoke-virtual {p1, v0, v1}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;)Lcom/moji/statistics/EventManager;
|
|
|
|
goto :goto_2
|
|
|
|
.line 81
|
|
:pswitch_2
|
|
invoke-direct {p0, p1}, Lcom/moji/mjweather/setting/fragment/SettingPersonalityFunctionFragment;->a(Landroid/preference/Preference;)V
|
|
|
|
.line 82
|
|
invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;
|
|
|
|
move-result-object p1
|
|
|
|
sget-object v0, Lcom/moji/statistics/EVENT_TAG;->SET_FUNCTION_DETAIL_CLICK:Lcom/moji/statistics/EVENT_TAG;
|
|
|
|
const-string v1, "3"
|
|
|
|
invoke-virtual {p1, v0, v1}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;)Lcom/moji/statistics/EventManager;
|
|
|
|
goto :goto_2
|
|
|
|
.line 76
|
|
:pswitch_3
|
|
invoke-direct {p0, p1}, Lcom/moji/mjweather/setting/fragment/SettingPersonalityFunctionFragment;->a(Landroid/preference/Preference;)V
|
|
|
|
.line 77
|
|
invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;
|
|
|
|
move-result-object p1
|
|
|
|
sget-object v0, Lcom/moji/statistics/EVENT_TAG;->SET_FUNCTION_DETAIL_CLICK:Lcom/moji/statistics/EVENT_TAG;
|
|
|
|
const-string v1, "2"
|
|
|
|
invoke-virtual {p1, v0, v1}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;)Lcom/moji/statistics/EventManager;
|
|
|
|
goto :goto_2
|
|
|
|
.line 71
|
|
:pswitch_4
|
|
invoke-direct {p0, p1}, Lcom/moji/mjweather/setting/fragment/SettingPersonalityFunctionFragment;->a(Landroid/preference/Preference;)V
|
|
|
|
.line 72
|
|
invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;
|
|
|
|
move-result-object p1
|
|
|
|
sget-object v0, Lcom/moji/statistics/EVENT_TAG;->SET_FUNCTION_DETAIL_CLICK:Lcom/moji/statistics/EVENT_TAG;
|
|
|
|
const-string v1, "1"
|
|
|
|
invoke-virtual {p1, v0, v1}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;)Lcom/moji/statistics/EventManager;
|
|
|
|
goto :goto_2
|
|
|
|
.line 66
|
|
:pswitch_5
|
|
invoke-direct {p0, p1}, Lcom/moji/mjweather/setting/fragment/SettingPersonalityFunctionFragment;->a(Landroid/preference/Preference;)V
|
|
|
|
.line 67
|
|
invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;
|
|
|
|
move-result-object p1
|
|
|
|
sget-object v0, Lcom/moji/statistics/EVENT_TAG;->SET_FUNCTION_DETAIL_CLICK:Lcom/moji/statistics/EVENT_TAG;
|
|
|
|
const-string v1, "1"
|
|
|
|
invoke-virtual {p1, v0, v1}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;)Lcom/moji/statistics/EventManager;
|
|
|
|
:goto_2
|
|
return v2
|
|
|
|
:sswitch_data_0
|
|
.sparse-switch
|
|
-0x4da205de -> :sswitch_5
|
|
-0x35e016eb -> :sswitch_4
|
|
-0x31dc65c4 -> :sswitch_3
|
|
0x6bbf325 -> :sswitch_2
|
|
0x2bb2cb00 -> :sswitch_1
|
|
0x6d2019f0 -> :sswitch_0
|
|
.end sparse-switch
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x0
|
|
:pswitch_5
|
|
:pswitch_4
|
|
:pswitch_3
|
|
:pswitch_2
|
|
:pswitch_1
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|