571 lines
13 KiB
Smali
571 lines
13 KiB
Smali
.class public Lcom/moji/mjweather/setting/activity/SettingActivity;
|
|
.super Lcom/moji/mjweather/me/activity/MJMVPActivity;
|
|
.source "SettingActivity.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/moji/mjweather/me/activity/MJMVPActivity<",
|
|
"Lcom/moji/mjweather/me/DefaultPresenter;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 36
|
|
invoke-direct {p0}, Lcom/moji/mjweather/me/activity/MJMVPActivity;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private a(Landroid/content/Intent;)Landroid/app/Fragment;
|
|
.locals 2
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 61
|
|
invoke-direct {p0, p1}, Lcom/moji/mjweather/setting/activity/SettingActivity;->b(Landroid/content/Intent;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
const/4 v0, -0x1
|
|
|
|
.line 62
|
|
invoke-virtual {p1}, Ljava/lang/String;->hashCode()I
|
|
|
|
move-result v1
|
|
|
|
sparse-switch v1, :sswitch_data_0
|
|
|
|
goto/16 :goto_0
|
|
|
|
:sswitch_0
|
|
const-string v1, "setting_personality_skin_shop"
|
|
|
|
invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const/4 v0, 0x7
|
|
|
|
goto/16 :goto_0
|
|
|
|
:sswitch_1
|
|
const-string v1, "setting_item_personality_assist"
|
|
|
|
invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const/4 v0, 0x2
|
|
|
|
goto/16 :goto_0
|
|
|
|
:sswitch_2
|
|
const-string v1, "setting_personality_information"
|
|
|
|
invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const/4 v0, 0x6
|
|
|
|
goto/16 :goto_0
|
|
|
|
:sswitch_3
|
|
const-string v1, "setting_person_info_detail"
|
|
|
|
invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const/16 v0, 0xb
|
|
|
|
goto/16 :goto_0
|
|
|
|
:sswitch_4
|
|
const-string v1, "setting_item_message"
|
|
|
|
invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto/16 :goto_0
|
|
|
|
:sswitch_5
|
|
const-string v1, "setting_item_launcher_widget"
|
|
|
|
invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const/4 v0, 0x4
|
|
|
|
goto :goto_0
|
|
|
|
:sswitch_6
|
|
const-string v1, "setting_item_foot_print"
|
|
|
|
invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const/4 v0, 0x3
|
|
|
|
goto :goto_0
|
|
|
|
:sswitch_7
|
|
const-string v1, "setting_weather_auto_update"
|
|
|
|
invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const/16 v0, 0xc
|
|
|
|
goto :goto_0
|
|
|
|
:sswitch_8
|
|
const-string v1, "setting_personality_healthy"
|
|
|
|
invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const/16 v0, 0x9
|
|
|
|
goto :goto_0
|
|
|
|
:sswitch_9
|
|
const-string v1, "setting_weather_alert"
|
|
|
|
invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const/16 v0, 0xe
|
|
|
|
goto :goto_0
|
|
|
|
:sswitch_a
|
|
const-string v1, "setting_item_account_manage"
|
|
|
|
invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_0
|
|
|
|
:sswitch_b
|
|
const-string v1, "setting_personality_widget"
|
|
|
|
invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const/4 v0, 0x5
|
|
|
|
goto :goto_0
|
|
|
|
:sswitch_c
|
|
const-string v1, "setting_develop_console"
|
|
|
|
invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const/16 v0, 0xd
|
|
|
|
goto :goto_0
|
|
|
|
:sswitch_d
|
|
const-string v1, "setting_weather_background"
|
|
|
|
invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const/16 v0, 0x8
|
|
|
|
goto :goto_0
|
|
|
|
:sswitch_e
|
|
const-string v1, "setting_person_info_supplement"
|
|
|
|
invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const/16 v0, 0xa
|
|
|
|
:cond_0
|
|
:goto_0
|
|
packed-switch v0, :pswitch_data_0
|
|
|
|
.line 124
|
|
new-instance p1, Lcom/moji/mjweather/setting/fragment/SettingFragment;
|
|
|
|
invoke-direct {p1}, Lcom/moji/mjweather/setting/fragment/SettingFragment;-><init>()V
|
|
|
|
goto :goto_1
|
|
|
|
.line 121
|
|
:pswitch_0
|
|
new-instance p1, Lcom/moji/mjweather/setting/fragment/SettingWeatherAlertFragment;
|
|
|
|
invoke-direct {p1}, Lcom/moji/mjweather/setting/fragment/SettingWeatherAlertFragment;-><init>()V
|
|
|
|
goto :goto_1
|
|
|
|
.line 117
|
|
:pswitch_1
|
|
new-instance p1, Lcom/moji/mjweather/setting/fragment/SettingDevelopConsoleFragment;
|
|
|
|
invoke-direct {p1}, Lcom/moji/mjweather/setting/fragment/SettingDevelopConsoleFragment;-><init>()V
|
|
|
|
goto :goto_1
|
|
|
|
.line 113
|
|
:pswitch_2
|
|
new-instance p1, Lcom/moji/mjweather/setting/fragment/SettingWeatherAutoUpdateFragment;
|
|
|
|
invoke-direct {p1}, Lcom/moji/mjweather/setting/fragment/SettingWeatherAutoUpdateFragment;-><init>()V
|
|
|
|
goto :goto_1
|
|
|
|
.line 109
|
|
:pswitch_3
|
|
new-instance p1, Lcom/moji/mjweather/setting/fragment/AccountInfoFragment;
|
|
|
|
invoke-direct {p1}, Lcom/moji/mjweather/setting/fragment/AccountInfoFragment;-><init>()V
|
|
|
|
goto :goto_1
|
|
|
|
.line 105
|
|
:pswitch_4
|
|
new-instance p1, Lcom/moji/mjweather/setting/fragment/AccountInfoSupplementFragment;
|
|
|
|
invoke-direct {p1}, Lcom/moji/mjweather/setting/fragment/AccountInfoSupplementFragment;-><init>()V
|
|
|
|
goto :goto_1
|
|
|
|
.line 101
|
|
:pswitch_5
|
|
new-instance p1, Lcom/moji/mjweather/setting/fragment/SettingPersonalityHealthyFragment;
|
|
|
|
invoke-direct {p1}, Lcom/moji/mjweather/setting/fragment/SettingPersonalityHealthyFragment;-><init>()V
|
|
|
|
goto :goto_1
|
|
|
|
.line 97
|
|
:pswitch_6
|
|
new-instance p1, Lcom/moji/mjweather/setting/fragment/SettingPersonalityWeatherBackgroundFragment;
|
|
|
|
invoke-direct {p1}, Lcom/moji/mjweather/setting/fragment/SettingPersonalityWeatherBackgroundFragment;-><init>()V
|
|
|
|
goto :goto_1
|
|
|
|
.line 93
|
|
:pswitch_7
|
|
new-instance p1, Lcom/moji/mjweather/setting/fragment/SettingPersonalitySkinShopFragment;
|
|
|
|
invoke-direct {p1}, Lcom/moji/mjweather/setting/fragment/SettingPersonalitySkinShopFragment;-><init>()V
|
|
|
|
goto :goto_1
|
|
|
|
.line 89
|
|
:pswitch_8
|
|
new-instance p1, Lcom/moji/mjweather/setting/fragment/SettingPersonalityInformationFragment;
|
|
|
|
invoke-direct {p1}, Lcom/moji/mjweather/setting/fragment/SettingPersonalityInformationFragment;-><init>()V
|
|
|
|
goto :goto_1
|
|
|
|
.line 85
|
|
:pswitch_9
|
|
new-instance p1, Lcom/moji/mjweather/setting/fragment/SettingPersonalityWidgetFragment;
|
|
|
|
invoke-direct {p1}, Lcom/moji/mjweather/setting/fragment/SettingPersonalityWidgetFragment;-><init>()V
|
|
|
|
goto :goto_1
|
|
|
|
.line 81
|
|
:pswitch_a
|
|
new-instance p1, Lcom/moji/mjweather/setting/fragment/SettingLauncherPluginSKinFragment;
|
|
|
|
invoke-direct {p1}, Lcom/moji/mjweather/setting/fragment/SettingLauncherPluginSKinFragment;-><init>()V
|
|
|
|
goto :goto_1
|
|
|
|
.line 77
|
|
:pswitch_b
|
|
new-instance p1, Lcom/moji/mjweather/setting/fragment/SettingFootPrintFragment;
|
|
|
|
invoke-direct {p1}, Lcom/moji/mjweather/setting/fragment/SettingFootPrintFragment;-><init>()V
|
|
|
|
goto :goto_1
|
|
|
|
.line 74
|
|
:pswitch_c
|
|
new-instance p1, Lcom/moji/mjweather/setting/fragment/SettingPersonalityAssistFragment;
|
|
|
|
invoke-direct {p1}, Lcom/moji/mjweather/setting/fragment/SettingPersonalityAssistFragment;-><init>()V
|
|
|
|
goto :goto_1
|
|
|
|
.line 69
|
|
:pswitch_d
|
|
new-instance p1, Lcom/moji/mjweather/setting/fragment/SettingMessageNotificationFragment;
|
|
|
|
invoke-direct {p1}, Lcom/moji/mjweather/setting/fragment/SettingMessageNotificationFragment;-><init>()V
|
|
|
|
goto :goto_1
|
|
|
|
.line 65
|
|
:pswitch_e
|
|
new-instance p1, Lcom/moji/mjweather/setting/fragment/AccountSettingCenterFragment;
|
|
|
|
invoke-direct {p1}, Lcom/moji/mjweather/setting/fragment/AccountSettingCenterFragment;-><init>()V
|
|
|
|
.line 127
|
|
:goto_1
|
|
invoke-virtual {p0}, Lcom/moji/mjweather/setting/activity/SettingActivity;->getFragmentManager()Landroid/app/FragmentManager;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Landroid/app/FragmentManager;->beginTransaction()Landroid/app/FragmentTransaction;
|
|
|
|
move-result-object v0
|
|
|
|
const v1, 0x7f09023a
|
|
|
|
.line 128
|
|
invoke-virtual {v0, v1, p1}, Landroid/app/FragmentTransaction;->replace(ILandroid/app/Fragment;)Landroid/app/FragmentTransaction;
|
|
|
|
.line 129
|
|
invoke-virtual {v0}, Landroid/app/FragmentTransaction;->commit()I
|
|
|
|
return-object p1
|
|
|
|
.line 58
|
|
:cond_1
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
const-string v0, "\u8bf7\u8bbe\u7f6e\u53c2\u6570\u4fe1\u606f"
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
nop
|
|
|
|
:sswitch_data_0
|
|
.sparse-switch
|
|
-0x7fbff131 -> :sswitch_e
|
|
-0x7d54d758 -> :sswitch_d
|
|
-0x640a5e7a -> :sswitch_c
|
|
-0x6391f47c -> :sswitch_b
|
|
-0x60c2ee0c -> :sswitch_a
|
|
-0x44750e5e -> :sswitch_9
|
|
-0x2f253fa3 -> :sswitch_8
|
|
0x2995011f -> :sswitch_7
|
|
0x2bcb9c59 -> :sswitch_6
|
|
0x3330dd26 -> :sswitch_5
|
|
0x3c0b7c6a -> :sswitch_4
|
|
0x48a4c967 -> :sswitch_3
|
|
0x50ac8bec -> :sswitch_2
|
|
0x605cb517 -> :sswitch_1
|
|
0x7cdc5b38 -> :sswitch_0
|
|
.end sparse-switch
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x0
|
|
:pswitch_e
|
|
:pswitch_d
|
|
:pswitch_c
|
|
:pswitch_b
|
|
:pswitch_a
|
|
:pswitch_9
|
|
:pswitch_8
|
|
:pswitch_7
|
|
:pswitch_6
|
|
:pswitch_5
|
|
:pswitch_4
|
|
:pswitch_3
|
|
:pswitch_2
|
|
:pswitch_1
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|
|
|
|
.method private b(Landroid/content/Intent;)Ljava/lang/String;
|
|
.locals 2
|
|
|
|
const-string v0, "default"
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
return-object v0
|
|
|
|
.line 138
|
|
:cond_0
|
|
invoke-virtual {p1}, Landroid/content/Intent;->getData()Landroid/net/Uri;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 139
|
|
invoke-virtual {p1}, Landroid/content/Intent;->getData()Landroid/net/Uri;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Landroid/net/Uri;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
:cond_1
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method protected a()Lcom/moji/mjweather/me/DefaultPresenter;
|
|
.locals 1
|
|
|
|
.line 47
|
|
new-instance v0, Lcom/moji/mjweather/me/DefaultPresenter;
|
|
|
|
invoke-direct {v0, p0}, Lcom/moji/mjweather/me/DefaultPresenter;-><init>(Lcom/moji/mvpframe/IMJMvpView;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method protected synthetic d()Lcom/moji/mvpframe/BasePresenter;
|
|
.locals 1
|
|
|
|
.line 36
|
|
invoke-virtual {p0}, Lcom/moji/mjweather/setting/activity/SettingActivity;->a()Lcom/moji/mjweather/me/DefaultPresenter;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method protected onActivityResult(IILandroid/content/Intent;)V
|
|
.locals 1
|
|
|
|
.line 146
|
|
new-instance v0, Lcom/moji/mjweather/setting/event/BindSinaEvent;
|
|
|
|
invoke-direct {v0}, Lcom/moji/mjweather/setting/event/BindSinaEvent;-><init>()V
|
|
|
|
.line 147
|
|
iput p1, v0, Lcom/moji/mjweather/setting/event/BindSinaEvent;->a:I
|
|
|
|
.line 148
|
|
iput p2, v0, Lcom/moji/mjweather/setting/event/BindSinaEvent;->b:I
|
|
|
|
.line 149
|
|
iput-object p3, v0, Lcom/moji/mjweather/setting/event/BindSinaEvent;->c:Landroid/content/Intent;
|
|
|
|
.line 150
|
|
invoke-static {}, Lcom/moji/bus/Bus;->a()Lcom/moji/bus/Bus;
|
|
|
|
move-result-object p1
|
|
|
|
const-string p2, "eventBindSina"
|
|
|
|
invoke-virtual {p1, p2, v0}, Lcom/moji/bus/Bus;->a(Ljava/lang/String;Ljava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onBackPressed()V
|
|
.locals 3
|
|
|
|
.line 155
|
|
invoke-virtual {p0}, Lcom/moji/mjweather/setting/activity/SettingActivity;->getIntent()Landroid/content/Intent;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "changeLanguage"
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 156
|
|
invoke-static {p0}, Lcom/moji/mjweather/setting/language/LanguageHelper;->a(Landroid/app/Activity;)V
|
|
|
|
.line 158
|
|
:cond_0
|
|
invoke-super {p0}, Lcom/moji/mjweather/me/activity/MJMVPActivity;->onBackPressed()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected onCreate(Landroid/os/Bundle;)V
|
|
.locals 0
|
|
|
|
.line 40
|
|
invoke-super {p0, p1}, Lcom/moji/mjweather/me/activity/MJMVPActivity;->onCreate(Landroid/os/Bundle;)V
|
|
|
|
const p1, 0x7f0b0079
|
|
|
|
.line 41
|
|
invoke-virtual {p0, p1}, Lcom/moji/mjweather/setting/activity/SettingActivity;->setContentView(I)V
|
|
|
|
.line 42
|
|
invoke-virtual {p0}, Lcom/moji/mjweather/setting/activity/SettingActivity;->getIntent()Landroid/content/Intent;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p0, p1}, Lcom/moji/mjweather/setting/activity/SettingActivity;->a(Landroid/content/Intent;)Landroid/app/Fragment;
|
|
|
|
return-void
|
|
.end method
|