686 lines
18 KiB
Smali
686 lines
18 KiB
Smali
.class Lcom/moji/mjweather/TabWeatherFragment$MyHandler;
|
|
.super Landroid/os/Handler;
|
|
.source "TabWeatherFragment.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/moji/mjweather/TabWeatherFragment;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0xa
|
|
name = "MyHandler"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private a:Ljava/lang/ref/SoftReference;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/lang/ref/SoftReference<",
|
|
"Lcom/moji/mjweather/TabWeatherFragment;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/moji/mjweather/TabWeatherFragment;)V
|
|
.locals 1
|
|
|
|
.line 2421
|
|
invoke-direct {p0}, Landroid/os/Handler;-><init>()V
|
|
|
|
.line 2422
|
|
new-instance v0, Ljava/lang/ref/SoftReference;
|
|
|
|
invoke-direct {v0, p1}, Ljava/lang/ref/SoftReference;-><init>(Ljava/lang/Object;)V
|
|
|
|
iput-object v0, p0, Lcom/moji/mjweather/TabWeatherFragment$MyHandler;->a:Ljava/lang/ref/SoftReference;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public handleMessage(Landroid/os/Message;)V
|
|
.locals 10
|
|
|
|
.line 2427
|
|
invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V
|
|
|
|
.line 2428
|
|
iget-object v0, p0, Lcom/moji/mjweather/TabWeatherFragment$MyHandler;->a:Ljava/lang/ref/SoftReference;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/ref/SoftReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/moji/mjweather/TabWeatherFragment;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 2432
|
|
:cond_0
|
|
iget v1, p1, Landroid/os/Message;->what:I
|
|
|
|
const/16 v2, 0x21
|
|
|
|
const-wide/16 v3, 0x5dc
|
|
|
|
const/4 v5, 0x1
|
|
|
|
const/16 v6, 0x4d
|
|
|
|
const/16 v7, 0x37
|
|
|
|
if-eq v1, v2, :cond_11
|
|
|
|
if-eq v1, v7, :cond_10
|
|
|
|
const/16 v2, 0x42
|
|
|
|
const/4 v8, 0x0
|
|
|
|
if-eq v1, v2, :cond_a
|
|
|
|
if-eq v1, v6, :cond_9
|
|
|
|
const/16 v2, 0x58
|
|
|
|
if-eq v1, v2, :cond_8
|
|
|
|
const/16 v2, 0x3dc
|
|
|
|
if-eq v1, v2, :cond_7
|
|
|
|
packed-switch v1, :pswitch_data_0
|
|
|
|
goto/16 :goto_1
|
|
|
|
.line 2508
|
|
:pswitch_0
|
|
invoke-virtual {v0}, Lcom/moji/mjweather/TabWeatherFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;
|
|
|
|
move-result-object p1
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
goto/16 :goto_1
|
|
|
|
.line 2512
|
|
:cond_1
|
|
invoke-static {}, Lcom/moji/tool/preferences/CtaPrefer;->c()Lcom/moji/tool/preferences/CtaPrefer;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Lcom/moji/tool/preferences/CtaPrefer;->e()Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_2
|
|
|
|
goto/16 :goto_1
|
|
|
|
.line 2516
|
|
:cond_2
|
|
invoke-virtual {v0}, Lcom/moji/mjweather/TabWeatherFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;
|
|
|
|
move-result-object p1
|
|
|
|
.line 2517
|
|
new-instance v1, Lcom/moji/preferences/DefaultPrefer;
|
|
|
|
invoke-direct {v1}, Lcom/moji/preferences/DefaultPrefer;-><init>()V
|
|
|
|
.line 2518
|
|
invoke-virtual {v1}, Lcom/moji/preferences/DefaultPrefer;->o()Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_4
|
|
|
|
.line 2519
|
|
sget-object v1, Lcom/moji/mjweather/BuildConfig;->a:Ljava/lang/Boolean;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
.line 2520
|
|
invoke-static {}, Lcom/moji/tool/fps/FPSMeter;->a()Lcom/moji/tool/fps/FPSMeterBuilder;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0}, Lcom/moji/mjweather/TabWeatherFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v1, v0}, Lcom/moji/tool/fps/FPSMeterBuilder;->b(Landroid/content/Context;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_12
|
|
|
|
.line 2522
|
|
invoke-interface {p1}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v0, "setting_develop_console_fps_off"
|
|
|
|
invoke-interface {p1, v0, v5}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-interface {p1}, Landroid/content/SharedPreferences$Editor;->apply()V
|
|
|
|
goto/16 :goto_1
|
|
|
|
.line 2525
|
|
:cond_3
|
|
invoke-interface {p1}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v0, "setting_develop_console_fps_off"
|
|
|
|
invoke-interface {p1, v0, v8}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-interface {p1}, Landroid/content/SharedPreferences$Editor;->apply()V
|
|
|
|
goto/16 :goto_1
|
|
|
|
:cond_4
|
|
const-string v1, "setting_develop_console_fps_off"
|
|
|
|
.line 2528
|
|
invoke-interface {p1, v1, v8}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_12
|
|
|
|
.line 2530
|
|
invoke-static {}, Lcom/moji/tool/fps/FPSMeter;->a()Lcom/moji/tool/fps/FPSMeterBuilder;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0}, Lcom/moji/mjweather/TabWeatherFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v1, v0}, Lcom/moji/tool/fps/FPSMeterBuilder;->b(Landroid/content/Context;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_12
|
|
|
|
.line 2532
|
|
invoke-interface {p1}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v0, "setting_develop_console_fps_off"
|
|
|
|
invoke-interface {p1, v0, v8}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-interface {p1}, Landroid/content/SharedPreferences$Editor;->apply()V
|
|
|
|
goto/16 :goto_1
|
|
|
|
.line 2538
|
|
:pswitch_1
|
|
invoke-virtual {v0}, Lcom/moji/mjweather/TabWeatherFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_12
|
|
|
|
.line 2539
|
|
invoke-virtual {v0}, Lcom/moji/mjweather/TabWeatherFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1}, Lcom/moji/notify/NotifyPreference;->a(Landroid/content/Context;)Lcom/moji/notify/NotifyPreference;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_5
|
|
|
|
.line 2540
|
|
invoke-virtual {p1}, Lcom/moji/notify/NotifyPreference;->g()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_5
|
|
|
|
.line 2541
|
|
invoke-virtual {v0}, Lcom/moji/mjweather/TabWeatherFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v1}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "setting_personality_widget_switch"
|
|
|
|
.line 2542
|
|
invoke-interface {v1, v2, v8}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {p1, v2}, Lcom/moji/notify/NotifyPreference;->a(Z)V
|
|
|
|
const-string v2, "setting_personality_widget_extend"
|
|
|
|
.line 2543
|
|
invoke-interface {v1, v2, v8}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {p1, v2}, Lcom/moji/notify/NotifyPreference;->b(Z)V
|
|
|
|
const-string v2, "setting_personality_widget_font_color"
|
|
|
|
.line 2544
|
|
invoke-interface {v1, v2, v8}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {p1, v2}, Lcom/moji/notify/NotifyPreference;->a(I)V
|
|
|
|
const-string v2, "setting_personality_widget_background_color"
|
|
|
|
.line 2545
|
|
invoke-interface {v1, v2, v8}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {p1, v1}, Lcom/moji/notify/NotifyPreference;->b(I)V
|
|
|
|
.line 2546
|
|
invoke-virtual {p1, v8}, Lcom/moji/notify/NotifyPreference;->c(Z)V
|
|
|
|
:cond_5
|
|
if-eqz p1, :cond_6
|
|
|
|
.line 2549
|
|
invoke-virtual {p1}, Lcom/moji/notify/NotifyPreference;->c()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_6
|
|
|
|
.line 2551
|
|
invoke-virtual {v0}, Lcom/moji/mjweather/TabWeatherFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1}, Lcom/moji/notify/NotifyService;->startNotify(Landroid/content/Context;)V
|
|
|
|
.line 2553
|
|
:cond_6
|
|
invoke-static {v0, v5}, Lcom/moji/mjweather/TabWeatherFragment;->c(Lcom/moji/mjweather/TabWeatherFragment;Z)Z
|
|
|
|
goto/16 :goto_1
|
|
|
|
:cond_7
|
|
const-string v1, "TabWeatherFragment"
|
|
|
|
const-string v2, "message UPDATE_CITY_STATE_TO_NORMAL"
|
|
|
|
.line 2504
|
|
invoke-static {v1, v2}, Lcom/moji/tool/log/MJLogger;->c(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 2505
|
|
iget-object p1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;
|
|
|
|
check-cast p1, Lcom/moji/common/area/AreaInfo;
|
|
|
|
sget-object v1, Lcom/moji/weatherprovider/event/CITY_STATE;->NORMAL:Lcom/moji/weatherprovider/event/CITY_STATE;
|
|
|
|
invoke-virtual {v0, p1, v1}, Lcom/moji/mjweather/TabWeatherFragment;->a(Lcom/moji/common/area/AreaInfo;Lcom/moji/weatherprovider/event/CITY_STATE;)V
|
|
|
|
goto/16 :goto_1
|
|
|
|
.line 2557
|
|
:cond_8
|
|
invoke-static {v0}, Lcom/moji/mjweather/TabWeatherFragment;->w(Lcom/moji/mjweather/TabWeatherFragment;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_12
|
|
|
|
.line 2558
|
|
invoke-static {}, Lcom/moji/weathersence/MJSceneManager;->a()Lcom/moji/weathersence/MJSceneManager;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Lcom/moji/weathersence/MJSceneManager;->g()V
|
|
|
|
goto/16 :goto_1
|
|
|
|
.line 2492
|
|
:cond_9
|
|
invoke-virtual {v0}, Lcom/moji/mjweather/TabWeatherFragment;->l()V
|
|
|
|
goto/16 :goto_1
|
|
|
|
:cond_a
|
|
const-string v1, "TabWeatherFragment"
|
|
|
|
const-string v2, "handleMessage: HANDLER_WEATHER_DATA_CHANGE"
|
|
|
|
.line 2452
|
|
invoke-static {v1, v2}, Lcom/moji/tool/log/MJLogger;->c(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 2453
|
|
iget-object p1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;
|
|
|
|
check-cast p1, Landroid/net/Uri;
|
|
|
|
if-eqz p1, :cond_12
|
|
|
|
.line 2455
|
|
invoke-virtual {p1}, Landroid/net/Uri;->getPathSegments()Ljava/util/List;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_12
|
|
|
|
.line 2456
|
|
invoke-interface {v1}, Ljava/util/List;->size()I
|
|
|
|
move-result v2
|
|
|
|
if-le v2, v5, :cond_12
|
|
|
|
.line 2458
|
|
invoke-virtual {p1}, Landroid/net/Uri;->getPathSegments()Ljava/util/List;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-interface {v2, v5}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Ljava/lang/String;
|
|
|
|
invoke-static {v2}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
|
|
|
|
move-result v2
|
|
|
|
.line 2461
|
|
invoke-interface {v1}, Ljava/util/List;->size()I
|
|
|
|
move-result v1
|
|
|
|
const/4 v5, 0x3
|
|
|
|
if-le v1, v5, :cond_b
|
|
|
|
.line 2462
|
|
invoke-virtual {p1}, Landroid/net/Uri;->getPathSegments()Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-interface {p1, v5}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Ljava/lang/String;
|
|
|
|
const v1, 0x16c8a
|
|
|
|
invoke-static {v1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_b
|
|
const/4 p1, 0x0
|
|
|
|
.line 2465
|
|
:goto_0
|
|
invoke-static {}, Lcom/moji/areamanagement/MJAreaManager;->a()Lcom/moji/common/area/AreaInfo;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_f
|
|
|
|
.line 2466
|
|
iget v5, v1, Lcom/moji/common/area/AreaInfo;->cityId:I
|
|
|
|
if-eq v2, v5, :cond_c
|
|
|
|
iget-boolean v5, v1, Lcom/moji/common/area/AreaInfo;->isLocation:Z
|
|
|
|
if-eqz v5, :cond_f
|
|
|
|
if-eqz p1, :cond_f
|
|
|
|
.line 2468
|
|
:cond_c
|
|
invoke-static {v0}, Lcom/moji/mjweather/TabWeatherFragment;->v(Lcom/moji/mjweather/TabWeatherFragment;)I
|
|
|
|
move-result v5
|
|
|
|
invoke-static {v0, v5}, Lcom/moji/mjweather/TabWeatherFragment;->c(Lcom/moji/mjweather/TabWeatherFragment;I)V
|
|
|
|
.line 2470
|
|
invoke-virtual {p0, v6}, Lcom/moji/mjweather/TabWeatherFragment$MyHandler;->removeMessages(I)V
|
|
|
|
.line 2471
|
|
invoke-virtual {p0, v7}, Lcom/moji/mjweather/TabWeatherFragment$MyHandler;->removeMessages(I)V
|
|
|
|
.line 2472
|
|
invoke-virtual {p0, v6}, Lcom/moji/mjweather/TabWeatherFragment$MyHandler;->obtainMessage(I)Landroid/os/Message;
|
|
|
|
move-result-object v5
|
|
|
|
.line 2473
|
|
iput v8, v5, Landroid/os/Message;->arg1:I
|
|
|
|
const-wide/16 v8, 0x3e8
|
|
|
|
.line 2474
|
|
invoke-virtual {p0, v5, v8, v9}, Lcom/moji/mjweather/TabWeatherFragment$MyHandler;->sendMessageDelayed(Landroid/os/Message;J)Z
|
|
|
|
.line 2475
|
|
invoke-virtual {p0, v7, v3, v4}, Lcom/moji/mjweather/TabWeatherFragment$MyHandler;->sendEmptyMessageDelayed(IJ)Z
|
|
|
|
.line 2476
|
|
invoke-static {}, Lcom/moji/weatherprovider/provider/WeatherProvider;->b()Lcom/moji/weatherprovider/provider/WeatherProvider;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v3, v1}, Lcom/moji/weatherprovider/provider/WeatherProvider;->a(Lcom/moji/common/area/AreaInfo;)Lcom/moji/weatherprovider/data/Weather;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_d
|
|
|
|
.line 2477
|
|
iget-object v3, v1, Lcom/moji/weatherprovider/data/Weather;->mDetail:Lcom/moji/weatherprovider/data/Detail;
|
|
|
|
if-eqz v3, :cond_d
|
|
|
|
.line 2478
|
|
iget-object v1, v1, Lcom/moji/weatherprovider/data/Weather;->mDetail:Lcom/moji/weatherprovider/data/Detail;
|
|
|
|
invoke-virtual {v1}, Lcom/moji/weatherprovider/data/Detail;->isDay()Z
|
|
|
|
move-result v1
|
|
|
|
invoke-static {v0, v1}, Lcom/moji/mjweather/TabWeatherFragment;->b(Lcom/moji/mjweather/TabWeatherFragment;Z)Z
|
|
|
|
.line 2480
|
|
:cond_d
|
|
invoke-virtual {v0}, Lcom/moji/mjweather/TabWeatherFragment;->g()Lcom/moji/mjweather/weather/WeatherPageView;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_12
|
|
|
|
.line 2481
|
|
invoke-virtual {v0}, Lcom/moji/mjweather/weather/WeatherPageView;->getCityArea()Lcom/moji/common/area/AreaInfo;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_12
|
|
|
|
invoke-virtual {v0}, Lcom/moji/mjweather/weather/WeatherPageView;->getCityArea()Lcom/moji/common/area/AreaInfo;
|
|
|
|
move-result-object v1
|
|
|
|
iget v1, v1, Lcom/moji/common/area/AreaInfo;->cityId:I
|
|
|
|
if-eq v2, v1, :cond_e
|
|
|
|
invoke-virtual {v0}, Lcom/moji/mjweather/weather/WeatherPageView;->getCityArea()Lcom/moji/common/area/AreaInfo;
|
|
|
|
move-result-object v1
|
|
|
|
iget-boolean v1, v1, Lcom/moji/common/area/AreaInfo;->isLocation:Z
|
|
|
|
if-eqz v1, :cond_12
|
|
|
|
if-eqz p1, :cond_12
|
|
|
|
.line 2482
|
|
:cond_e
|
|
invoke-virtual {v0}, Lcom/moji/mjweather/weather/WeatherPageView;->getPresenter()Lcom/moji/mjweather/weather/WeatherPagePresenter;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Lcom/moji/mjweather/weather/WeatherPagePresenter;->i()Z
|
|
|
|
.line 2483
|
|
invoke-virtual {v0}, Lcom/moji/mjweather/weather/WeatherPageView;->getPresenter()Lcom/moji/mjweather/weather/WeatherPagePresenter;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Lcom/moji/mjweather/weather/WeatherPagePresenter;->l()V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_f
|
|
const-string p1, "TabWeatherFragment"
|
|
|
|
const-string v0, "handleMessage: HANDLER_WEATHER_DATA_CHANGE"
|
|
|
|
.line 2486
|
|
invoke-static {p1, v0}, Lcom/moji/tool/log/MJLogger;->c(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 2443
|
|
:cond_10
|
|
invoke-static {v0}, Lcom/moji/mjweather/TabWeatherFragment;->u(Lcom/moji/mjweather/TabWeatherFragment;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_12
|
|
|
|
invoke-virtual {v0}, Lcom/moji/mjweather/TabWeatherFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_12
|
|
|
|
.line 2444
|
|
invoke-virtual {v0}, Lcom/moji/mjweather/TabWeatherFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1}, Lcom/moji/notify/NotifyPreference;->a(Landroid/content/Context;)Lcom/moji/notify/NotifyPreference;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_12
|
|
|
|
.line 2445
|
|
invoke-virtual {p1}, Lcom/moji/notify/NotifyPreference;->c()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_12
|
|
|
|
const-string p1, "TabWeatherFragment"
|
|
|
|
const-string v1, "handleMessage: startNotify"
|
|
|
|
.line 2446
|
|
invoke-static {p1, v1}, Lcom/moji/tool/log/MJLogger;->b(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 2447
|
|
invoke-virtual {v0}, Lcom/moji/mjweather/TabWeatherFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1}, Lcom/moji/notify/NotifyService;->startNotify(Landroid/content/Context;)V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_11
|
|
const-string p1, "TabWeatherFragment"
|
|
|
|
const-string v0, "handleMessage: HANDLER_CITY_CHANGE"
|
|
|
|
.line 2434
|
|
invoke-static {p1, v0}, Lcom/moji/tool/log/MJLogger;->b(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 2435
|
|
invoke-virtual {p0, v7}, Lcom/moji/mjweather/TabWeatherFragment$MyHandler;->removeMessages(I)V
|
|
|
|
.line 2436
|
|
invoke-virtual {p0, v6}, Lcom/moji/mjweather/TabWeatherFragment$MyHandler;->removeMessages(I)V
|
|
|
|
.line 2437
|
|
invoke-virtual {p0, v6}, Lcom/moji/mjweather/TabWeatherFragment$MyHandler;->obtainMessage(I)Landroid/os/Message;
|
|
|
|
move-result-object p1
|
|
|
|
.line 2438
|
|
iput v5, p1, Landroid/os/Message;->arg1:I
|
|
|
|
.line 2439
|
|
invoke-virtual {p0, p1}, Lcom/moji/mjweather/TabWeatherFragment$MyHandler;->sendMessage(Landroid/os/Message;)Z
|
|
|
|
.line 2440
|
|
invoke-virtual {p0, v7, v3, v4}, Lcom/moji/mjweather/TabWeatherFragment$MyHandler;->sendEmptyMessageDelayed(IJ)Z
|
|
|
|
:cond_12
|
|
:goto_1
|
|
return-void
|
|
|
|
nop
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x62
|
|
:pswitch_1
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|