.class public Lcom/moji/mjweather/setting/fragment/SettingPersonalityWidgetFragment;
.super Lcom/moji/mvpframe/MJPreferenceFragment;
.source "SettingPersonalityWidgetFragment.java"

# interfaces
.implements Landroid/content/SharedPreferences$OnSharedPreferenceChangeListener;
.implements Landroid/preference/Preference$OnPreferenceClickListener;


# instance fields
.field a:Lcom/moji/mjweather/settingpreference/pref/MJPreferenceWithSwitchButton;

.field b:Lcom/moji/mjweather/settingpreference/pref/MJPreferenceWithSwitchButton;

.field c:Lcom/moji/mjweather/settingpreference/pref/MJPreferenceWithValue;

.field d:Lcom/moji/mjweather/settingpreference/pref/MJPreferenceWithValue;

.field e:Lcom/moji/notify/NotifyPreference;


# direct methods
.method public constructor <init>()V
    .locals 0

    .line 22
    invoke-direct {p0}, Lcom/moji/mvpframe/MJPreferenceFragment;-><init>()V

    return-void
.end method

.method private a(Landroid/content/SharedPreferences;)V
    .locals 5

    const-string v0, "setting_personality_widget_font_color"

    const/4 v1, 0x0

    .line 123
    invoke-interface {p1, v0, v1}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result v0

    const-string v2, "setting_personality_widget_background_color"

    .line 124
    invoke-interface {p1, v2, v1}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result p1

    .line 125
    iget-object v2, p0, Lcom/moji/mjweather/setting/fragment/SettingPersonalityWidgetFragment;->e:Lcom/moji/notify/NotifyPreference;

    if-eqz v2, :cond_0

    .line 126
    iget-object v2, p0, Lcom/moji/mjweather/setting/fragment/SettingPersonalityWidgetFragment;->e:Lcom/moji/notify/NotifyPreference;

    invoke-virtual {v2, v0}, Lcom/moji/notify/NotifyPreference;->a(I)V

    .line 127
    iget-object v2, p0, Lcom/moji/mjweather/setting/fragment/SettingPersonalityWidgetFragment;->e:Lcom/moji/notify/NotifyPreference;

    invoke-virtual {v2, p1}, Lcom/moji/notify/NotifyPreference;->b(I)V

    .line 129
    :cond_0
    invoke-virtual {p0}, Lcom/moji/mjweather/setting/fragment/SettingPersonalityWidgetFragment;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f03001b

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getStringArray(I)[Ljava/lang/String;

    move-result-object v2

    .line 130
    invoke-virtual {p0}, Lcom/moji/mjweather/setting/fragment/SettingPersonalityWidgetFragment;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    const v4, 0x7f03001a

    invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getStringArray(I)[Ljava/lang/String;

    move-result-object v3

    if-ltz v0, :cond_1

    .line 131
    array-length v4, v2

    if-lt v0, v4, :cond_2

    :cond_1
    const/4 v0, 0x0

    :cond_2
    if-ltz p1, :cond_3

    .line 134
    array-length v4, v3

    if-lt p1, v4, :cond_4

    :cond_3
    const/4 p1, 0x0

    .line 137
    :cond_4
    iget-object v1, p0, Lcom/moji/mjweather/setting/fragment/SettingPersonalityWidgetFragment;->c:Lcom/moji/mjweather/settingpreference/pref/MJPreferenceWithValue;

    aget-object v0, v2, v0

    invoke-virtual {v1, v0}, Lcom/moji/mjweather/settingpreference/pref/MJPreferenceWithValue;->a(Ljava/lang/CharSequence;)V

    .line 138
    iget-object v0, p0, Lcom/moji/mjweather/setting/fragment/SettingPersonalityWidgetFragment;->d:Lcom/moji/mjweather/settingpreference/pref/MJPreferenceWithValue;

    aget-object p1, v3, p1

    invoke-virtual {v0, p1}, Lcom/moji/mjweather/settingpreference/pref/MJPreferenceWithValue;->a(Ljava/lang/CharSequence;)V

    return-void
.end method

.method private c()V
    .locals 4

    .line 142
    new-instance v0, Lcom/moji/dialog/control/MJDialogListControl$Builder;

    invoke-virtual {p0}, Lcom/moji/mjweather/setting/fragment/SettingPersonalityWidgetFragment;->getActivity()Landroid/app/Activity;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/moji/dialog/control/MJDialogListControl$Builder;-><init>(Landroid/content/Context;)V

    new-instance v1, Lcom/moji/mjweather/setting/fragment/SettingPersonalityWidgetFragment$1;

    invoke-direct {v1, p0}, Lcom/moji/mjweather/setting/fragment/SettingPersonalityWidgetFragment$1;-><init>(Lcom/moji/mjweather/setting/fragment/SettingPersonalityWidgetFragment;)V

    const v2, 0x7f03001b

    .line 143
    invoke-virtual {v0, v2, v1}, Lcom/moji/dialog/control/MJDialogListControl$Builder;->a(ILandroid/content/DialogInterface$OnClickListener;)Lcom/moji/dialog/control/MJDialogListControl$Builder;

    move-result-object v0

    .line 150
    invoke-virtual {p0}, Lcom/moji/mjweather/setting/fragment/SettingPersonalityWidgetFragment;->getPreferenceScreen()Landroid/preference/PreferenceScreen;

    move-result-object v1

    invoke-virtual {v1}, Landroid/preference/PreferenceScreen;->getSharedPreferences()Landroid/content/SharedPreferences;

    move-result-object v1

    const-string v2, "setting_personality_widget_font_color"

    const/4 v3, 0x0

    invoke-interface {v1, v2, v3}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/moji/dialog/control/MJDialogListControl$Builder;->g(I)Lcom/moji/dialog/control/MJDialogListControl$Builder;

    move-result-object v0

    const v1, 0x7f0e05e7

    .line 151
    invoke-virtual {v0, v1}, Lcom/moji/dialog/control/MJDialogListControl$Builder;->a(I)Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;

    move-result-object v0

    const v1, 0x7f0e0145

    .line 152
    invoke-virtual {v0, v1}, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;->e(I)Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;

    move-result-object v0

    .line 153
    invoke-virtual {v0, v3}, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;->c(Z)Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;

    move-result-object v0

    .line 154
    invoke-virtual {v0}, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;->a()Lcom/moji/dialog/MJDialog;

    move-result-object v0

    .line 155
    invoke-virtual {v0}, Lcom/moji/dialog/MJDialog;->show()V

    return-void
.end method

.method private e()V
    .locals 4

    .line 159
    new-instance v0, Lcom/moji/dialog/control/MJDialogListControl$Builder;

    invoke-virtual {p0}, Lcom/moji/mjweather/setting/fragment/SettingPersonalityWidgetFragment;->getActivity()Landroid/app/Activity;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/moji/dialog/control/MJDialogListControl$Builder;-><init>(Landroid/content/Context;)V

    new-instance v1, Lcom/moji/mjweather/setting/fragment/SettingPersonalityWidgetFragment$2;

    invoke-direct {v1, p0}, Lcom/moji/mjweather/setting/fragment/SettingPersonalityWidgetFragment$2;-><init>(Lcom/moji/mjweather/setting/fragment/SettingPersonalityWidgetFragment;)V

    const v2, 0x7f03001a

    .line 160
    invoke-virtual {v0, v2, v1}, Lcom/moji/dialog/control/MJDialogListControl$Builder;->a(ILandroid/content/DialogInterface$OnClickListener;)Lcom/moji/dialog/control/MJDialogListControl$Builder;

    move-result-object v0

    .line 167
    invoke-virtual {p0}, Lcom/moji/mjweather/setting/fragment/SettingPersonalityWidgetFragment;->getPreferenceScreen()Landroid/preference/PreferenceScreen;

    move-result-object v1

    invoke-virtual {v1}, Landroid/preference/PreferenceScreen;->getSharedPreferences()Landroid/content/SharedPreferences;

    move-result-object v1

    const-string v2, "setting_personality_widget_background_color"

    const/4 v3, 0x0

    invoke-interface {v1, v2, v3}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/moji/dialog/control/MJDialogListControl$Builder;->g(I)Lcom/moji/dialog/control/MJDialogListControl$Builder;

    move-result-object v0

    const v1, 0x7f0e05e3

    .line 168
    invoke-virtual {v0, v1}, Lcom/moji/dialog/control/MJDialogListControl$Builder;->a(I)Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;

    move-result-object v0

    const v1, 0x7f0e0145

    .line 169
    invoke-virtual {v0, v1}, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;->e(I)Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;

    move-result-object v0

    .line 170
    invoke-virtual {v0, v3}, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;->c(Z)Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;

    move-result-object v0

    .line 171
    invoke-virtual {v0}, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;->a()Lcom/moji/dialog/MJDialog;

    move-result-object v0

    .line 172
    invoke-virtual {v0}, Lcom/moji/dialog/MJDialog;->show()V

    return-void
.end method


# virtual methods
.method protected a()I
    .locals 1

    const v0, 0x7f110015

    return v0
.end method

.method protected b()Ljava/lang/String;
    .locals 1
    .annotation build Landroid/support/annotation/NonNull;
    .end annotation

    const v0, 0x7f0e07ff

    .line 39
    invoke-virtual {p0, v0}, Lcom/moji/mjweather/setting/fragment/SettingPersonalityWidgetFragment;->getString(I)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method protected d()V
    .locals 1

    .line 44
    invoke-super {p0}, Lcom/moji/mvpframe/MJPreferenceFragment;->d()V

    .line 45
    invoke-virtual {p0}, Lcom/moji/mjweather/setting/fragment/SettingPersonalityWidgetFragment;->getActivity()Landroid/app/Activity;

    move-result-object v0

    invoke-static {v0}, Lcom/moji/notify/NotifyPreference;->a(Landroid/content/Context;)Lcom/moji/notify/NotifyPreference;

    move-result-object v0

    iput-object v0, p0, Lcom/moji/mjweather/setting/fragment/SettingPersonalityWidgetFragment;->e:Lcom/moji/notify/NotifyPreference;

    const-string v0, "setting_personality_widget_switch"

    .line 46
    invoke-virtual {p0, v0}, Lcom/moji/mjweather/setting/fragment/SettingPersonalityWidgetFragment;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object v0

    check-cast v0, Lcom/moji/mjweather/settingpreference/pref/MJPreferenceWithSwitchButton;

    iput-object v0, p0, Lcom/moji/mjweather/setting/fragment/SettingPersonalityWidgetFragment;->a:Lcom/moji/mjweather/settingpreference/pref/MJPreferenceWithSwitchButton;

    const-string v0, "setting_personality_widget_extend"

    .line 47
    invoke-virtual {p0, v0}, Lcom/moji/mjweather/setting/fragment/SettingPersonalityWidgetFragment;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object v0

    check-cast v0, Lcom/moji/mjweather/settingpreference/pref/MJPreferenceWithSwitchButton;

    iput-object v0, p0, Lcom/moji/mjweather/setting/fragment/SettingPersonalityWidgetFragment;->b:Lcom/moji/mjweather/settingpreference/pref/MJPreferenceWithSwitchButton;

    const-string v0, "setting_personality_widget_font_color"

    .line 48
    invoke-virtual {p0, v0}, Lcom/moji/mjweather/setting/fragment/SettingPersonalityWidgetFragment;->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/SettingPersonalityWidgetFragment;->c:Lcom/moji/mjweather/settingpreference/pref/MJPreferenceWithValue;

    const-string v0, "setting_personality_widget_background_color"

    .line 49
    invoke-virtual {p0, v0}, Lcom/moji/mjweather/setting/fragment/SettingPersonalityWidgetFragment;->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/SettingPersonalityWidgetFragment;->d:Lcom/moji/mjweather/settingpreference/pref/MJPreferenceWithValue;

    .line 50
    iget-object v0, p0, Lcom/moji/mjweather/setting/fragment/SettingPersonalityWidgetFragment;->c:Lcom/moji/mjweather/settingpreference/pref/MJPreferenceWithValue;

    invoke-virtual {v0, p0}, Lcom/moji/mjweather/settingpreference/pref/MJPreferenceWithValue;->setOnPreferenceClickListener(Landroid/preference/Preference$OnPreferenceClickListener;)V

    .line 51
    iget-object v0, p0, Lcom/moji/mjweather/setting/fragment/SettingPersonalityWidgetFragment;->d:Lcom/moji/mjweather/settingpreference/pref/MJPreferenceWithValue;

    invoke-virtual {v0, p0}, Lcom/moji/mjweather/settingpreference/pref/MJPreferenceWithValue;->setOnPreferenceClickListener(Landroid/preference/Preference$OnPreferenceClickListener;)V

    return-void
.end method

.method public onPause()V
    .locals 1

    .line 117
    invoke-super {p0}, Lcom/moji/mvpframe/MJPreferenceFragment;->onPause()V

    .line 118
    invoke-virtual {p0}, Lcom/moji/mjweather/setting/fragment/SettingPersonalityWidgetFragment;->getPreferenceScreen()Landroid/preference/PreferenceScreen;

    move-result-object v0

    invoke-virtual {v0}, Landroid/preference/PreferenceScreen;->getSharedPreferences()Landroid/content/SharedPreferences;

    move-result-object v0

    .line 119
    invoke-interface {v0, p0}, Landroid/content/SharedPreferences;->unregisterOnSharedPreferenceChangeListener(Landroid/content/SharedPreferences$OnSharedPreferenceChangeListener;)V

    return-void
.end method

.method public onPreferenceClick(Landroid/preference/Preference;)Z
    .locals 3

    .line 88
    invoke-virtual {p1}, Landroid/preference/Preference;->getKey()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p1}, Ljava/lang/String;->hashCode()I

    move-result v0

    const v1, -0x50d468f2

    const/4 v2, 0x0

    if-eq v0, v1, :cond_1

    const v1, 0x15b21c6d

    if-eq v0, v1, :cond_0

    goto :goto_0

    :cond_0
    const-string v0, "setting_personality_widget_background_color"

    invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_2

    const/4 p1, 0x0

    goto :goto_1

    :cond_1
    const-string v0, "setting_personality_widget_font_color"

    invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_2

    const/4 p1, 0x1

    goto :goto_1

    :cond_2
    :goto_0
    const/4 p1, -0x1

    :goto_1
    packed-switch p1, :pswitch_data_0

    goto :goto_2

    .line 93
    :pswitch_0
    invoke-direct {p0}, Lcom/moji/mjweather/setting/fragment/SettingPersonalityWidgetFragment;->c()V

    goto :goto_2

    .line 90
    :pswitch_1
    invoke-direct {p0}, Lcom/moji/mjweather/setting/fragment/SettingPersonalityWidgetFragment;->e()V

    :goto_2
    return v2

    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_1
        :pswitch_0
    .end packed-switch
.end method

.method public onResume()V
    .locals 4

    .line 101
    invoke-super {p0}, Lcom/moji/mvpframe/MJPreferenceFragment;->onResume()V

    .line 102
    invoke-virtual {p0}, Lcom/moji/mjweather/setting/fragment/SettingPersonalityWidgetFragment;->getPreferenceScreen()Landroid/preference/PreferenceScreen;

    move-result-object v0

    invoke-virtual {v0}, Landroid/preference/PreferenceScreen;->getSharedPreferences()Landroid/content/SharedPreferences;

    move-result-object v0

    const-string v1, "setting_personality_widget_switch"

    const/4 v2, 0x0

    .line 103
    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v1

    const-string v3, "setting_personality_widget_extend"

    .line 104
    invoke-interface {v0, v3, v2}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v2

    .line 105
    iget-object v3, p0, Lcom/moji/mjweather/setting/fragment/SettingPersonalityWidgetFragment;->e:Lcom/moji/notify/NotifyPreference;

    if-eqz v3, :cond_0

    .line 106
    iget-object v3, p0, Lcom/moji/mjweather/setting/fragment/SettingPersonalityWidgetFragment;->e:Lcom/moji/notify/NotifyPreference;

    invoke-virtual {v3, v1}, Lcom/moji/notify/NotifyPreference;->a(Z)V

    .line 107
    iget-object v3, p0, Lcom/moji/mjweather/setting/fragment/SettingPersonalityWidgetFragment;->e:Lcom/moji/notify/NotifyPreference;

    invoke-virtual {v3, v2}, Lcom/moji/notify/NotifyPreference;->b(Z)V

    .line 109
    :cond_0
    iget-object v3, p0, Lcom/moji/mjweather/setting/fragment/SettingPersonalityWidgetFragment;->a:Lcom/moji/mjweather/settingpreference/pref/MJPreferenceWithSwitchButton;

    invoke-virtual {v3, v1}, Lcom/moji/mjweather/settingpreference/pref/MJPreferenceWithSwitchButton;->a(Z)V

    .line 110
    iget-object v1, p0, Lcom/moji/mjweather/setting/fragment/SettingPersonalityWidgetFragment;->b:Lcom/moji/mjweather/settingpreference/pref/MJPreferenceWithSwitchButton;

    invoke-virtual {v1, v2}, Lcom/moji/mjweather/settingpreference/pref/MJPreferenceWithSwitchButton;->a(Z)V

    .line 111
    invoke-direct {p0, v0}, Lcom/moji/mjweather/setting/fragment/SettingPersonalityWidgetFragment;->a(Landroid/content/SharedPreferences;)V

    .line 112
    invoke-interface {v0, p0}, Landroid/content/SharedPreferences;->registerOnSharedPreferenceChangeListener(Landroid/content/SharedPreferences$OnSharedPreferenceChangeListener;)V

    return-void
.end method

.method public onSharedPreferenceChanged(Landroid/content/SharedPreferences;Ljava/lang/String;)V
    .locals 4

    .line 56
    invoke-virtual {p2}, Ljava/lang/String;->hashCode()I

    move-result v0

    const v1, -0x50d468f2

    const/4 v2, 0x1

    const/4 v3, 0x0

    if-eq v0, v1, :cond_3

    const v1, -0x428a8bcb

    if-eq v0, v1, :cond_2

    const v1, -0x2ab993b1

    if-eq v0, v1, :cond_1

    const v1, 0x15b21c6d

    if-eq v0, v1, :cond_0

    goto :goto_0

    :cond_0
    const-string v0, "setting_personality_widget_background_color"

    invoke-virtual {p2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_4

    const/4 v0, 0x2

    goto :goto_1

    :cond_1
    const-string v0, "setting_personality_widget_switch"

    invoke-virtual {p2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_4

    const/4 v0, 0x0

    goto :goto_1

    :cond_2
    const-string v0, "setting_personality_widget_extend"

    invoke-virtual {p2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_4

    const/4 v0, 0x3

    goto :goto_1

    :cond_3
    const-string v0, "setting_personality_widget_font_color"

    invoke-virtual {p2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_4

    const/4 v0, 0x1

    goto :goto_1

    :cond_4
    :goto_0
    const/4 v0, -0x1

    :goto_1
    packed-switch v0, :pswitch_data_0

    goto :goto_6

    :pswitch_0
    const-string p2, "setting_personality_widget_extend"

    .line 77
    invoke-interface {p1, p2, v3}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result p1

    .line 78
    iget-object p2, p0, Lcom/moji/mjweather/setting/fragment/SettingPersonalityWidgetFragment;->e:Lcom/moji/notify/NotifyPreference;

    if-eqz p2, :cond_5

    .line 79
    iget-object p2, p0, Lcom/moji/mjweather/setting/fragment/SettingPersonalityWidgetFragment;->e:Lcom/moji/notify/NotifyPreference;

    invoke-virtual {p2, p1}, Lcom/moji/notify/NotifyPreference;->b(Z)V

    .line 81
    :cond_5
    invoke-virtual {p0}, Lcom/moji/mjweather/setting/fragment/SettingPersonalityWidgetFragment;->getActivity()Landroid/app/Activity;

    move-result-object p1

    invoke-static {p1}, Lcom/moji/notify/NotifyService;->startNotify(Landroid/content/Context;)V

    goto :goto_6

    .line 73
    :pswitch_1
    invoke-direct {p0, p1}, Lcom/moji/mjweather/setting/fragment/SettingPersonalityWidgetFragment;->a(Landroid/content/SharedPreferences;)V

    .line 74
    invoke-virtual {p0}, Lcom/moji/mjweather/setting/fragment/SettingPersonalityWidgetFragment;->getActivity()Landroid/app/Activity;

    move-result-object p2

    const-string v0, "setting_personality_widget_font_color"

    invoke-interface {p1, v0, v3}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result p1

    if-nez p1, :cond_6

    goto :goto_2

    :cond_6
    const/4 v2, 0x0

    :goto_2
    invoke-static {p2, v2}, Lcom/moji/notify/NotifyService;->a(Landroid/content/Context;Z)V

    goto :goto_6

    .line 58
    :pswitch_2
    invoke-interface {p1, p2, v2}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result p1

    .line 59
    iget-object p2, p0, Lcom/moji/mjweather/setting/fragment/SettingPersonalityWidgetFragment;->e:Lcom/moji/notify/NotifyPreference;

    if-eqz p2, :cond_7

    .line 60
    iget-object p2, p0, Lcom/moji/mjweather/setting/fragment/SettingPersonalityWidgetFragment;->e:Lcom/moji/notify/NotifyPreference;

    invoke-virtual {p2, p1}, Lcom/moji/notify/NotifyPreference;->a(Z)V

    :cond_7
    if-eqz p1, :cond_8

    .line 63
    invoke-virtual {p0}, Lcom/moji/mjweather/setting/fragment/SettingPersonalityWidgetFragment;->getActivity()Landroid/app/Activity;

    move-result-object p2

    invoke-static {p2}, Lcom/moji/notify/NotifyService;->startNotify(Landroid/content/Context;)V

    goto :goto_3

    .line 66
    :cond_8
    invoke-virtual {p0}, Lcom/moji/mjweather/setting/fragment/SettingPersonalityWidgetFragment;->getActivity()Landroid/app/Activity;

    move-result-object p2

    invoke-static {p2}, Lcom/moji/notify/NotifyService;->a(Landroid/content/Context;)V

    .line 68
    :goto_3
    invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;

    move-result-object p2

    sget-object v0, Lcom/moji/statistics/EVENT_TAG;->SET_NOTIFY_CLICK:Lcom/moji/statistics/EVENT_TAG;

    if-eqz p1, :cond_9

    const-string v1, "1"

    goto :goto_4

    :cond_9
    const-string v1, "0"

    :goto_4
    invoke-virtual {p2, v0, v1}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;)Lcom/moji/statistics/EventManager;

    .line 69
    invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;

    move-result-object p2

    sget-object v0, Lcom/moji/statistics/EVENT_TAG;->SET_NOTIFICATION_CLICK:Lcom/moji/statistics/EVENT_TAG;

    if-eqz p1, :cond_a

    const-string p1, "1"

    goto :goto_5

    :cond_a
    const-string p1, "0"

    :goto_5
    invoke-virtual {p2, v0, p1}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;)Lcom/moji/statistics/EventManager;

    :goto_6
    return-void

    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_2
        :pswitch_1
        :pswitch_1
        :pswitch_0
    .end packed-switch
.end method
