.class public Lcom/moji/mjweather/MainActivity;
.super Lcom/moji/base/MJActivity;
.source "MainActivity.java"

# interfaces
.implements Lcom/moji/base/ISwitchFrontAndBack;


# annotations
.annotation build Lcom/moji/router/annotation/Router;
.end annotation

.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/moji/mjweather/MainActivity$PressureSensorEventRunnable;,
        Lcom/moji/mjweather/MainActivity$MainHandler;
    }
.end annotation


# static fields
.field public static final ACTION_OPEN_ALERT:Ljava/lang/String; = "com.moji.hisense.open.alert.actitivty"

.field public static final KEY_CHANGE_LANGUAGE:Ljava/lang/String; = "changeLanguage"

.field public static final KEY_IS_FIRST_RUN:Ljava/lang/String; = "is_first_run"

.field public static final KEY_SELECT_TAB_LIVE:Ljava/lang/String; = "selectTabLive"

.field public static final KEY_SELECT_TAB_ME:Ljava/lang/String; = "selectTabMe"

.field public static final MAIN_FRAGMENT:Ljava/lang/String; = "main_fragment"

.field public static final SCREEN_FRAGMENT:Ljava/lang/String; = "screen_fragment"

.field public static sOnCreateTime:J


# instance fields
.field private A:I

.field private B:Lcom/moji/dialog/MJDialog;

.field private C:Lcom/moji/preferences/ProcessPrefer;

.field private D:Ljava/lang/String;

.field private E:Ljava/lang/String;

.field private F:Lcom/moji/member/helper/CouponHelper;

.field private G:Z

.field a:Z

.field b:Landroid/widget/LinearLayout;

.field private c:Landroid/support/v4/app/FragmentManager;

.field private i:Lcom/moji/mjweather/TableScreenFragment;
    .annotation build Landroid/support/annotation/Nullable;
    .end annotation
.end field

.field private j:Z

.field private k:Z

.field private l:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/moji/common/area/AreaInfo;",
            ">;"
        }
    .end annotation
.end field

.field private m:Lcom/moji/mjweather/MainActivity$MainHandler;

.field private n:Z

.field private o:Z

.field private p:Landroid/content/Intent;

.field private q:Z

.field private r:Z

.field private s:Z

.field private t:Landroid/hardware/SensorManager;

.field private u:Landroid/hardware/SensorEventListener;

.field private v:Z

.field private w:Ljava/lang/String;

.field private x:Landroid/content/ClipboardManager;

.field private y:Z

.field private z:Landroid/support/v4/app/FragmentTransaction;


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

    .line 204
    invoke-direct {p0}, Lcom/moji/base/MJActivity;-><init>()V

    const/4 v0, 0x0

    .line 221
    iput-boolean v0, p0, Lcom/moji/mjweather/MainActivity;->j:Z

    .line 222
    iput-boolean v0, p0, Lcom/moji/mjweather/MainActivity;->k:Z

    .line 223
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    iput-object v1, p0, Lcom/moji/mjweather/MainActivity;->l:Ljava/util/List;

    .line 225
    iput-boolean v0, p0, Lcom/moji/mjweather/MainActivity;->n:Z

    .line 226
    iput-boolean v0, p0, Lcom/moji/mjweather/MainActivity;->o:Z

    const/4 v1, 0x0

    .line 227
    iput-object v1, p0, Lcom/moji/mjweather/MainActivity;->p:Landroid/content/Intent;

    const/4 v2, 0x1

    .line 229
    iput-boolean v2, p0, Lcom/moji/mjweather/MainActivity;->q:Z

    .line 230
    iput-boolean v0, p0, Lcom/moji/mjweather/MainActivity;->r:Z

    .line 231
    iput-boolean v0, p0, Lcom/moji/mjweather/MainActivity;->s:Z

    .line 234
    iput-boolean v2, p0, Lcom/moji/mjweather/MainActivity;->v:Z

    const-string v3, "none"

    .line 235
    iput-object v3, p0, Lcom/moji/mjweather/MainActivity;->w:Ljava/lang/String;

    .line 237
    iput-boolean v2, p0, Lcom/moji/mjweather/MainActivity;->y:Z

    .line 932
    iput-object v1, p0, Lcom/moji/mjweather/MainActivity;->B:Lcom/moji/dialog/MJDialog;

    .line 933
    iput-boolean v2, p0, Lcom/moji/mjweather/MainActivity;->a:Z

    .line 1189
    new-instance v1, Lcom/moji/preferences/ProcessPrefer;

    invoke-direct {v1}, Lcom/moji/preferences/ProcessPrefer;-><init>()V

    iput-object v1, p0, Lcom/moji/mjweather/MainActivity;->C:Lcom/moji/preferences/ProcessPrefer;

    .line 1190
    iget-object v1, p0, Lcom/moji/mjweather/MainActivity;->C:Lcom/moji/preferences/ProcessPrefer;

    sget-object v2, Lcom/moji/preferences/ProcessPrefer$KeyConstant;->CHANNEL:Lcom/moji/preferences/ProcessPrefer$KeyConstant;

    const-string v3, "4999"

    invoke-virtual {v1, v2, v3}, Lcom/moji/preferences/ProcessPrefer;->a(Lcom/moji/tool/preferences/core/IPreferKey;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/moji/mjweather/MainActivity;->D:Ljava/lang/String;

    .line 1952
    iput-boolean v0, p0, Lcom/moji/mjweather/MainActivity;->G:Z

    return-void
.end method

.method private A()V
    .locals 4

    .line 1450
    iget-object v0, p0, Lcom/moji/mjweather/MainActivity;->F:Lcom/moji/member/helper/CouponHelper;

    if-nez v0, :cond_0

    .line 1451
    new-instance v0, Lcom/moji/member/helper/CouponHelper;

    invoke-direct {v0}, Lcom/moji/member/helper/CouponHelper;-><init>()V

    iput-object v0, p0, Lcom/moji/mjweather/MainActivity;->F:Lcom/moji/member/helper/CouponHelper;

    .line 1454
    :cond_0
    invoke-virtual {p0}, Lcom/moji/mjweather/MainActivity;->GetClipBoardContent()Ljava/lang/String;

    move-result-object v0

    .line 1456
    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_3

    .line 1457
    iget-object v1, p0, Lcom/moji/mjweather/MainActivity;->x:Landroid/content/ClipboardManager;

    if-eqz v1, :cond_1

    .line 1458
    iget-object v1, p0, Lcom/moji/mjweather/MainActivity;->x:Landroid/content/ClipboardManager;

    const/4 v2, 0x0

    const-string v3, ""

    invoke-static {v2, v3}, Landroid/content/ClipData;->newPlainText(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Landroid/content/ClipData;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/content/ClipboardManager;->setPrimaryClip(Landroid/content/ClipData;)V

    .line 1460
    :cond_1
    invoke-static {}, Lcom/moji/base/MJActivityStack;->a()Lcom/moji/base/MJActivityStack;

    move-result-object v1

    invoke-virtual {v1}, Lcom/moji/base/MJActivityStack;->b()Landroid/app/Activity;

    move-result-object v1

    if-nez v1, :cond_2

    move-object v1, p0

    .line 1464
    :cond_2
    iget-object v2, p0, Lcom/moji/mjweather/MainActivity;->F:Lcom/moji/member/helper/CouponHelper;

    new-instance v3, Lcom/moji/mjweather/MainActivity$15;

    invoke-direct {v3, p0}, Lcom/moji/mjweather/MainActivity$15;-><init>(Lcom/moji/mjweather/MainActivity;)V

    invoke-virtual {v2, v1, v0, v3}, Lcom/moji/member/helper/CouponHelper;->a(Landroid/app/Activity;Ljava/lang/String;Lcom/moji/member/helper/CouponHelper$ChangeTabListener;)V

    :cond_3
    return-void
.end method

.method private B()V
    .locals 3

    .line 1527
    iget-boolean v0, p0, Lcom/moji/mjweather/MainActivity;->j:Z

    if-nez v0, :cond_1

    invoke-static {}, Lcom/moji/novice/tutorial/NoviceTutorialManager;->a()Lcom/moji/novice/tutorial/NoviceTutorialManager;

    move-result-object v0

    invoke-virtual {v0}, Lcom/moji/novice/tutorial/NoviceTutorialManager;->b()Z

    move-result v0

    if-nez v0, :cond_1

    invoke-virtual {p0}, Lcom/moji/mjweather/MainActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    sget-object v1, Lcom/moji/mjweather/TableScreenFragment;->d:[Ljava/lang/String;

    invoke-static {v0, v1}, Lcom/moji/tool/permission/EasyPermissions;->a(Landroid/content/Context;[Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 1529
    new-instance v0, Lcom/moji/mjad/MojiAdRequest;

    invoke-direct {v0, p0}, Lcom/moji/mjad/MojiAdRequest;-><init>(Landroid/content/Context;)V

    new-instance v1, Lcom/moji/mjweather/MainActivity$16;

    invoke-direct {v1, p0}, Lcom/moji/mjweather/MainActivity$16;-><init>(Lcom/moji/mjweather/MainActivity;)V

    invoke-virtual {v0, v1}, Lcom/moji/mjad/MojiAdRequest;->a(Lcom/moji/mjad/splash/network/AdSplashRequestCallback;)Ljava/lang/String;

    move-result-object v0

    .line 1554
    iget-object v1, p0, Lcom/moji/mjweather/MainActivity;->i:Lcom/moji/mjweather/TableScreenFragment;

    if-eqz v1, :cond_0

    .line 1555
    iget-object v1, p0, Lcom/moji/mjweather/MainActivity;->i:Lcom/moji/mjweather/TableScreenFragment;

    invoke-virtual {v1, v0}, Lcom/moji/mjweather/TableScreenFragment;->a(Ljava/lang/String;)V

    :cond_0
    const-string v0, "zdxvip"

    .line 1558
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, " mainactivity  isvip "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    new-instance v2, Lcom/moji/preferences/ProcessPrefer;

    invoke-direct {v2}, Lcom/moji/preferences/ProcessPrefer;-><init>()V

    invoke-virtual {v2}, Lcom/moji/preferences/ProcessPrefer;->g()Z

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 1559
    new-instance v0, Lcom/moji/preferences/ProcessPrefer;

    invoke-direct {v0}, Lcom/moji/preferences/ProcessPrefer;-><init>()V

    invoke-virtual {v0}, Lcom/moji/preferences/ProcessPrefer;->g()Z

    move-result v0

    if-nez v0, :cond_1

    .line 1561
    new-instance v0, Lcom/moji/mjweather/MainActivity$17;

    sget-object v1, Lcom/moji/tool/thread/ThreadPriority;->NORMAL:Lcom/moji/tool/thread/ThreadPriority;

    invoke-direct {v0, p0, v1}, Lcom/moji/mjweather/MainActivity$17;-><init>(Lcom/moji/mjweather/MainActivity;Lcom/moji/tool/thread/ThreadPriority;)V

    sget-object v1, Lcom/moji/tool/thread/ThreadType;->NORMAL_THREAD:Lcom/moji/tool/thread/ThreadType;

    const/4 v2, 0x0

    new-array v2, v2, [Ljava/lang/Void;

    .line 1581
    invoke-virtual {v0, v1, v2}, Lcom/moji/mjweather/MainActivity$17;->a(Lcom/moji/tool/thread/ThreadType;[Ljava/lang/Object;)Lcom/moji/tool/thread/task/MJAsyncTask;

    :cond_1
    return-void
.end method

.method private C()V
    .locals 13

    .line 1658
    new-instance v0, Lcom/moji/preferences/ProcessPrefer;

    invoke-direct {v0}, Lcom/moji/preferences/ProcessPrefer;-><init>()V

    .line 1659
    invoke-virtual {v0}, Lcom/moji/preferences/ProcessPrefer;->r()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_0

    return-void

    .line 1662
    :cond_0
    invoke-static {}, Lcom/moji/preferences/SettingPrefer;->c()Lcom/moji/preferences/SettingPrefer;

    move-result-object v1

    .line 1663
    invoke-direct {p0}, Lcom/moji/mjweather/MainActivity;->D()I

    move-result v2

    invoke-virtual {v1}, Lcom/moji/preferences/SettingPrefer;->d()I

    move-result v3

    if-eq v2, v3, :cond_e

    .line 1664
    invoke-direct {p0}, Lcom/moji/mjweather/MainActivity;->D()I

    move-result v2

    invoke-virtual {v1, v2}, Lcom/moji/preferences/SettingPrefer;->a(I)V

    .line 1665
    invoke-static {}, Lcom/moji/preferences/SettingNotificationPrefer;->c()Lcom/moji/preferences/SettingNotificationPrefer;

    move-result-object v1

    .line 1666
    invoke-static {}, Lcom/moji/appwidget/core/MJAppWidgetProvider;->a()[Lcom/moji/appwidget/core/EWidgetSize;

    move-result-object v2

    .line 1667
    array-length v3, v2

    const/4 v4, 0x1

    const/4 v5, 0x0

    if-lez v3, :cond_1

    const/4 v3, 0x1

    goto :goto_0

    :cond_1
    const/4 v3, 0x0

    :goto_0
    const/4 v6, 0x2

    if-eqz v3, :cond_7

    const/4 v3, 0x0

    const/4 v7, 0x0

    const/4 v8, 0x0

    const/4 v9, 0x0

    const/4 v10, 0x0

    .line 1673
    :goto_1
    array-length v11, v2

    if-ge v3, v11, :cond_3

    .line 1674
    aget-object v11, v2, v3

    if-eqz v11, :cond_2

    .line 1675
    sget-object v11, Lcom/moji/mjweather/MainActivity$24;->a:[I

    aget-object v12, v2, v3

    invoke-virtual {v12}, Lcom/moji/appwidget/core/EWidgetSize;->ordinal()I

    move-result v12

    aget v11, v11, v12

    packed-switch v11, :pswitch_data_0

    goto :goto_2

    :pswitch_0
    add-int/lit8 v10, v10, 0x1

    goto :goto_2

    :pswitch_1
    add-int/lit8 v9, v9, 0x1

    goto :goto_2

    :pswitch_2
    add-int/lit8 v8, v8, 0x1

    goto :goto_2

    :pswitch_3
    add-int/lit8 v7, v7, 0x1

    :cond_2
    :goto_2
    add-int/lit8 v3, v3, 0x1

    goto :goto_1

    .line 1691
    :cond_3
    invoke-static {}, Lcom/moji/skinshop/preference/SkinShopPref;->a()Lcom/moji/skinshop/preference/SkinShopPref;

    move-result-object v2

    invoke-virtual {v2}, Lcom/moji/skinshop/preference/SkinShopPref;->h()Ljava/lang/String;

    move-result-object v2

    const-string v3, "A"

    .line 1693
    invoke-static {v2}, Lcom/moji/skinshop/util/SkinUtil;->b(Ljava/lang/String;)Z

    move-result v11

    if-eqz v11, :cond_6

    .line 1694
    invoke-virtual {v2}, Ljava/lang/String;->toUpperCase()Ljava/lang/String;

    move-result-object v11

    const-string v12, "ORG_WHITE"

    invoke-virtual {v11, v12}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v11

    if-eqz v11, :cond_4

    const-string v2, "B"

    goto :goto_3

    .line 1696
    :cond_4
    invoke-virtual {v2}, Ljava/lang/String;->toUpperCase()Ljava/lang/String;

    move-result-object v2

    const-string v11, "ORG_BLACK"

    invoke-virtual {v2, v11}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_5

    const-string v2, "C"

    goto :goto_3

    :cond_5
    move-object v2, v3

    .line 1704
    :cond_6
    :goto_3
    new-array v3, v6, [Ljava/lang/Object;

    aput-object v2, v3, v5

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v2, v7}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v7, "-"

    invoke-virtual {v2, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, v8}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v7, "-"

    invoke-virtual {v2, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, v9}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v7, "-"

    invoke-virtual {v2, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, v10}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    aput-object v2, v3, v4

    invoke-static {v3}, Lcom/moji/statistics/EventParams;->getProperty([Ljava/lang/Object;)Lorg/json/JSONObject;

    move-result-object v2

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

    move-result-object v3

    sget-object v7, Lcom/moji/statistics/EVENT_TAG;->WIDGET_PLUGIN_USE_SCALE:Lcom/moji/statistics/EVENT_TAG;

    const-string v8, "1"

    invoke-virtual {v3, v7, v8, v2}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;Lorg/json/JSONObject;)Lcom/moji/statistics/EventManager;

    goto :goto_4

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

    move-result-object v2

    sget-object v3, Lcom/moji/statistics/EVENT_TAG;->WIDGET_PLUGIN_USE_SCALE:Lcom/moji/statistics/EVENT_TAG;

    const-string v7, "0"

    invoke-virtual {v2, v3, v7}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;)Lcom/moji/statistics/EventManager;

    .line 1709
    :goto_4
    invoke-static {}, Lcom/moji/areamanagement/MJAreaManager;->c()Ljava/util/List;

    move-result-object v2

    if-eqz v2, :cond_8

    .line 1711
    invoke-interface {v2}, Ljava/util/List;->isEmpty()Z

    move-result v3

    if-nez v3, :cond_8

    .line 1712
    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v2

    goto :goto_5

    :cond_8
    const/4 v2, 0x0

    .line 1714
    :goto_5
    invoke-static {p0}, Lcom/moji/notify/NotifyPreference;->a(Landroid/content/Context;)Lcom/moji/notify/NotifyPreference;

    move-result-object v3

    if-eqz v3, :cond_9

    .line 1715
    invoke-virtual {v3}, Lcom/moji/notify/NotifyPreference;->c()Z

    move-result v3

    if-eqz v3, :cond_9

    const/4 v3, 0x1

    goto :goto_6

    :cond_9
    const/4 v3, 0x0

    .line 1716
    :goto_6
    new-instance v7, Lcom/moji/preferences/DefaultPrefer;

    invoke-direct {v7}, Lcom/moji/preferences/DefaultPrefer;-><init>()V

    invoke-virtual {v7}, Lcom/moji/preferences/DefaultPrefer;->f()Z

    move-result v7

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

    move-result-object v8

    sget-object v9, Lcom/moji/statistics/EVENT_TAG;->SET_PUSH_TOTAL:Lcom/moji/statistics/EVENT_TAG;

    invoke-virtual {v1}, Lcom/moji/preferences/SettingNotificationPrefer;->d()Z

    move-result v10

    invoke-direct {p0, v10}, Lcom/moji/mjweather/MainActivity;->c(Z)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v8, v9, v10}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;)Lcom/moji/statistics/EventManager;

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

    move-result-object v8

    sget-object v9, Lcom/moji/statistics/EVENT_TAG;->SET_MESSAGE_ALERT:Lcom/moji/statistics/EVENT_TAG;

    invoke-virtual {v1}, Lcom/moji/preferences/SettingNotificationPrefer;->f()Z

    move-result v10

    invoke-direct {p0, v10}, Lcom/moji/mjweather/MainActivity;->c(Z)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v8, v9, v10}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;)Lcom/moji/statistics/EventManager;

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

    move-result-object v8

    sget-object v9, Lcom/moji/statistics/EVENT_TAG;->SET_MESSAGE_COMMENT:Lcom/moji/statistics/EVENT_TAG;

    invoke-virtual {v1}, Lcom/moji/preferences/SettingNotificationPrefer;->g()Z

    move-result v10

    invoke-direct {p0, v10}, Lcom/moji/mjweather/MainActivity;->c(Z)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v8, v9, v10}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;)Lcom/moji/statistics/EventManager;

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

    move-result-object v8

    sget-object v9, Lcom/moji/statistics/EVENT_TAG;->SET_MESSAGE_DND:Lcom/moji/statistics/EVENT_TAG;

    invoke-virtual {v1}, Lcom/moji/preferences/SettingNotificationPrefer;->l()Z

    move-result v10

    invoke-direct {p0, v10}, Lcom/moji/mjweather/MainActivity;->c(Z)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v8, v9, v10}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;)Lcom/moji/statistics/EventManager;

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

    move-result-object v8

    sget-object v9, Lcom/moji/statistics/EVENT_TAG;->SET_ARTICLE:Lcom/moji/statistics/EVENT_TAG;

    invoke-virtual {v1}, Lcom/moji/preferences/SettingNotificationPrefer;->k()Z

    move-result v1

    invoke-direct {p0, v1}, Lcom/moji/mjweather/MainActivity;->c(Z)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v8, v9, v1}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;)Lcom/moji/statistics/EventManager;

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

    move-result-object v1

    sget-object v8, Lcom/moji/statistics/EVENT_TAG;->SETTINGS_ANIMATION:Lcom/moji/statistics/EVENT_TAG;

    new-instance v9, Lcom/moji/weathersence/data/WeatherScenePreference;

    invoke-direct {v9}, Lcom/moji/weathersence/data/WeatherScenePreference;-><init>()V

    invoke-virtual {v9}, Lcom/moji/weathersence/data/WeatherScenePreference;->i()Z

    move-result v9

    invoke-direct {p0, v9}, Lcom/moji/mjweather/MainActivity;->c(Z)Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v1, v8, v9}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;)Lcom/moji/statistics/EventManager;

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

    move-result-object v1

    sget-object v8, Lcom/moji/statistics/EVENT_TAG;->SET_SUBSCRIBE_PUSH:Lcom/moji/statistics/EVENT_TAG;

    invoke-static {}, Lcom/moji/preferences/SettingNotificationPrefer;->c()Lcom/moji/preferences/SettingNotificationPrefer;

    move-result-object v9

    invoke-virtual {v9}, Lcom/moji/preferences/SettingNotificationPrefer;->o()Z

    move-result v9

    invoke-direct {p0, v9}, Lcom/moji/mjweather/MainActivity;->c(Z)Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v1, v8, v9}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;)Lcom/moji/statistics/EventManager;

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

    move-result-object v1

    sget-object v8, Lcom/moji/statistics/EVENT_TAG;->SET_NOTIFY:Lcom/moji/statistics/EVENT_TAG;

    invoke-direct {p0, v3}, Lcom/moji/mjweather/MainActivity;->c(Z)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v8, v3}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;)Lcom/moji/statistics/EventManager;

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

    move-result-object v1

    sget-object v3, Lcom/moji/statistics/EVENT_TAG;->COMMON_VALUE:Lcom/moji/statistics/EVENT_TAG;

    invoke-static {}, Lcom/moji/tool/DeviceTool;->W()Z

    move-result v8

    if-eqz v8, :cond_a

    const-string v8, "1"

    goto :goto_7

    :cond_a
    const-string v8, "0"

    :goto_7
    const/4 v9, 0x5

    new-array v9, v9, [Ljava/lang/Object;

    invoke-static {}, Lcom/moji/tool/DeviceTool;->b()I

    move-result v10

    invoke-static {v10}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v10

    aput-object v10, v9, v5

    .line 1726
    invoke-static {}, Lcom/moji/tool/DeviceTool;->c()I

    move-result v10

    invoke-static {v10}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v10

    aput-object v10, v9, v4

    .line 1727
    invoke-virtual {v0}, Lcom/moji/preferences/ProcessPrefer;->n()Ljava/lang/String;

    move-result-object v0

    aput-object v0, v9, v6

    const/4 v0, 0x3

    sget-object v4, Landroid/os/Build;->MODEL:Ljava/lang/String;

    aput-object v4, v9, v0

    const/4 v0, 0x4

    sget v4, Landroid/os/Build$VERSION;->SDK_INT:I

    .line 1729
    invoke-static {v4}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v4

    aput-object v4, v9, v0

    .line 1725
    invoke-static {v9}, Lcom/moji/statistics/EventParams;->getProperty([Ljava/lang/Object;)Lorg/json/JSONObject;

    move-result-object v0

    invoke-virtual {v1, v3, v8, v0}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;Lorg/json/JSONObject;)Lcom/moji/statistics/EventManager;

    if-eqz v7, :cond_b

    .line 1732
    new-instance v0, Lcom/moji/preferences/DefaultPrefer;

    invoke-direct {v0}, Lcom/moji/preferences/DefaultPrefer;-><init>()V

    invoke-virtual {v0}, Lcom/moji/preferences/DefaultPrefer;->e()I

    move-result v0

    .line 1734
    new-instance v1, Lorg/json/JSONObject;

    invoke-direct {v1}, Lorg/json/JSONObject;-><init>()V

    :try_start_0
    const-string v3, "property1"

    .line 1736
    invoke-virtual {v1, v3, v0}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_8

    :catch_0
    move-exception v0

    const-string v3, "MainActivity"

    .line 1738
    invoke-static {v3, v0}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V

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

    move-result-object v0

    sget-object v3, Lcom/moji/statistics/EVENT_TAG;->AVATAR_USE_SCALE:Lcom/moji/statistics/EVENT_TAG;

    invoke-direct {p0, v7}, Lcom/moji/mjweather/MainActivity;->c(Z)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v0, v3, v4, v1}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;Lorg/json/JSONObject;)Lcom/moji/statistics/EventManager;

    goto :goto_9

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

    move-result-object v0

    sget-object v1, Lcom/moji/statistics/EVENT_TAG;->AVATAR_USE_SCALE:Lcom/moji/statistics/EVENT_TAG;

    invoke-direct {p0, v7}, Lcom/moji/mjweather/MainActivity;->c(Z)Ljava/lang/String;

    move-result-object v3

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

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

    move-result-object v0

    sget-object v1, Lcom/moji/statistics/EVENT_TAG;->CITY_NUM_USE_SCALE:Lcom/moji/statistics/EVENT_TAG;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v2, ""

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

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

    .line 1745
    invoke-static {}, Lcom/moji/areamanagement/MJAreaManager;->d()Ljava/util/List;

    move-result-object v0

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

    move-result-object v1

    sget-object v2, Lcom/moji/statistics/EVENT_TAG;->CITY_FOOTPRINT_NUM_USE_SCALE:Lcom/moji/statistics/EVENT_TAG;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    if-nez v0, :cond_c

    goto :goto_a

    :cond_c
    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v5

    :goto_a
    invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v0, ""

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

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

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

    move-result-object v0

    sget-object v1, Lcom/moji/statistics/EVENT_TAG;->CITY_ADD_NEW_FOOTPRINT:Lcom/moji/statistics/EVENT_TAG;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-static {}, Lcom/moji/areamanagement/MJAreaManager;->e()I

    move-result v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v3, ""

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

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

    .line 1750
    new-instance v0, Lcom/moji/preferences/DefaultPrefer;

    invoke-direct {v0}, Lcom/moji/preferences/DefaultPrefer;-><init>()V

    invoke-virtual {v0}, Lcom/moji/preferences/DefaultPrefer;->l()Z

    move-result v0

    if-eqz v0, :cond_d

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

    move-result-object v0

    sget-object v1, Lcom/moji/statistics/EVENT_TAG;->SET_FOOTPRINT_CITY:Lcom/moji/statistics/EVENT_TAG;

    const-string v2, "1"

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

    goto :goto_b

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

    move-result-object v0

    sget-object v1, Lcom/moji/statistics/EVENT_TAG;->SET_FOOTPRINT_CITY:Lcom/moji/statistics/EVENT_TAG;

    const-string v2, "0"

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

    .line 1757
    :goto_b
    new-instance v0, Lcom/moji/mjweather/quicksetting/QuickSettingCase;

    invoke-direct {v0, p0}, Lcom/moji/mjweather/quicksetting/QuickSettingCase;-><init>(Landroid/content/Context;)V

    invoke-virtual {v0}, Lcom/moji/mjweather/quicksetting/QuickSettingCase;->d()V

    .line 1758
    invoke-static {}, Lcom/moji/statistics/datause/DataUsageHelper;->a()V

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

    move-result-object v0

    sget-object v1, Lcom/moji/statistics/EVENT_TAG;->WEATHER_BACKGROUND_USE_SCALE:Lcom/moji/statistics/EVENT_TAG;

    new-instance v2, Lcom/moji/weathersence/data/WeatherScenePreference;

    invoke-direct {v2}, Lcom/moji/weathersence/data/WeatherScenePreference;-><init>()V

    invoke-virtual {v2}, Lcom/moji/weathersence/data/WeatherScenePreference;->c()Ljava/lang/String;

    move-result-object v2

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

    :cond_e
    return-void

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

.method private D()I
    .locals 3

    .line 1829
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    .line 1830
    invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;

    move-result-object v2

    .line 1831
    invoke-virtual {v2, v0, v1}, Ljava/util/Calendar;->setTimeInMillis(J)V

    const/4 v0, 0x5

    .line 1832
    invoke-virtual {v2, v0}, Ljava/util/Calendar;->get(I)I

    move-result v0

    return v0
.end method

.method private E()V
    .locals 3

    .line 1854
    new-instance v0, Lcom/moji/mjweather/MainActivity$21;

    invoke-direct {v0, p0}, Lcom/moji/mjweather/MainActivity$21;-><init>(Lcom/moji/mjweather/MainActivity;)V

    sget-object v1, Lcom/moji/tool/thread/ThreadType;->IO_THREAD:Lcom/moji/tool/thread/ThreadType;

    sget-object v2, Lcom/moji/tool/thread/ThreadPriority;->HIGH:Lcom/moji/tool/thread/ThreadPriority;

    invoke-static {v0, v1, v2}, Lcom/moji/tool/thread/MJPools;->a(Ljava/lang/Runnable;Lcom/moji/tool/thread/ThreadType;Lcom/moji/tool/thread/ThreadPriority;)I

    return-void
.end method

.method private F()V
    .locals 3

    .line 1889
    new-instance v0, Lcom/moji/mjweather/MainActivity$22;

    invoke-direct {v0, p0}, Lcom/moji/mjweather/MainActivity$22;-><init>(Lcom/moji/mjweather/MainActivity;)V

    sget-object v1, Lcom/moji/tool/thread/ThreadType;->EVENT:Lcom/moji/tool/thread/ThreadType;

    sget-object v2, Lcom/moji/tool/thread/ThreadPriority;->NORMAL:Lcom/moji/tool/thread/ThreadPriority;

    invoke-static {v0, v1, v2}, Lcom/moji/tool/thread/MJPools;->a(Ljava/lang/Runnable;Lcom/moji/tool/thread/ThreadType;Lcom/moji/tool/thread/ThreadPriority;)I

    return-void
.end method

.method private G()V
    .locals 4

    const-string v0, "MainActivity"

    const-string v1, "registerPressureSensor"

    .line 2020
    invoke-static {v0, v1}, Lcom/moji/tool/log/MJLogger;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 2021
    invoke-static {}, Lcom/moji/tool/DeviceTool;->n()Z

    move-result v0

    if-eqz v0, :cond_4

    iget-object v0, p0, Lcom/moji/mjweather/MainActivity;->u:Landroid/hardware/SensorEventListener;

    if-eqz v0, :cond_0

    goto :goto_0

    .line 2022
    :cond_0
    invoke-static {}, Lcom/moji/areamanagement/MJAreaManager;->h()Z

    move-result v0

    if-nez v0, :cond_1

    return-void

    :cond_1
    const-string v0, "MainActivity"

    const-string v1, "registerPressureSensor has presssure sensor"

    .line 2023
    invoke-static {v0, v1}, Lcom/moji/tool/log/MJLogger;->b(Ljava/lang/String;Ljava/lang/String;)V

    const-string v0, "sensor"

    .line 2024
    invoke-virtual {p0, v0}, Lcom/moji/mjweather/MainActivity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/hardware/SensorManager;

    iput-object v0, p0, Lcom/moji/mjweather/MainActivity;->t:Landroid/hardware/SensorManager;

    .line 2025
    iget-object v0, p0, Lcom/moji/mjweather/MainActivity;->t:Landroid/hardware/SensorManager;

    const/4 v1, 0x6

    invoke-virtual {v0, v1}, Landroid/hardware/SensorManager;->getDefaultSensor(I)Landroid/hardware/Sensor;

    move-result-object v0

    if-eqz v0, :cond_3

    .line 2027
    new-instance v1, Lcom/moji/mjweather/MainActivity$23;

    invoke-direct {v1, p0}, Lcom/moji/mjweather/MainActivity$23;-><init>(Lcom/moji/mjweather/MainActivity;)V

    iput-object v1, p0, Lcom/moji/mjweather/MainActivity;->u:Landroid/hardware/SensorEventListener;

    .line 2040
    iget-object v1, p0, Lcom/moji/mjweather/MainActivity;->t:Landroid/hardware/SensorManager;

    iget-object v2, p0, Lcom/moji/mjweather/MainActivity;->u:Landroid/hardware/SensorEventListener;

    const/4 v3, 0x3

    invoke-virtual {v1, v2, v0, v3}, Landroid/hardware/SensorManager;->registerListener(Landroid/hardware/SensorEventListener;Landroid/hardware/Sensor;I)Z

    .line 2041
    iget-object v0, p0, Lcom/moji/mjweather/MainActivity;->m:Lcom/moji/mjweather/MainActivity$MainHandler;

    if-nez v0, :cond_2

    new-instance v0, Lcom/moji/mjweather/MainActivity$MainHandler;

    invoke-direct {v0, p0}, Lcom/moji/mjweather/MainActivity$MainHandler;-><init>(Lcom/moji/mjweather/MainActivity;)V

    iput-object v0, p0, Lcom/moji/mjweather/MainActivity;->m:Lcom/moji/mjweather/MainActivity$MainHandler;

    .line 2042
    :cond_2
    iget-object v0, p0, Lcom/moji/mjweather/MainActivity;->m:Lcom/moji/mjweather/MainActivity$MainHandler;

    const/16 v1, 0x64

    invoke-virtual {v0, v1}, Lcom/moji/mjweather/MainActivity$MainHandler;->removeMessages(I)V

    .line 2043
    iget-object v0, p0, Lcom/moji/mjweather/MainActivity;->m:Lcom/moji/mjweather/MainActivity$MainHandler;

    iget-object v2, p0, Lcom/moji/mjweather/MainActivity;->m:Lcom/moji/mjweather/MainActivity$MainHandler;

    invoke-virtual {v2, v1}, Lcom/moji/mjweather/MainActivity$MainHandler;->obtainMessage(I)Landroid/os/Message;

    move-result-object v1

    const-wide/16 v2, 0x2710

    invoke-virtual {v0, v1, v2, v3}, Lcom/moji/mjweather/MainActivity$MainHandler;->sendMessageDelayed(Landroid/os/Message;J)Z

    :cond_3
    return-void

    :cond_4
    :goto_0
    return-void
.end method

.method private H()V
    .locals 2

    const-string v0, "MainActivity"

    const-string v1, "unregisterPressureSensor"

    .line 2072
    invoke-static {v0, v1}, Lcom/moji/tool/log/MJLogger;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 2073
    iget-object v0, p0, Lcom/moji/mjweather/MainActivity;->u:Landroid/hardware/SensorEventListener;

    if-eqz v0, :cond_0

    const-string v0, "MainActivity"

    const-string v1, "unregisterPressureSensor unregister"

    .line 2074
    invoke-static {v0, v1}, Lcom/moji/tool/log/MJLogger;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 2075
    iget-object v0, p0, Lcom/moji/mjweather/MainActivity;->t:Landroid/hardware/SensorManager;

    iget-object v1, p0, Lcom/moji/mjweather/MainActivity;->u:Landroid/hardware/SensorEventListener;

    invoke-virtual {v0, v1}, Landroid/hardware/SensorManager;->unregisterListener(Landroid/hardware/SensorEventListener;)V

    const/4 v0, 0x0

    .line 2076
    iput-object v0, p0, Lcom/moji/mjweather/MainActivity;->u:Landroid/hardware/SensorEventListener;

    :cond_0
    return-void
.end method

.method static synthetic a(Lcom/moji/mjweather/MainActivity;Lcom/moji/mjweather/MainActivity$MainHandler;)Lcom/moji/mjweather/MainActivity$MainHandler;
    .locals 0

    .line 204
    iput-object p1, p0, Lcom/moji/mjweather/MainActivity;->m:Lcom/moji/mjweather/MainActivity$MainHandler;

    return-object p1
.end method

.method static synthetic a(Lcom/moji/mjweather/MainActivity;Ljava/lang/String;)Ljava/lang/String;
    .locals 0

    .line 204
    iput-object p1, p0, Lcom/moji/mjweather/MainActivity;->E:Ljava/lang/String;

    return-object p1
.end method

.method private a()V
    .locals 1

    .line 340
    invoke-static {p0}, Lcom/moji/helper/ContextLanguageHelper;->a(Landroid/app/Activity;)V

    const/4 v0, 0x1

    .line 341
    invoke-direct {p0, v0}, Lcom/moji/mjweather/MainActivity;->a(Z)V

    return-void
.end method

.method private a(Landroid/content/Context;)V
    .locals 13

    .line 1771
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 1772
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    .line 1773
    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    const/4 v3, 0x2

    const/4 v4, 0x3

    const/4 v5, 0x1

    const/4 v6, 0x0

    const/4 v7, 0x0

    .line 1778
    :try_start_0
    invoke-virtual {p1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v8

    if-eqz v8, :cond_5

    .line 1781
    invoke-virtual {v8, v7}, Landroid/content/pm/PackageManager;->getInstalledApplications(I)Ljava/util/List;

    move-result-object v8

    if-eqz v8, :cond_2

    .line 1785
    invoke-interface {v8}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v9

    :cond_0
    :goto_0
    invoke-interface {v9}, Ljava/util/Iterator;->hasNext()Z

    move-result v10

    if-eqz v10, :cond_2

    invoke-interface {v9}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v10

    check-cast v10, Landroid/content/pm/ApplicationInfo;

    if-eqz v10, :cond_0

    .line 1787
    iget-object v11, v10, Landroid/content/pm/ApplicationInfo;->packageName:Ljava/lang/String;

    .line 1788
    invoke-static {v11}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v12

    if-nez v12, :cond_0

    .line 1789
    invoke-virtual {p0, v10}, Lcom/moji/mjweather/MainActivity;->isSystemApp(Landroid/content/pm/ApplicationInfo;)Z

    move-result v10

    if-eqz v10, :cond_1

    .line 1790
    invoke-interface {v0, v11}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 1792
    :cond_1
    invoke-interface {v1, v11}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 1798
    :cond_2
    invoke-interface {v0}, Ljava/util/List;->isEmpty()Z

    move-result v9

    if-nez v9, :cond_3

    .line 1799
    new-instance v9, Lorg/json/JSONArray;

    invoke-direct {v9, v0}, Lorg/json/JSONArray;-><init>(Ljava/util/Collection;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_2
    .catchall {:try_start_0 .. :try_end_0} :catchall_2

    goto :goto_1

    :cond_3
    move-object v9, v6

    .line 1801
    :goto_1
    :try_start_1
    invoke-interface {v1}, Ljava/util/List;->isEmpty()Z

    move-result v0

    if-nez v0, :cond_4

    .line 1802
    new-instance v0, Lorg/json/JSONArray;

    invoke-direct {v0, v1}, Lorg/json/JSONArray;-><init>(Ljava/util/Collection;)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_2

    :cond_4
    move-object v0, v6

    goto :goto_2

    :catchall_0
    move-exception p1

    move-object v1, v6

    goto/16 :goto_8

    :catch_0
    move-exception p1

    move-object v0, v6

    move-object v1, v0

    goto :goto_4

    :cond_5
    move-object v0, v6

    move-object v8, v0

    move-object v9, v8

    .line 1805
    :goto_2
    :try_start_2
    invoke-static {p1}, Lcom/moji/tool/processes/AndroidProcesses;->a(Landroid/content/Context;)Ljava/util/List;

    move-result-object p1

    if-eqz p1, :cond_7

    .line 1806
    invoke-interface {p1}, Ljava/util/List;->isEmpty()Z

    move-result v1

    if-nez v1, :cond_7

    const/4 v1, 0x0

    .line 1807
    :goto_3
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v10

    if-ge v1, v10, :cond_7

    .line 1808
    invoke-interface {p1, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v10

    check-cast v10, Landroid/app/ActivityManager$RunningAppProcessInfo;

    if-eqz v10, :cond_6

    .line 1810
    iget-object v10, v10, Landroid/app/ActivityManager$RunningAppProcessInfo;->processName:Ljava/lang/String;

    invoke-interface {v2, v10}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :cond_6
    add-int/lit8 v1, v1, 0x1

    goto :goto_3

    .line 1814
    :cond_7
    invoke-interface {v2}, Ljava/util/List;->isEmpty()Z

    move-result v1

    if-nez v1, :cond_8

    .line 1815
    new-instance v1, Lorg/json/JSONArray;

    invoke-direct {v1, v2}, Lorg/json/JSONArray;-><init>(Ljava/util/Collection;)V

    move-object v6, v1

    .line 1819
    :cond_8
    new-instance v1, Lcom/moji/tdhelper/TdAppLog;

    invoke-direct {v1}, Lcom/moji/tdhelper/TdAppLog;-><init>()V

    invoke-virtual {p0}, Lcom/moji/mjweather/MainActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v2

    invoke-virtual {v1, v2, v8, p1}, Lcom/moji/tdhelper/TdAppLog;->a(Landroid/content/Context;Ljava/util/List;Ljava/util/List;)V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_1
    .catchall {:try_start_2 .. :try_end_2} :catchall_1

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

    move-result-object p1

    sget-object v1, Lcom/moji/statistics/EVENT_TAG;->LOCAL_APP_INFO:Lcom/moji/statistics/EVENT_TAG;

    const-string v2, ""

    new-array v4, v4, [Ljava/lang/Object;

    aput-object v9, v4, v7

    aput-object v0, v4, v5

    aput-object v6, v4, v3

    invoke-static {v4}, Lcom/moji/statistics/EventParams;->getProperty([Ljava/lang/Object;)Lorg/json/JSONObject;

    move-result-object v0

    invoke-virtual {p1, v1, v2, v0}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;Lorg/json/JSONObject;)Lcom/moji/statistics/EventManager;

    goto :goto_6

    :catchall_1
    move-exception p1

    move-object v1, v6

    goto :goto_7

    :catch_1
    move-exception p1

    move-object v1, v6

    :goto_4
    move-object v6, v9

    goto :goto_5

    :catchall_2
    move-exception p1

    move-object v1, v6

    move-object v9, v1

    goto :goto_8

    :catch_2
    move-exception p1

    move-object v0, v6

    move-object v1, v0

    :goto_5
    :try_start_3
    const-string v2, "LOCAL APP INFO"

    .line 1821
    invoke-static {v2, p1}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_3

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

    move-result-object p1

    sget-object v2, Lcom/moji/statistics/EVENT_TAG;->LOCAL_APP_INFO:Lcom/moji/statistics/EVENT_TAG;

    const-string v8, ""

    new-array v4, v4, [Ljava/lang/Object;

    aput-object v6, v4, v7

    aput-object v0, v4, v5

    aput-object v1, v4, v3

    invoke-static {v4}, Lcom/moji/statistics/EventParams;->getProperty([Ljava/lang/Object;)Lorg/json/JSONObject;

    move-result-object v0

    invoke-virtual {p1, v2, v8, v0}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;Lorg/json/JSONObject;)Lcom/moji/statistics/EventManager;

    :goto_6
    return-void

    :catchall_3
    move-exception p1

    move-object v9, v6

    :goto_7
    move-object v6, v0

    :goto_8
    invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;

    move-result-object v0

    sget-object v2, Lcom/moji/statistics/EVENT_TAG;->LOCAL_APP_INFO:Lcom/moji/statistics/EVENT_TAG;

    new-array v4, v4, [Ljava/lang/Object;

    aput-object v9, v4, v7

    aput-object v6, v4, v5

    aput-object v1, v4, v3

    invoke-static {v4}, Lcom/moji/statistics/EventParams;->getProperty([Ljava/lang/Object;)Lorg/json/JSONObject;

    move-result-object v1

    const-string v3, ""

    invoke-virtual {v0, v2, v3, v1}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;Lorg/json/JSONObject;)Lcom/moji/statistics/EventManager;

    .line 1824
    throw p1
.end method

.method private a(Landroid/content/Intent;)V
    .locals 3

    if-eqz p1, :cond_0

    const-string v0, "youzan-page-url"

    .line 284
    invoke-virtual {p1, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 285
    iget-object v0, p0, Lcom/moji/mjweather/MainActivity;->c:Landroid/support/v4/app/FragmentManager;

    const-string v1, "main_fragment"

    invoke-virtual {v0, v1}, Landroid/support/v4/app/FragmentManager;->findFragmentByTag(Ljava/lang/String;)Landroid/support/v4/app/Fragment;

    move-result-object v0

    check-cast v0, Lcom/moji/mjweather/MainFragment;

    .line 286
    invoke-virtual {v0, p1}, Lcom/moji/mjweather/MainFragment;->a(Landroid/content/Intent;)V

    return-void

    :cond_0
    const/4 v0, 0x0

    if-eqz p1, :cond_1

    const-string v1, "changeLanguage"

    .line 289
    invoke-virtual {p1, v1, v0}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v1

    if-eqz v1, :cond_1

    .line 290
    invoke-direct {p0}, Lcom/moji/mjweather/MainActivity;->a()V

    :cond_1
    if-eqz p1, :cond_2

    const-string v1, "selectTabMe"

    .line 292
    invoke-virtual {p1, v1, v0}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v1

    if-eqz v1, :cond_2

    .line 293
    iget-object v1, p0, Lcom/moji/mjweather/MainActivity;->c:Landroid/support/v4/app/FragmentManager;

    const-string v2, "main_fragment"

    invoke-virtual {v1, v2}, Landroid/support/v4/app/FragmentManager;->findFragmentByTag(Ljava/lang/String;)Landroid/support/v4/app/Fragment;

    move-result-object v1

    check-cast v1, Lcom/moji/mjweather/MainFragment;

    .line 294
    invoke-virtual {v1}, Lcom/moji/mjweather/MainFragment;->c()V

    goto :goto_0

    :cond_2
    if-eqz p1, :cond_3

    const-string v1, "selectTabLive"

    .line 295
    invoke-virtual {p1, v1, v0}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v1

    if-eqz v1, :cond_3

    .line 296
    iget-object v1, p0, Lcom/moji/mjweather/MainActivity;->c:Landroid/support/v4/app/FragmentManager;

    const-string v2, "main_fragment"

    invoke-virtual {v1, v2}, Landroid/support/v4/app/FragmentManager;->findFragmentByTag(Ljava/lang/String;)Landroid/support/v4/app/Fragment;

    move-result-object v1

    check-cast v1, Lcom/moji/mjweather/MainFragment;

    .line 297
    invoke-virtual {v1}, Lcom/moji/mjweather/MainFragment;->e()V

    .line 300
    :cond_3
    :goto_0
    iget-boolean v1, p0, Lcom/moji/mjweather/MainActivity;->r:Z

    const/4 v2, 0x1

    if-nez v1, :cond_4

    .line 301
    invoke-direct {p0, v2}, Lcom/moji/mjweather/MainActivity;->a(Z)V

    .line 303
    :cond_4
    invoke-direct {p0, p1}, Lcom/moji/mjweather/MainActivity;->c(Landroid/content/Intent;)V

    .line 305
    invoke-direct {p0, p1}, Lcom/moji/mjweather/MainActivity;->e(Landroid/content/Intent;)V

    .line 306
    iput-boolean v0, p0, Lcom/moji/mjweather/MainActivity;->n:Z

    .line 308
    invoke-static {}, Lcom/moji/areamanagement/MJAreaManager;->a()Lcom/moji/common/area/AreaInfo;

    move-result-object v0

    if-eqz v0, :cond_5

    .line 310
    iget-boolean v1, v0, Lcom/moji/common/area/AreaInfo;->isLocation:Z

    if-eqz v1, :cond_7

    invoke-static {}, Lcom/moji/weatherprovider/provider/WeatherProvider;->b()Lcom/moji/weatherprovider/provider/WeatherProvider;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/moji/weatherprovider/provider/WeatherProvider;->a(Lcom/moji/common/area/AreaInfo;)Lcom/moji/weatherprovider/data/Weather;

    move-result-object v0

    if-nez v0, :cond_7

    invoke-static {}, Lcom/moji/areamanagement/MJAreaManager;->f()I

    move-result v0

    if-gt v0, v2, :cond_7

    .line 311
    :cond_5
    invoke-static {}, Lcom/mojiweather/area/AreaManagePrefer;->c()Lcom/mojiweather/area/AreaManagePrefer;

    move-result-object v0

    invoke-virtual {v0}, Lcom/mojiweather/area/AreaManagePrefer;->e()I

    move-result v0

    if-nez v0, :cond_6

    .line 312
    invoke-direct {p0}, Lcom/moji/mjweather/MainActivity;->u()V

    goto :goto_1

    .line 314
    :cond_6
    invoke-direct {p0}, Lcom/moji/mjweather/MainActivity;->t()V

    :cond_7
    :goto_1
    const-string v0, "MainActivity"

    const-string v1, "Test123 \u5173\u95edTableFragment   doNewIntent --> openFromHisense "

    .line 317
    invoke-static {v0, v1}, Lcom/moji/tool/log/MJLogger;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 318
    invoke-direct {p0, p1}, Lcom/moji/mjweather/MainActivity;->b(Landroid/content/Intent;)V

    return-void
.end method

.method private a(Lcom/moji/common/area/AreaInfo;Lcom/moji/weatherprovider/data/Weather;)V
    .locals 3

    if-eqz p2, :cond_1

    .line 1028
    iget-object v0, p2, Lcom/moji/weatherprovider/data/Weather;->mDetail:Lcom/moji/weatherprovider/data/Detail;

    if-eqz v0, :cond_1

    .line 1029
    iget-object v0, p2, Lcom/moji/weatherprovider/data/Weather;->mDetail:Lcom/moji/weatherprovider/data/Detail;

    iget-object v0, v0, Lcom/moji/weatherprovider/data/Detail;->mCityName:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 1030
    iget-object v0, p2, Lcom/moji/weatherprovider/data/Weather;->mDetail:Lcom/moji/weatherprovider/data/Detail;

    iget-object v0, v0, Lcom/moji/weatherprovider/data/Detail;->mCityName:Ljava/lang/String;

    iput-object v0, p1, Lcom/moji/common/area/AreaInfo;->cityName:Ljava/lang/String;

    goto :goto_0

    .line 1032
    :cond_0
    invoke-static {}, Lcom/moji/tool/AppDelegate;->a()Landroid/content/Context;

    move-result-object v0

    const v1, 0x7f0e044b

    invoke-virtual {v0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p1, Lcom/moji/common/area/AreaInfo;->cityName:Ljava/lang/String;

    :goto_0
    const/4 v0, 0x0

    .line 1034
    iput v0, p1, Lcom/moji/common/area/AreaInfo;->city_index:I

    .line 1035
    iget-object v1, p2, Lcom/moji/weatherprovider/data/Weather;->mDetail:Lcom/moji/weatherprovider/data/Detail;

    iget-wide v1, v1, Lcom/moji/weatherprovider/data/Detail;->mCityId:J

    long-to-int v1, v1

    iput v1, p1, Lcom/moji/common/area/AreaInfo;->cityId:I

    .line 1036
    iget-object p2, p2, Lcom/moji/weatherprovider/data/Weather;->mDetail:Lcom/moji/weatherprovider/data/Detail;

    iget-object p2, p2, Lcom/moji/weatherprovider/data/Detail;->mStreetName:Ljava/lang/String;

    iput-object p2, p1, Lcom/moji/common/area/AreaInfo;->streetName:Ljava/lang/String;

    .line 1037
    new-instance p2, Ljava/lang/StringBuilder;

    invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v1

    invoke-virtual {p2, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string v1, ""

    invoke-virtual {p2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    iput-object p2, p1, Lcom/moji/common/area/AreaInfo;->timestamp:Ljava/lang/String;

    .line 1038
    invoke-static {p1}, Lcom/moji/areamanagement/MJAreaManager;->a(Lcom/moji/common/area/AreaInfo;)V

    .line 1039
    invoke-static {}, Lcom/moji/bus/Bus;->a()Lcom/moji/bus/Bus;

    move-result-object p2

    new-instance v1, Lcom/mojiweather/area/event/AddCityEvent;

    iget-object v2, p1, Lcom/moji/common/area/AreaInfo;->cityName:Ljava/lang/String;

    invoke-direct {v1, v0, p1, v2}, Lcom/mojiweather/area/event/AddCityEvent;-><init>(ILcom/moji/common/area/AreaInfo;Ljava/lang/String;)V

    invoke-virtual {p2, v1}, Lcom/moji/bus/Bus;->c(Ljava/lang/Object;)V

    .line 1040
    invoke-static {}, Lcom/moji/external/broadcast/ExternalBroadcastManager;->a()V

    .line 1041
    invoke-direct {p0}, Lcom/moji/mjweather/MainActivity;->b()V

    const p1, 0x7f0e0957

    .line 1042
    invoke-static {p1}, Lcom/moji/tool/ToastTool;->a(I)V

    goto :goto_1

    :cond_1
    const p1, 0x7f0e0958

    .line 1044
    invoke-static {p1}, Lcom/moji/tool/ToastTool;->a(I)V

    :goto_1
    return-void
.end method

.method static synthetic a(Lcom/moji/mjweather/MainActivity;)V
    .locals 0

    .line 204
    invoke-direct {p0}, Lcom/moji/mjweather/MainActivity;->b()V

    return-void
.end method

.method static synthetic a(Lcom/moji/mjweather/MainActivity;I)V
    .locals 0

    .line 204
    invoke-direct {p0, p1}, Lcom/moji/mjweather/MainActivity;->b(I)V

    return-void
.end method

.method static synthetic a(Lcom/moji/mjweather/MainActivity;Landroid/content/Context;)V
    .locals 0

    .line 204
    invoke-direct {p0, p1}, Lcom/moji/mjweather/MainActivity;->a(Landroid/content/Context;)V

    return-void
.end method

.method static synthetic a(Lcom/moji/mjweather/MainActivity;Lcom/moji/common/area/AreaInfo;Lcom/moji/weatherprovider/data/Weather;)V
    .locals 0

    .line 204
    invoke-direct {p0, p1, p2}, Lcom/moji/mjweather/MainActivity;->a(Lcom/moji/common/area/AreaInfo;Lcom/moji/weatherprovider/data/Weather;)V

    return-void
.end method

.method static synthetic a(Lcom/moji/mjweather/MainActivity;Z)V
    .locals 0

    .line 204
    invoke-direct {p0, p1}, Lcom/moji/mjweather/MainActivity;->b(Z)V

    return-void
.end method

.method private a(Z)V
    .locals 5

    const-string v0, "TmpTest"

    const-string v1, "showMainFragment"

    .line 847
    invoke-static {v0, v1}, Lcom/moji/tool/log/MJLogger;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 848
    iget-object v0, p0, Lcom/moji/mjweather/MainActivity;->m:Lcom/moji/mjweather/MainActivity$MainHandler;

    if-nez v0, :cond_0

    .line 849
    new-instance v0, Lcom/moji/mjweather/MainActivity$MainHandler;

    invoke-direct {v0, p0}, Lcom/moji/mjweather/MainActivity$MainHandler;-><init>(Lcom/moji/mjweather/MainActivity;)V

    iput-object v0, p0, Lcom/moji/mjweather/MainActivity;->m:Lcom/moji/mjweather/MainActivity$MainHandler;

    .line 851
    :cond_0
    iget-object v0, p0, Lcom/moji/mjweather/MainActivity;->m:Lcom/moji/mjweather/MainActivity$MainHandler;

    new-instance v1, Lcom/moji/mjweather/MainActivity$6;

    invoke-direct {v1, p0}, Lcom/moji/mjweather/MainActivity$6;-><init>(Lcom/moji/mjweather/MainActivity;)V

    const-wide/16 v2, 0x1770

    invoke-virtual {v0, v1, v2, v3}, Lcom/moji/mjweather/MainActivity$MainHandler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 860
    invoke-static {}, Lcom/mojiweather/area/FootStepManager;->a()Lcom/mojiweather/area/FootStepManager;

    move-result-object v0

    invoke-virtual {v0}, Lcom/mojiweather/area/FootStepManager;->c()V

    .line 861
    invoke-direct {p0}, Lcom/moji/mjweather/MainActivity;->l()V

    .line 862
    invoke-virtual {p0}, Lcom/moji/mjweather/MainActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    .line 863
    invoke-direct {p0, v0}, Lcom/moji/mjweather/MainActivity;->f(Landroid/content/Intent;)V

    .line 864
    iget-object v1, p0, Lcom/moji/mjweather/MainActivity;->c:Landroid/support/v4/app/FragmentManager;

    invoke-virtual {v1}, Landroid/support/v4/app/FragmentManager;->beginTransaction()Landroid/support/v4/app/FragmentTransaction;

    move-result-object v1

    .line 865
    new-instance v2, Lcom/moji/mjweather/MainFragment;

    invoke-direct {v2}, Lcom/moji/mjweather/MainFragment;-><init>()V

    const v3, 0x7f090271

    if-eqz p1, :cond_2

    .line 867
    iget-object p1, p0, Lcom/moji/mjweather/MainActivity;->c:Landroid/support/v4/app/FragmentManager;

    const-string v4, "main_fragment"

    invoke-virtual {p1, v4}, Landroid/support/v4/app/FragmentManager;->findFragmentByTag(Ljava/lang/String;)Landroid/support/v4/app/Fragment;

    move-result-object p1

    if-eqz p1, :cond_1

    .line 869
    invoke-virtual {v1, p1}, Landroid/support/v4/app/FragmentTransaction;->remove(Landroid/support/v4/app/Fragment;)Landroid/support/v4/app/FragmentTransaction;

    :cond_1
    const-string p1, "main_fragment"

    .line 871
    invoke-virtual {v1, v3, v2, p1}, Landroid/support/v4/app/FragmentTransaction;->replace(ILandroid/support/v4/app/Fragment;Ljava/lang/String;)Landroid/support/v4/app/FragmentTransaction;

    goto :goto_0

    :cond_2
    const-string p1, "main_fragment"

    .line 873
    invoke-virtual {v1, v3, v2, p1}, Landroid/support/v4/app/FragmentTransaction;->add(ILandroid/support/v4/app/Fragment;Ljava/lang/String;)Landroid/support/v4/app/FragmentTransaction;

    .line 875
    :goto_0
    invoke-virtual {v1}, Landroid/support/v4/app/FragmentTransaction;->commitNowAllowingStateLoss()V

    .line 878
    invoke-direct {p0, v0}, Lcom/moji/mjweather/MainActivity;->g(Landroid/content/Intent;)V

    const-string p1, "selectTabLive"

    const/4 v1, 0x0

    .line 882
    invoke-virtual {v0, p1, v1}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result p1

    if-eqz p1, :cond_3

    .line 883
    iget-object p1, p0, Lcom/moji/mjweather/MainActivity;->c:Landroid/support/v4/app/FragmentManager;

    const-string v1, "main_fragment"

    invoke-virtual {p1, v1}, Landroid/support/v4/app/FragmentManager;->findFragmentByTag(Ljava/lang/String;)Landroid/support/v4/app/Fragment;

    move-result-object p1

    check-cast p1, Lcom/moji/mjweather/MainFragment;

    if-eqz p1, :cond_3

    .line 885
    invoke-virtual {p1}, Lcom/moji/mjweather/MainFragment;->e()V

    :cond_3
    const/4 p1, 0x1

    .line 888
    iput-boolean p1, p0, Lcom/moji/mjweather/MainActivity;->r:Z

    .line 889
    invoke-direct {p0, v0}, Lcom/moji/mjweather/MainActivity;->b(Landroid/content/Intent;)V

    return-void
.end method

.method private a(ZZ)V
    .locals 1

    .line 577
    invoke-static {}, Lcom/moji/tool/DeviceTool;->m()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 578
    new-instance v0, Lcom/moji/appupdate/DynamicConfigManager;

    invoke-direct {v0}, Lcom/moji/appupdate/DynamicConfigManager;-><init>()V

    invoke-virtual {v0, p1, p2}, Lcom/moji/appupdate/DynamicConfigManager;->a(ZZ)V

    :cond_0
    return-void
.end method

.method private a(Ljava/util/Date;)Z
    .locals 4

    .line 1945
    invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;

    move-result-object v0

    .line 1946
    invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;

    move-result-object v1

    .line 1947
    new-instance v2, Ljava/util/Date;

    invoke-direct {v2}, Ljava/util/Date;-><init>()V

    invoke-virtual {v0, v2}, Ljava/util/Calendar;->setTime(Ljava/util/Date;)V

    .line 1948
    invoke-virtual {v1, p1}, Ljava/util/Calendar;->setTime(Ljava/util/Date;)V

    const/4 p1, 0x1

    .line 1949
    invoke-virtual {v0, p1}, Ljava/util/Calendar;->get(I)I

    move-result v2

    invoke-virtual {v1, p1}, Ljava/util/Calendar;->get(I)I

    move-result v3

    if-ne v2, v3, :cond_0

    const/4 v2, 0x2

    invoke-virtual {v0, v2}, Ljava/util/Calendar;->get(I)I

    move-result v3

    invoke-virtual {v1, v2}, Ljava/util/Calendar;->get(I)I

    move-result v2

    if-ne v3, v2, :cond_0

    const/4 v2, 0x5

    invoke-virtual {v0, v2}, Ljava/util/Calendar;->get(I)I

    move-result v0

    invoke-virtual {v1, v2}, Ljava/util/Calendar;->get(I)I

    move-result v1

    if-ne v0, v1, :cond_0

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    :goto_0
    return p1
.end method

.method static synthetic b(Lcom/moji/mjweather/MainActivity;Z)Ljava/lang/String;
    .locals 0

    .line 204
    invoke-direct {p0, p1}, Lcom/moji/mjweather/MainActivity;->c(Z)Ljava/lang/String;

    move-result-object p0

    return-object p0
.end method

.method private b()V
    .locals 2

    .line 387
    iget-object v0, p0, Lcom/moji/mjweather/MainActivity;->c:Landroid/support/v4/app/FragmentManager;

    const-string v1, "main_fragment"

    invoke-virtual {v0, v1}, Landroid/support/v4/app/FragmentManager;->findFragmentByTag(Ljava/lang/String;)Landroid/support/v4/app/Fragment;

    move-result-object v0

    check-cast v0, Lcom/moji/mjweather/MainFragment;

    if-eqz v0, :cond_0

    .line 389
    invoke-virtual {v0}, Lcom/moji/mjweather/MainFragment;->b()V

    :cond_0
    const/4 v0, 0x0

    .line 391
    iput-boolean v0, p0, Lcom/moji/mjweather/MainActivity;->o:Z

    return-void
.end method

.method private b(I)V
    .locals 4

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

    move-result-object v0

    sget-object v1, Lcom/moji/statistics/EVENT_TAG;->CITY_ASK_LOCATION:Lcom/moji/statistics/EVENT_TAG;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, ""

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

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

    return-void
.end method

.method private b(Landroid/content/Intent;)V
    .locals 4

    if-nez p1, :cond_0

    return-void

    .line 324
    :cond_0
    invoke-virtual {p1}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_1

    const-string v1, "com.moji.hisense.open.alert.actitivty"

    .line 326
    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 327
    iget-object v0, p0, Lcom/moji/mjweather/MainActivity;->m:Lcom/moji/mjweather/MainActivity$MainHandler;

    iget-object v1, p0, Lcom/moji/mjweather/MainActivity;->m:Lcom/moji/mjweather/MainActivity$MainHandler;

    const/16 v2, 0xc8

    invoke-virtual {v1, v2}, Lcom/moji/mjweather/MainActivity$MainHandler;->obtainMessage(I)Landroid/os/Message;

    move-result-object v1

    const-wide/16 v2, 0x64

    invoke-virtual {v0, v1, v2, v3}, Lcom/moji/mjweather/MainActivity$MainHandler;->sendMessageDelayed(Landroid/os/Message;J)Z

    const-string v0, "alert_from"

    .line 328
    invoke-virtual {p1, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

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

    move-result-object v0

    sget-object v1, Lcom/moji/statistics/EVENT_TAG;->ALERT_FROM:Lcom/moji/statistics/EVENT_TAG;

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

    :cond_1
    return-void
.end method

.method static synthetic b(Lcom/moji/mjweather/MainActivity;)V
    .locals 0

    .line 204
    invoke-direct {p0}, Lcom/moji/mjweather/MainActivity;->d()V

    return-void
.end method

.method private b(Z)V
    .locals 6

    .line 1588
    invoke-static {}, Lcom/moji/preferences/SettingPrefer;->c()Lcom/moji/preferences/SettingPrefer;

    move-result-object v0

    .line 1589
    invoke-virtual {v0}, Lcom/moji/preferences/SettingPrefer;->e()I

    move-result v1

    .line 1590
    invoke-direct {p0}, Lcom/moji/mjweather/MainActivity;->D()I

    move-result v2

    if-nez p1, :cond_0

    if-eq v2, v1, :cond_1

    .line 1592
    :cond_0
    invoke-static {}, Lcom/moji/account/data/AccountProvider;->a()Lcom/moji/account/data/AccountProvider;

    move-result-object p1

    invoke-virtual {p1}, Lcom/moji/account/data/AccountProvider;->f()Z

    move-result p1

    if-eqz p1, :cond_1

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

    move-result-object p1

    sget-object v1, Lcom/moji/statistics/EVENT_TAG;->MAIN_VIP_USER_UPDATE:Lcom/moji/statistics/EVENT_TAG;

    invoke-virtual {p1, v1}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;)Lcom/moji/statistics/EventManager;

    .line 1594
    new-instance p1, Lcom/moji/mjweather/me/AccountApi;

    invoke-direct {p1}, Lcom/moji/mjweather/me/AccountApi;-><init>()V

    const/4 v1, 0x1

    const-string v3, ""

    new-instance v4, Lcom/moji/preferences/ProcessPrefer;

    invoke-direct {v4}, Lcom/moji/preferences/ProcessPrefer;-><init>()V

    invoke-virtual {v4}, Lcom/moji/preferences/ProcessPrefer;->i()Ljava/lang/String;

    move-result-object v4

    new-instance v5, Lcom/moji/mjweather/MainActivity$18;

    invoke-direct {v5, p0, v0, v2}, Lcom/moji/mjweather/MainActivity$18;-><init>(Lcom/moji/mjweather/MainActivity;Lcom/moji/preferences/SettingPrefer;I)V

    invoke-virtual {p1, v1, v3, v4, v5}, Lcom/moji/mjweather/me/AccountApi;->a(ILjava/lang/String;Ljava/lang/String;Lcom/moji/requestcore/MJHttpCallback;)V

    :cond_1
    return-void
.end method

.method static synthetic c(Lcom/moji/mjweather/MainActivity;)Landroid/support/v4/app/FragmentManager;
    .locals 0

    .line 204
    iget-object p0, p0, Lcom/moji/mjweather/MainActivity;->c:Landroid/support/v4/app/FragmentManager;

    return-object p0
.end method

.method private c(Z)Ljava/lang/String;
    .locals 0

    if-eqz p1, :cond_0

    const-string p1, "1"

    goto :goto_0

    :cond_0
    const-string p1, "0"

    :goto_0
    return-object p1
.end method

.method private c()V
    .locals 1

    .line 446
    new-instance v0, Lcom/moji/mjweather/MainActivity$2;

    invoke-direct {v0, p0}, Lcom/moji/mjweather/MainActivity$2;-><init>(Lcom/moji/mjweather/MainActivity;)V

    invoke-static {v0}, Lcom/moji/tool/thread/MJPools;->a(Ljava/lang/Runnable;)I

    return-void
.end method

.method private c(I)V
    .locals 4

    .line 1203
    iget-object v0, p0, Lcom/moji/mjweather/MainActivity;->m:Lcom/moji/mjweather/MainActivity$MainHandler;

    if-nez v0, :cond_0

    new-instance v0, Lcom/moji/mjweather/MainActivity$MainHandler;

    invoke-direct {v0, p0}, Lcom/moji/mjweather/MainActivity$MainHandler;-><init>(Lcom/moji/mjweather/MainActivity;)V

    iput-object v0, p0, Lcom/moji/mjweather/MainActivity;->m:Lcom/moji/mjweather/MainActivity$MainHandler;

    .line 1204
    :cond_0
    iget-object v0, p0, Lcom/moji/mjweather/MainActivity;->m:Lcom/moji/mjweather/MainActivity$MainHandler;

    iget-object v1, p0, Lcom/moji/mjweather/MainActivity;->m:Lcom/moji/mjweather/MainActivity$MainHandler;

    const/16 v2, 0x63

    invoke-virtual {v1, v2}, Lcom/moji/mjweather/MainActivity$MainHandler;->obtainMessage(I)Landroid/os/Message;

    move-result-object v1

    int-to-long v2, p1

    invoke-virtual {v0, v1, v2, v3}, Lcom/moji/mjweather/MainActivity$MainHandler;->sendMessageDelayed(Landroid/os/Message;J)Z

    return-void
.end method

.method private c(Landroid/content/Intent;)V
    .locals 0

    .line 500
    invoke-direct {p0, p1}, Lcom/moji/mjweather/MainActivity;->d(Landroid/content/Intent;)V

    return-void
.end method

.method static synthetic d(Lcom/moji/mjweather/MainActivity;)Lcom/moji/preferences/ProcessPrefer;
    .locals 0

    .line 204
    iget-object p0, p0, Lcom/moji/mjweather/MainActivity;->C:Lcom/moji/preferences/ProcessPrefer;

    return-object p0
.end method

.method private d()V
    .locals 2

    .line 484
    iget-boolean v0, p0, Lcom/moji/mjweather/MainActivity;->j:Z

    if-eqz v0, :cond_0

    .line 485
    invoke-static {}, Lcom/moji/tool/DeviceTool;->W()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 486
    new-instance v0, Lcom/moji/weathersence/data/WeatherScenePreference;

    invoke-direct {v0}, Lcom/moji/weathersence/data/WeatherScenePreference;-><init>()V

    const/4 v1, 0x0

    .line 487
    invoke-virtual {v0, v1}, Lcom/moji/weathersence/data/WeatherScenePreference;->a(Z)V

    :cond_0
    return-void
.end method

.method private d(Landroid/content/Intent;)V
    .locals 3

    if-nez p1, :cond_0

    return-void

    .line 512
    :cond_0
    invoke-virtual {p1}, Landroid/content/Intent;->getData()Landroid/net/Uri;

    move-result-object v0

    if-eqz v0, :cond_1

    .line 513
    invoke-virtual {v0}, Landroid/net/Uri;->toString()Ljava/lang/String;

    move-result-object v1

    const-string v2, "ids"

    invoke-virtual {v1, v2}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_1

    .line 514
    invoke-virtual {v0}, Landroid/net/Uri;->getQuery()Ljava/lang/String;

    move-result-object v0

    .line 515
    new-instance v1, Lcom/moji/open/OpenPageFromOut;

    sget-object v2, Lcom/moji/mjweather/MJApplication;->sContext:Landroid/content/Context;

    invoke-direct {v1, v2}, Lcom/moji/open/OpenPageFromOut;-><init>(Landroid/content/Context;)V

    invoke-virtual {v1, v0}, Lcom/moji/open/OpenPageFromOut;->b(Ljava/lang/String;)V

    .line 516
    invoke-static {}, Lcom/moji/callup/MJCallUpManager;->a()Lcom/moji/callup/MJCallUpManager;

    move-result-object v0

    invoke-virtual {v0, p1}, Lcom/moji/callup/MJCallUpManager;->a(Landroid/content/Intent;)V

    const/4 p1, 0x0

    .line 517
    iput p1, p0, Lcom/moji/mjweather/MainActivity;->A:I

    :cond_1
    return-void
.end method

.method private d(Z)Z
    .locals 0

    if-eqz p1, :cond_0

    .line 1982
    invoke-static {}, Lfm/jiecao/jcvideoplayer_lib/JCVideoPlayer;->o()Z

    move-result p1

    return p1

    .line 1984
    :cond_0
    invoke-static {}, Lfm/jiecao/jcvideoplayer_lib/JCVideoPlayer;->t()V

    const/4 p1, 0x0

    return p1
.end method

.method private e(Landroid/content/Intent;)V
    .locals 2

    if-eqz p1, :cond_0

    .line 569
    new-instance v0, Lcom/moji/push/NotifyPushManager;

    invoke-direct {v0}, Lcom/moji/push/NotifyPushManager;-><init>()V

    invoke-static {}, Lcom/moji/tool/AppDelegate;->a()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v0, v1, p1}, Lcom/moji/push/NotifyPushManager;->a(Landroid/content/Context;Landroid/content/Intent;)V

    :cond_0
    return-void
.end method

.method static synthetic e(Lcom/moji/mjweather/MainActivity;)V
    .locals 0

    .line 204
    invoke-direct {p0}, Lcom/moji/mjweather/MainActivity;->C()V

    return-void
.end method

.method private e()Z
    .locals 4

    .line 522
    new-instance v0, Lcom/moji/preferences/DefaultPrefer;

    invoke-direct {v0}, Lcom/moji/preferences/DefaultPrefer;-><init>()V

    .line 523
    sget-object v1, Lcom/moji/preferences/DefaultPrefer$KeyConstant;->TEMP_KEY_IS_FIRST_RUN:Lcom/moji/preferences/DefaultPrefer$KeyConstant;

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Lcom/moji/preferences/DefaultPrefer;->a(Lcom/moji/tool/preferences/core/IPreferKey;I)I

    move-result v1

    const/4 v3, 0x1

    if-nez v1, :cond_0

    const/4 v2, 0x1

    :cond_0
    if-eqz v2, :cond_1

    .line 525
    sget-object v1, Lcom/moji/preferences/DefaultPrefer$KeyConstant;->TEMP_KEY_IS_FIRST_RUN:Lcom/moji/preferences/DefaultPrefer$KeyConstant;

    invoke-virtual {v0, v1, v3}, Lcom/moji/preferences/DefaultPrefer;->b(Lcom/moji/tool/preferences/core/IPreferKey;I)V

    :cond_1
    return v2
.end method

.method private f(Landroid/content/Intent;)V
    .locals 4

    if-eqz p1, :cond_5

    const-string v0, "hisense_moji_city_id"

    const/4 v1, -0x1

    .line 796
    invoke-virtual {p1, v0, v1}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v0

    if-eq v0, v1, :cond_4

    .line 798
    invoke-static {}, Lcom/moji/areamanagement/MJAreaManager;->a()Lcom/moji/common/area/AreaInfo;

    move-result-object v1

    if-eqz v1, :cond_4

    .line 800
    iget-boolean v2, v1, Lcom/moji/common/area/AreaInfo;->isLocation:Z

    const/16 v3, -0x63

    if-eqz v2, :cond_1

    if-ne v0, v3, :cond_0

    .line 802
    invoke-virtual {p0}, Lcom/moji/mjweather/MainActivity;->setWeatherTab()V

    goto :goto_0

    .line 804
    :cond_0
    invoke-static {v0}, Lcom/moji/areamanagement/MJAreaManager;->a(I)Lcom/moji/common/area/AreaInfo;

    move-result-object v0

    if-eqz v0, :cond_4

    .line 806
    invoke-static {}, Lorg/greenrobot/eventbus/EventBus;->a()Lorg/greenrobot/eventbus/EventBus;

    move-result-object v1

    new-instance v2, Lcom/moji/mjweather/weather/event/WidgetChangeCityEvent;

    invoke-direct {v2, v0}, Lcom/moji/mjweather/weather/event/WidgetChangeCityEvent;-><init>(Lcom/moji/common/area/AreaInfo;)V

    invoke-virtual {v1, v2}, Lorg/greenrobot/eventbus/EventBus;->d(Ljava/lang/Object;)V

    .line 807
    invoke-static {v0}, Lcom/moji/areamanagement/MJAreaManager;->d(Lcom/moji/common/area/AreaInfo;)V

    .line 808
    invoke-virtual {p0}, Lcom/moji/mjweather/MainActivity;->setWeatherTab()V

    goto :goto_0

    :cond_1
    if-ne v0, v3, :cond_2

    .line 813
    invoke-static {}, Lcom/moji/areamanagement/MJAreaManager;->b()Lcom/moji/common/area/AreaInfo;

    move-result-object v0

    if-eqz v0, :cond_4

    .line 815
    invoke-static {}, Lorg/greenrobot/eventbus/EventBus;->a()Lorg/greenrobot/eventbus/EventBus;

    move-result-object v1

    new-instance v2, Lcom/moji/mjweather/weather/event/WidgetChangeCityEvent;

    invoke-direct {v2, v0}, Lcom/moji/mjweather/weather/event/WidgetChangeCityEvent;-><init>(Lcom/moji/common/area/AreaInfo;)V

    invoke-virtual {v1, v2}, Lorg/greenrobot/eventbus/EventBus;->d(Ljava/lang/Object;)V

    .line 816
    invoke-static {v0}, Lcom/moji/areamanagement/MJAreaManager;->d(Lcom/moji/common/area/AreaInfo;)V

    const-string v0, "MainActTest"

    const-string v1, "\u5207\u6362\u5230\u5b9a\u4f4d\u57ce\u5e02 --\u300b WidgetChangeCityEvent"

    .line 817
    invoke-static {v0, v1}, Lcom/moji/tool/log/MJLogger;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 818
    invoke-virtual {p0}, Lcom/moji/mjweather/MainActivity;->setWeatherTab()V

    goto :goto_0

    .line 821
    :cond_2
    iget v1, v1, Lcom/moji/common/area/AreaInfo;->cityId:I

    if-ne v0, v1, :cond_3

    .line 822
    invoke-virtual {p0}, Lcom/moji/mjweather/MainActivity;->setWeatherTab()V

    goto :goto_0

    .line 824
    :cond_3
    invoke-static {v0}, Lcom/moji/areamanagement/MJAreaManager;->a(I)Lcom/moji/common/area/AreaInfo;

    move-result-object v0

    if-eqz v0, :cond_4

    .line 826
    invoke-static {}, Lorg/greenrobot/eventbus/EventBus;->a()Lorg/greenrobot/eventbus/EventBus;

    move-result-object v1

    new-instance v2, Lcom/moji/mjweather/weather/event/WidgetChangeCityEvent;

    invoke-direct {v2, v0}, Lcom/moji/mjweather/weather/event/WidgetChangeCityEvent;-><init>(Lcom/moji/common/area/AreaInfo;)V

    invoke-virtual {v1, v2}, Lorg/greenrobot/eventbus/EventBus;->d(Ljava/lang/Object;)V

    .line 827
    invoke-virtual {p0}, Lcom/moji/mjweather/MainActivity;->setWeatherTab()V

    :cond_4
    :goto_0
    const-string v0, "hisense_moji_entry_from"

    .line 836
    invoke-virtual {p1, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 837
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_5

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

    move-result-object v0

    sget-object v1, Lcom/moji/statistics/EVENT_TAG;->MAIN_ENTRY_FROM:Lcom/moji/statistics/EVENT_TAG;

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

    :cond_5
    return-void
.end method

.method static synthetic f(Lcom/moji/mjweather/MainActivity;)V
    .locals 0

    .line 204
    invoke-direct {p0}, Lcom/moji/mjweather/MainActivity;->q()V

    return-void
.end method

.method private g(Landroid/content/Intent;)V
    .locals 0

    .line 925
    invoke-direct {p0, p1}, Lcom/moji/mjweather/MainActivity;->c(Landroid/content/Intent;)V

    return-void
.end method

.method static synthetic g(Lcom/moji/mjweather/MainActivity;)V
    .locals 0

    .line 204
    invoke-direct {p0}, Lcom/moji/mjweather/MainActivity;->v()V

    return-void
.end method

.method static synthetic h(Lcom/moji/mjweather/MainActivity;)V
    .locals 0

    .line 204
    invoke-direct {p0}, Lcom/moji/mjweather/MainActivity;->s()V

    return-void
.end method

.method static synthetic i(Lcom/moji/mjweather/MainActivity;)V
    .locals 0

    .line 204
    invoke-direct {p0}, Lcom/moji/mjweather/MainActivity;->H()V

    return-void
.end method

.method private j()V
    .locals 3

    .line 531
    new-instance v0, Lcom/moji/mjweather/MainActivity$3;

    invoke-direct {v0, p0}, Lcom/moji/mjweather/MainActivity$3;-><init>(Lcom/moji/mjweather/MainActivity;)V

    sget-object v1, Lcom/moji/tool/thread/ThreadType;->IO_THREAD:Lcom/moji/tool/thread/ThreadType;

    sget-object v2, Lcom/moji/tool/thread/ThreadPriority;->NORMAL:Lcom/moji/tool/thread/ThreadPriority;

    invoke-static {v0, v1, v2}, Lcom/moji/tool/thread/MJPools;->a(Ljava/lang/Runnable;Lcom/moji/tool/thread/ThreadType;Lcom/moji/tool/thread/ThreadPriority;)I

    return-void
.end method

.method static synthetic j(Lcom/moji/mjweather/MainActivity;)V
    .locals 0

    .line 204
    invoke-direct {p0}, Lcom/moji/mjweather/MainActivity;->r()V

    return-void
.end method

.method static synthetic k(Lcom/moji/mjweather/MainActivity;)Ljava/lang/String;
    .locals 0

    .line 204
    iget-object p0, p0, Lcom/moji/mjweather/MainActivity;->E:Ljava/lang/String;

    return-object p0
.end method

.method private k()V
    .locals 5

    .line 609
    new-instance v0, Lcom/moji/novice/preference/UserGuidePrefence;

    invoke-direct {v0}, Lcom/moji/novice/preference/UserGuidePrefence;-><init>()V

    .line 610
    new-instance v1, Lcom/moji/preferences/ProcessPrefer;

    invoke-direct {v1}, Lcom/moji/preferences/ProcessPrefer;-><init>()V

    invoke-virtual {v1}, Lcom/moji/preferences/ProcessPrefer;->c()I

    move-result v1

    const-string v2, "MainActivity"

    .line 611
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "showScrollGuide :"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Lcom/moji/tool/log/MJLogger;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 612
    iget-object v2, p0, Lcom/moji/mjweather/MainActivity;->c:Landroid/support/v4/app/FragmentManager;

    if-eqz v2, :cond_0

    .line 613
    iget-object v2, p0, Lcom/moji/mjweather/MainActivity;->c:Landroid/support/v4/app/FragmentManager;

    const-string v3, "main_fragment"

    invoke-virtual {v2, v3}, Landroid/support/v4/app/FragmentManager;->findFragmentByTag(Ljava/lang/String;)Landroid/support/v4/app/Fragment;

    move-result-object v2

    check-cast v2, Lcom/moji/mjweather/MainFragment;

    .line 614
    invoke-virtual {v0}, Lcom/moji/novice/preference/UserGuidePrefence;->g()Z

    move-result v3

    if-nez v3, :cond_0

    invoke-virtual {v0}, Lcom/moji/novice/preference/UserGuidePrefence;->f()Z

    move-result v0

    if-eqz v0, :cond_0

    if-nez v1, :cond_0

    if-eqz v2, :cond_0

    invoke-virtual {v2}, Lcom/moji/mjweather/MainFragment;->a()Lcom/moji/mjweather/TAB_TYPE;

    move-result-object v0

    sget-object v2, Lcom/moji/mjweather/TAB_TYPE;->WEATHER_TAB:Lcom/moji/mjweather/TAB_TYPE;

    if-ne v0, v2, :cond_0

    .line 615
    invoke-static {p0}, Lcom/moji/novice/guide/GuideShowManager;->a(Landroid/app/Activity;)V

    return-void

    :cond_0
    const/4 v0, 0x1

    if-ne v0, v1, :cond_1

    .line 619
    invoke-static {}, Lcom/moji/novice/tutorial/NoviceTutorialManager;->a()Lcom/moji/novice/tutorial/NoviceTutorialManager;

    move-result-object v0

    invoke-virtual {v0}, Lcom/moji/novice/tutorial/NoviceTutorialManager;->b()Z

    move-result v0

    if-nez v0, :cond_1

    .line 620
    new-instance v0, Lcom/moji/preferences/ProcessPrefer;

    invoke-direct {v0}, Lcom/moji/preferences/ProcessPrefer;-><init>()V

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/moji/preferences/ProcessPrefer;->a(I)V

    :cond_1
    return-void
.end method

.method static synthetic l(Lcom/moji/mjweather/MainActivity;)Lcom/moji/mjweather/MainActivity$MainHandler;
    .locals 0

    .line 204
    iget-object p0, p0, Lcom/moji/mjweather/MainActivity;->m:Lcom/moji/mjweather/MainActivity$MainHandler;

    return-object p0
.end method

.method private l()V
    .locals 1

    .line 893
    invoke-static {}, Lcom/moji/tool/preferences/CtaPrefer;->c()Lcom/moji/tool/preferences/CtaPrefer;

    move-result-object v0

    invoke-virtual {v0}, Lcom/moji/tool/preferences/CtaPrefer;->e()Z

    move-result v0

    if-nez v0, :cond_0

    return-void

    .line 898
    :cond_0
    new-instance v0, Lcom/moji/mjweather/MainActivity$7;

    invoke-direct {v0, p0}, Lcom/moji/mjweather/MainActivity$7;-><init>(Lcom/moji/mjweather/MainActivity;)V

    invoke-static {v0}, Lcom/moji/tool/thread/MJPools;->a(Ljava/lang/Runnable;)I

    return-void
.end method

.method static synthetic m(Lcom/moji/mjweather/MainActivity;)Lcom/moji/mjweather/TableScreenFragment;
    .locals 0

    .line 204
    iget-object p0, p0, Lcom/moji/mjweather/MainActivity;->i:Lcom/moji/mjweather/TableScreenFragment;

    return-object p0
.end method

.method private m()V
    .locals 6

    .line 937
    invoke-static {}, Lcom/mojiweather/area/AreaManagePrefer;->c()Lcom/mojiweather/area/AreaManagePrefer;

    move-result-object v0

    invoke-virtual {v0}, Lcom/mojiweather/area/AreaManagePrefer;->i()Z

    move-result v0

    .line 938
    invoke-static {}, Lcom/moji/tool/DeviceTool;->F()I

    move-result v1

    .line 939
    invoke-static {}, Lcom/moji/preferences/SettingPrefer;->c()Lcom/moji/preferences/SettingPrefer;

    move-result-object v2

    invoke-virtual {v2}, Lcom/moji/preferences/SettingPrefer;->l()I

    move-result v2

    .line 940
    invoke-static {}, Lcom/mojiweather/area/AreaManagePrefer;->c()Lcom/mojiweather/area/AreaManagePrefer;

    move-result-object v3

    invoke-virtual {v3}, Lcom/mojiweather/area/AreaManagePrefer;->j()Z

    move-result v3

    const/4 v4, 0x0

    if-eq v1, v2, :cond_0

    const/4 v2, 0x1

    goto :goto_0

    :cond_0
    const/4 v2, 0x0

    .line 942
    :goto_0
    invoke-static {}, Lcom/moji/mjweather/MainActivity;->o()Z

    move-result v5

    if-eqz v5, :cond_6

    if-eqz v0, :cond_2

    if-eqz v0, :cond_1

    if-eqz v3, :cond_2

    :cond_1
    if-eqz v2, :cond_6

    :cond_2
    invoke-direct {p0}, Lcom/moji/mjweather/MainActivity;->x()Z

    move-result v0

    if-eqz v0, :cond_6

    iget-object v0, p0, Lcom/moji/mjweather/MainActivity;->l:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    const/16 v3, 0x9

    if-ge v0, v3, :cond_6

    if-eqz v2, :cond_3

    .line 944
    invoke-static {}, Lcom/moji/preferences/SettingPrefer;->c()Lcom/moji/preferences/SettingPrefer;

    move-result-object v0

    invoke-virtual {v0, v1}, Lcom/moji/preferences/SettingPrefer;->c(I)V

    .line 946
    :cond_3
    iget-object v0, p0, Lcom/moji/mjweather/MainActivity;->B:Lcom/moji/dialog/MJDialog;

    if-nez v0, :cond_5

    .line 947
    iget-object v0, p0, Lcom/moji/mjweather/MainActivity;->b:Landroid/widget/LinearLayout;

    if-nez v0, :cond_4

    const v0, 0x7f0b0363

    const/4 v1, 0x0

    .line 948
    invoke-static {p0, v0, v1}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/moji/mjweather/MainActivity;->b:Landroid/widget/LinearLayout;

    .line 949
    iget-object v0, p0, Lcom/moji/mjweather/MainActivity;->b:Landroid/widget/LinearLayout;

    const v1, 0x7f090127

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/CheckBox;

    .line 950
    new-instance v1, Lcom/moji/mjweather/MainActivity$8;

    invoke-direct {v1, p0}, Lcom/moji/mjweather/MainActivity$8;-><init>(Lcom/moji/mjweather/MainActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/CheckBox;->setOnCheckedChangeListener(Landroid/widget/CompoundButton$OnCheckedChangeListener;)V

    .line 958
    :cond_4
    new-instance v0, Lcom/moji/dialog/control/MJDialogCustomControl$Builder;

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

    iget-object v1, p0, Lcom/moji/mjweather/MainActivity;->b:Landroid/widget/LinearLayout;

    .line 959
    invoke-virtual {v0, v1}, Lcom/moji/dialog/control/MJDialogCustomControl$Builder;->a(Landroid/view/View;)Lcom/moji/dialog/control/MJDialogCustomControl$Builder;

    move-result-object v0

    const v1, 0x7f0e0706

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

    move-result-object v0

    const v1, 0x7f0e0057

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

    move-result-object v0

    const v1, 0x7f0e0022

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

    move-result-object v0

    new-instance v1, Lcom/moji/mjweather/MainActivity$10;

    invoke-direct {v1, p0}, Lcom/moji/mjweather/MainActivity$10;-><init>(Lcom/moji/mjweather/MainActivity;)V

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

    move-result-object v0

    new-instance v1, Lcom/moji/mjweather/MainActivity$9;

    invoke-direct {v1, p0}, Lcom/moji/mjweather/MainActivity$9;-><init>(Lcom/moji/mjweather/MainActivity;)V

    .line 974
    invoke-virtual {v0, v1}, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;->b(Lcom/moji/dialog/control/MJDialogDefaultControl$SingleButtonCallback;)Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;

    move-result-object v0

    .line 981
    invoke-virtual {v0, v4}, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;->d(Z)Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;

    move-result-object v0

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

    move-result-object v0

    iput-object v0, p0, Lcom/moji/mjweather/MainActivity;->B:Lcom/moji/dialog/MJDialog;

    goto :goto_1

    .line 983
    :cond_5
    iget-object v0, p0, Lcom/moji/mjweather/MainActivity;->B:Lcom/moji/dialog/MJDialog;

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

    .line 985
    :goto_1
    invoke-direct {p0}, Lcom/moji/mjweather/MainActivity;->n()V

    :cond_6
    return-void
.end method

.method private n()V
    .locals 2

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

    move-result-object v0

    sget-object v1, Lcom/moji/statistics/EVENT_TAG;->REQUEST_SHOWS:Lcom/moji/statistics/EVENT_TAG;

    invoke-virtual {v0, v1}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;)Lcom/moji/statistics/EventManager;

    return-void
.end method

.method private static o()Z
    .locals 2

    .line 999
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x15

    if-le v0, v1, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return v0
.end method

.method private p()Z
    .locals 1

    .line 1055
    invoke-static {}, Lcom/moji/areamanagement/MJAreaManager;->h()Z

    move-result v0

    return v0
.end method

.method private q()V
    .locals 0

    return-void
.end method

.method private r()V
    .locals 3

    .line 1246
    invoke-static {}, Lcom/moji/areamanagement/MJAreaManager;->b()Lcom/moji/common/area/AreaInfo;

    move-result-object v0

    .line 1247
    invoke-static {}, Lcom/moji/areamanagement/MJAreaManager;->a()Lcom/moji/common/area/AreaInfo;

    move-result-object v1

    if-eqz v1, :cond_0

    .line 1248
    iget-boolean v1, v1, Lcom/moji/common/area/AreaInfo;->isLocation:Z

    if-nez v1, :cond_0

    if-eqz v0, :cond_0

    .line 1249
    invoke-static {v0}, Lcom/moji/areamanagement/MJAreaManager;->d(Lcom/moji/common/area/AreaInfo;)V

    .line 1251
    :cond_0
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/moji/mjweather/alert/WeatherAlertActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const/high16 v1, 0x10000000

    .line 1252
    invoke-virtual {v0, v1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    const-string v1, "caller"

    .line 1253
    sget-object v2, Lcom/moji/mjweather/alert/WeatherAlertActivity$CALLER;->MAIN:Lcom/moji/mjweather/alert/WeatherAlertActivity$CALLER;

    invoke-virtual {v2}, Lcom/moji/mjweather/alert/WeatherAlertActivity$CALLER;->ordinal()I

    move-result v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 1254
    invoke-virtual {p0, v0}, Lcom/moji/mjweather/MainActivity;->startActivity(Landroid/content/Intent;)V

    return-void
.end method

.method private s()V
    .locals 2

    .line 1258
    iget-object v0, p0, Lcom/moji/mjweather/MainActivity;->i:Lcom/moji/mjweather/TableScreenFragment;

    if-nez v0, :cond_0

    return-void

    .line 1261
    :cond_0
    iget-object v0, p0, Lcom/moji/mjweather/MainActivity;->i:Lcom/moji/mjweather/TableScreenFragment;

    invoke-virtual {v0}, Lcom/moji/mjweather/TableScreenFragment;->isRemoving()Z

    move-result v0

    if-nez v0, :cond_4

    iget-object v0, p0, Lcom/moji/mjweather/MainActivity;->i:Lcom/moji/mjweather/TableScreenFragment;

    invoke-virtual {v0}, Lcom/moji/mjweather/TableScreenFragment;->isDetached()Z

    move-result v0

    if-eqz v0, :cond_1

    goto :goto_1

    .line 1264
    :cond_1
    invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;

    move-result-object v0

    invoke-static {}, Landroid/os/Looper;->myLooper()Landroid/os/Looper;

    move-result-object v1

    if-eq v0, v1, :cond_2

    const/4 v0, 0x0

    .line 1265
    invoke-direct {p0, v0}, Lcom/moji/mjweather/MainActivity;->c(I)V

    return-void

    .line 1270
    :cond_2
    :try_start_0
    iget-object v0, p0, Lcom/moji/mjweather/MainActivity;->c:Landroid/support/v4/app/FragmentManager;

    invoke-virtual {v0}, Landroid/support/v4/app/FragmentManager;->beginTransaction()Landroid/support/v4/app/FragmentTransaction;

    move-result-object v0

    .line 1271
    iget-object v1, p0, Lcom/moji/mjweather/MainActivity;->i:Lcom/moji/mjweather/TableScreenFragment;

    invoke-virtual {v0, v1}, Landroid/support/v4/app/FragmentTransaction;->remove(Landroid/support/v4/app/Fragment;)Landroid/support/v4/app/FragmentTransaction;

    .line 1272
    iget-boolean v1, p0, Lcom/moji/mjweather/MainActivity;->y:Z

    if-nez v1, :cond_3

    .line 1274
    invoke-virtual {v0}, Landroid/support/v4/app/FragmentTransaction;->commit()I

    goto :goto_0

    .line 1276
    :cond_3
    iput-object v0, p0, Lcom/moji/mjweather/MainActivity;->z:Landroid/support/v4/app/FragmentTransaction;
    :try_end_0
    .catch Ljava/lang/IllegalStateException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    const-string v1, "MainActivity"

    .line 1279
    invoke-static {v1, v0}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V

    .line 1282
    :goto_0
    invoke-static {}, Lcom/moji/bus/Bus;->a()Lcom/moji/bus/Bus;

    move-result-object v0

    new-instance v1, Lcom/mojiweather/area/event/ShowLocationDialogInNeedEvent;

    invoke-direct {v1}, Lcom/mojiweather/area/event/ShowLocationDialogInNeedEvent;-><init>()V

    invoke-virtual {v0, v1}, Lcom/moji/bus/Bus;->c(Ljava/lang/Object;)V

    .line 1284
    invoke-virtual {p0}, Lcom/moji/mjweather/MainActivity;->getWindow()Landroid/view/Window;

    move-result-object v0

    invoke-static {v0}, Lcom/moji/tool/DeviceTool;->a(Landroid/view/Window;)V

    .line 1286
    invoke-direct {p0}, Lcom/moji/mjweather/MainActivity;->k()V

    return-void

    :cond_4
    :goto_1
    return-void
.end method

.method private t()V
    .locals 3

    .line 1291
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/mojiweather/area/AddAreaActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const/16 v1, 0x71

    .line 1292
    invoke-virtual {p0, v0, v1}, Lcom/moji/mjweather/MainActivity;->startActivityForResult(Landroid/content/Intent;I)V

    const v0, 0x7f010031

    const v1, 0x7f010015

    .line 1293
    invoke-virtual {p0, v0, v1}, Lcom/moji/mjweather/MainActivity;->overridePendingTransition(II)V

    .line 1294
    invoke-virtual {p0}, Lcom/moji/mjweather/MainActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    const-string v1, "\u8bf7\u6dfb\u52a0\u57ce\u5e02"

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    return-void
.end method

.method private u()V
    .locals 3

    .line 1298
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/mojiweather/area/AddAreaFirstRunActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string v1, "is_first_run"

    .line 1299
    iget-boolean v2, p0, Lcom/moji/mjweather/MainActivity;->j:Z

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    const/16 v1, 0x70

    .line 1300
    invoke-virtual {p0, v0, v1}, Lcom/moji/mjweather/MainActivity;->startActivityForResult(Landroid/content/Intent;I)V

    return-void
.end method

.method private v()V
    .locals 3

    .line 1305
    :try_start_0
    new-instance v0, Landroid/content/Intent;

    const-string v1, "android.settings.APPLICATION_DETAILS_SETTINGS"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 1306
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "package:"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p0}, Lcom/moji/mjweather/MainActivity;->getPackageName()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    const/16 v1, 0x6f

    .line 1307
    invoke-virtual {p0, v0, v1}, Lcom/moji/mjweather/MainActivity;->startActivityForResult(Landroid/content/Intent;I)V
    :try_end_0
    .catch Landroid/content/ActivityNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    const-string v1, "MainActivity"

    .line 1309
    invoke-static {v1, v0}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V

    :goto_0
    return-void
.end method

.method private w()Z
    .locals 2

    .line 1314
    invoke-virtual {p0}, Lcom/moji/mjweather/MainActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    sget-object v1, Lcom/moji/mjweather/TableScreenFragment;->d:[Ljava/lang/String;

    invoke-static {v0, v1}, Lcom/moji/tool/permission/EasyPermissions;->a(Landroid/content/Context;[Ljava/lang/String;)Z

    move-result v0

    return v0
.end method

.method private x()Z
    .locals 2

    .line 1321
    invoke-virtual {p0}, Lcom/moji/mjweather/MainActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    sget-object v1, Lcom/moji/mjweather/TableScreenFragment;->b:[Ljava/lang/String;

    invoke-static {v0, v1}, Lcom/moji/tool/permission/EasyPermissions;->a(Landroid/content/Context;[Ljava/lang/String;)Z

    move-result v0

    return v0
.end method

.method private y()Ljava/util/List;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List<",
            "Lcom/moji/common/area/AreaInfo;",
            ">;"
        }
    .end annotation

    .line 1353
    invoke-static {}, Lcom/moji/areamanagement/MJAreaManager;->c()Ljava/util/List;

    move-result-object v0

    if-nez v0, :cond_0

    .line 1354
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    :cond_0
    return-object v0
.end method

.method private z()V
    .locals 3

    .line 1413
    new-instance v0, Lcom/moji/preferences/DefaultPrefer;

    invoke-direct {v0}, Lcom/moji/preferences/DefaultPrefer;-><init>()V

    invoke-virtual {v0}, Lcom/moji/preferences/DefaultPrefer;->t()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/moji/mjweather/MainActivity;->E:Ljava/lang/String;

    .line 1414
    iget-object v0, p0, Lcom/moji/mjweather/MainActivity;->E:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 1415
    invoke-static {}, Lcom/moji/tool/thread/MJThreadManager;->a()Lcom/moji/tool/thread/MJThreadManager;

    move-result-object v0

    new-instance v1, Lcom/moji/mjweather/MainActivity$14;

    sget-object v2, Lcom/moji/tool/thread/ThreadPriority;->NORMAL:Lcom/moji/tool/thread/ThreadPriority;

    invoke-direct {v1, p0, v2}, Lcom/moji/mjweather/MainActivity$14;-><init>(Lcom/moji/mjweather/MainActivity;Lcom/moji/tool/thread/ThreadPriority;)V

    sget-object v2, Lcom/moji/tool/thread/ThreadType;->NORMAL_THREAD:Lcom/moji/tool/thread/ThreadType;

    invoke-virtual {v0, v1, v2}, Lcom/moji/tool/thread/MJThreadManager;->a(Lcom/moji/tool/thread/wrapper/MJRunnable;Lcom/moji/tool/thread/ThreadType;)V

    :cond_0
    return-void
.end method


# virtual methods
.method public GetClipBoardContent()Ljava/lang/String;
    .locals 2

    const-string v0, ""

    const-string v1, "clipboard"

    .line 1482
    invoke-virtual {p0, v1}, Lcom/moji/mjweather/MainActivity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/content/ClipboardManager;

    iput-object v1, p0, Lcom/moji/mjweather/MainActivity;->x:Landroid/content/ClipboardManager;

    .line 1484
    iget-object v1, p0, Lcom/moji/mjweather/MainActivity;->x:Landroid/content/ClipboardManager;

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/moji/mjweather/MainActivity;->x:Landroid/content/ClipboardManager;

    invoke-virtual {v1}, Landroid/content/ClipboardManager;->getPrimaryClip()Landroid/content/ClipData;

    move-result-object v1

    if-eqz v1, :cond_0

    .line 1485
    iget-object v0, p0, Lcom/moji/mjweather/MainActivity;->x:Landroid/content/ClipboardManager;

    invoke-virtual {v0}, Landroid/content/ClipboardManager;->getPrimaryClip()Landroid/content/ClipData;

    move-result-object v0

    const/4 v1, 0x0

    .line 1486
    invoke-virtual {v0, v1}, Landroid/content/ClipData;->getItemAt(I)Landroid/content/ClipData$Item;

    move-result-object v0

    .line 1487
    invoke-virtual {v0}, Landroid/content/ClipData$Item;->getText()Ljava/lang/CharSequence;

    move-result-object v0

    invoke-interface {v0}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v0

    .line 1490
    :cond_0
    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_1

    const-string v0, ""

    return-object v0

    .line 1493
    :cond_1
    iget-object v1, p0, Lcom/moji/mjweather/MainActivity;->F:Lcom/moji/member/helper/CouponHelper;

    invoke-virtual {v1, v0}, Lcom/moji/member/helper/CouponHelper;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method protected a(Lcom/moji/common/area/AreaInfo;)V
    .locals 6

    .line 1003
    invoke-static {}, Lcom/moji/weatherprovider/provider/WeatherProvider;->b()Lcom/moji/weatherprovider/provider/WeatherProvider;

    move-result-object v0

    invoke-virtual {v0, p1}, Lcom/moji/weatherprovider/provider/WeatherProvider;->a(Lcom/moji/common/area/AreaInfo;)Lcom/moji/weatherprovider/data/Weather;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 1004
    iget-object v1, v0, Lcom/moji/weatherprovider/data/Weather;->mDetail:Lcom/moji/weatherprovider/data/Detail;

    if-eqz v1, :cond_0

    iget-object v1, v0, Lcom/moji/weatherprovider/data/Weather;->mDetail:Lcom/moji/weatherprovider/data/Detail;

    iget-wide v1, v1, Lcom/moji/weatherprovider/data/Detail;->mCityId:J

    const-wide/16 v3, 0x0

    cmp-long v5, v1, v3

    if-lez v5, :cond_0

    iget-object v1, v0, Lcom/moji/weatherprovider/data/Weather;->mDetail:Lcom/moji/weatherprovider/data/Detail;

    iget-object v1, v1, Lcom/moji/weatherprovider/data/Detail;->mCityName:Ljava/lang/String;

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_0

    .line 1005
    invoke-direct {p0, p1, v0}, Lcom/moji/mjweather/MainActivity;->a(Lcom/moji/common/area/AreaInfo;Lcom/moji/weatherprovider/data/Weather;)V

    goto :goto_0

    :cond_0
    const v0, 0x7f0e0959

    const/4 v1, 0x0

    .line 1007
    invoke-static {p0, v0, v1}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    .line 1008
    new-instance v0, Lcom/moji/weatherprovider/update/WeatherUpdater;

    invoke-direct {v0}, Lcom/moji/weatherprovider/update/WeatherUpdater;-><init>()V

    .line 1009
    new-instance v1, Lcom/moji/mjweather/MainActivity$11;

    invoke-direct {v1, p0}, Lcom/moji/mjweather/MainActivity$11;-><init>(Lcom/moji/mjweather/MainActivity;)V

    invoke-virtual {v0, p1, v1}, Lcom/moji/weatherprovider/update/WeatherUpdater;->a(Lcom/moji/common/area/AreaInfo;Lcom/moji/weatherprovider/update/WeatherUpdateListener;)V

    :goto_0
    return-void
.end method

.method public dispatchKeyEvent(Landroid/view/KeyEvent;)Z
    .locals 2

    .line 2082
    invoke-virtual {p1}, Landroid/view/KeyEvent;->getAction()I

    move-result v0

    if-nez v0, :cond_0

    const/4 v0, 0x4

    invoke-virtual {p1}, Landroid/view/KeyEvent;->getKeyCode()I

    move-result v1

    if-ne v0, v1, :cond_0

    .line 2083
    invoke-static {}, Lorg/greenrobot/eventbus/EventBus;->a()Lorg/greenrobot/eventbus/EventBus;

    move-result-object v0

    new-instance v1, Lcom/moji/mjweather/event/CommerceTimeEvent;

    invoke-direct {v1}, Lcom/moji/mjweather/event/CommerceTimeEvent;-><init>()V

    invoke-virtual {v0, v1}, Lorg/greenrobot/eventbus/EventBus;->d(Ljava/lang/Object;)V

    .line 2085
    :cond_0
    invoke-super {p0, p1}, Lcom/moji/base/MJActivity;->dispatchKeyEvent(Landroid/view/KeyEvent;)Z

    move-result p1

    return p1
.end method

.method public eventOnNetWorkChange(Lcom/moji/mjad/common/receiver/NetWorkChangeEvent;)V
    .locals 3
    .annotation runtime Lorg/greenrobot/eventbus/Subscribe;
        a = .enum Lorg/greenrobot/eventbus/ThreadMode;->MAIN:Lorg/greenrobot/eventbus/ThreadMode;
    .end annotation

    const-string p1, "MainActivity"

    const-string v0, "eventOnNetWorkChange"

    .line 372
    invoke-static {p1, v0}, Lcom/moji/tool/log/MJLogger;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 373
    iget-boolean p1, p0, Lcom/moji/mjweather/MainActivity;->k:Z

    if-eqz p1, :cond_1

    invoke-static {}, Lcom/moji/preferences/ActivityLifePrefer;->a()Lcom/moji/preferences/ActivityLifePrefer;

    move-result-object p1

    invoke-virtual {p1}, Lcom/moji/preferences/ActivityLifePrefer;->i()Z

    move-result p1

    if-nez p1, :cond_1

    .line 374
    iget-object p1, p0, Lcom/moji/mjweather/MainActivity;->m:Lcom/moji/mjweather/MainActivity$MainHandler;

    if-nez p1, :cond_0

    .line 375
    new-instance p1, Lcom/moji/mjweather/MainActivity$MainHandler;

    invoke-direct {p1, p0}, Lcom/moji/mjweather/MainActivity$MainHandler;-><init>(Lcom/moji/mjweather/MainActivity;)V

    iput-object p1, p0, Lcom/moji/mjweather/MainActivity;->m:Lcom/moji/mjweather/MainActivity$MainHandler;

    .line 377
    :cond_0
    iget-object p1, p0, Lcom/moji/mjweather/MainActivity;->m:Lcom/moji/mjweather/MainActivity$MainHandler;

    new-instance v0, Lcom/moji/mjweather/MainActivity$1;

    invoke-direct {v0, p0}, Lcom/moji/mjweather/MainActivity$1;-><init>(Lcom/moji/mjweather/MainActivity;)V

    const-wide/16 v1, 0x3e8

    invoke-virtual {p1, v0, v1, v2}, Lcom/moji/mjweather/MainActivity$MainHandler;->postDelayed(Ljava/lang/Runnable;J)Z

    :cond_1
    return-void
.end method

.method public eventPushLock(Lcom/moji/appupdate/GetTuiPushStatsEvent;)V
    .locals 0
    .annotation runtime Lorg/greenrobot/eventbus/Subscribe;
        a = .enum Lorg/greenrobot/eventbus/ThreadMode;->MAIN:Lorg/greenrobot/eventbus/ThreadMode;
    .end annotation

    if-eqz p1, :cond_1

    .line 1500
    iget-boolean p1, p1, Lcom/moji/appupdate/GetTuiPushStatsEvent;->a:Z

    if-eqz p1, :cond_0

    .line 1501
    invoke-static {}, Lcom/moji/push/MJPushManager;->a()V

    goto :goto_0

    .line 1503
    :cond_0
    invoke-static {}, Lcom/moji/push/MJPushManager;->b()V

    :cond_1
    :goto_0
    return-void
.end method

.method public eventSyncClientID(Lcom/moji/base/event/AppIntoBackground;)V
    .locals 1
    .annotation runtime Lorg/greenrobot/eventbus/Subscribe;
        a = .enum Lorg/greenrobot/eventbus/ThreadMode;->MAIN:Lorg/greenrobot/eventbus/ThreadMode;
    .end annotation

    if-eqz p1, :cond_1

    .line 1388
    iget-boolean p1, p1, Lcom/moji/base/event/AppIntoBackground;->a:Z

    if-eqz p1, :cond_0

    .line 1390
    new-instance p1, Lcom/moji/push/info/PushInfoSynchronous;

    invoke-direct {p1}, Lcom/moji/push/info/PushInfoSynchronous;-><init>()V

    invoke-virtual {p1}, Lcom/moji/push/info/PushInfoSynchronous;->exitAppTokenSync()V

    .line 1392
    invoke-static {}, Lcom/moji/statistics/upload/EventUploader;->uploadEventLog()V

    .line 1394
    new-instance p1, Lcom/moji/appwidget/MainThreadSkinUpdate;

    invoke-direct {p1}, Lcom/moji/appwidget/MainThreadSkinUpdate;-><init>()V

    invoke-static {}, Lcom/moji/tool/AppDelegate;->a()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {p1, v0}, Lcom/moji/appwidget/MainThreadSkinUpdate;->a(Landroid/content/Context;)V

    .line 1396
    invoke-static {}, Lcom/moji/callup/MJCallUpManager;->a()Lcom/moji/callup/MJCallUpManager;

    move-result-object p1

    invoke-virtual {p1}, Lcom/moji/callup/MJCallUpManager;->d()V

    goto :goto_0

    .line 1399
    :cond_0
    invoke-direct {p0}, Lcom/moji/mjweather/MainActivity;->z()V

    .line 1401
    invoke-direct {p0}, Lcom/moji/mjweather/MainActivity;->G()V

    .line 1403
    invoke-static {}, Lcom/moji/callup/MJCallUpManager;->a()Lcom/moji/callup/MJCallUpManager;

    move-result-object p1

    invoke-virtual {p1}, Lcom/moji/callup/MJCallUpManager;->d()V

    .line 1405
    invoke-direct {p0}, Lcom/moji/mjweather/MainActivity;->A()V

    :cond_1
    :goto_0
    return-void
.end method

.method public eventTutorialEnd(Lcom/moji/novice/event/TutorialEndEvent;)V
    .locals 1
    .annotation runtime Lorg/greenrobot/eventbus/Subscribe;
        a = .enum Lorg/greenrobot/eventbus/ThreadMode;->MAIN:Lorg/greenrobot/eventbus/ThreadMode;
    .end annotation

    if-eqz p1, :cond_0

    const/4 p1, 0x1

    .line 1369
    sput-boolean p1, Lcom/moji/novice/data/CommonData;->c:Z

    .line 1371
    invoke-direct {p0}, Lcom/moji/mjweather/MainActivity;->s()V

    .line 1372
    iget-boolean v0, p0, Lcom/moji/mjweather/MainActivity;->q:Z

    if-eqz v0, :cond_0

    .line 1373
    invoke-direct {p0, p1}, Lcom/moji/mjweather/MainActivity;->a(Z)V

    :cond_0
    return-void
.end method

.method public eventUpgradeDialog(Lcom/moji/appupdate/HomeUpdateDialogEvent;)V
    .locals 1
    .annotation runtime Lorg/greenrobot/eventbus/Subscribe;
        a = .enum Lorg/greenrobot/eventbus/ThreadMode;->MAIN:Lorg/greenrobot/eventbus/ThreadMode;
    .end annotation

    if-eqz p1, :cond_0

    .line 1380
    iget-object v0, p1, Lcom/moji/appupdate/HomeUpdateDialogEvent;->a:Lcom/moji/appupdate/UpgradeBaseCenter;

    if-eqz v0, :cond_0

    .line 1381
    iget-object p1, p1, Lcom/moji/appupdate/HomeUpdateDialogEvent;->a:Lcom/moji/appupdate/UpgradeBaseCenter;

    invoke-virtual {p1, p0}, Lcom/moji/appupdate/UpgradeBaseCenter;->a(Landroid/app/Activity;)V

    :cond_0
    return-void
.end method

.method protected f()Z
    .locals 1

    const/4 v0, 0x0

    return v0
.end method

.method protected h()Z
    .locals 1

    const/4 v0, 0x1

    return v0
.end method

.method public hasAreas()Z
    .locals 1

    .line 1359
    iget-object v0, p0, Lcom/moji/mjweather/MainActivity;->l:Ljava/util/List;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/moji/mjweather/MainActivity;->l:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->isEmpty()Z

    move-result v0

    if-nez v0, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return v0
.end method

.method public initCredit()V
    .locals 1

    .line 1840
    sget-object v0, Lcom/moji/credit/CreditTaskType;->SIGN_IN:Lcom/moji/credit/CreditTaskType;

    invoke-static {p0, v0}, Lcom/moji/credit/CreditTaskHelper;->b(Landroid/content/Context;Lcom/moji/credit/CreditTaskType;)V

    return-void
.end method

.method public isPressedBG()Z
    .locals 1

    .line 1208
    iget-boolean v0, p0, Lcom/moji/mjweather/MainActivity;->G:Z

    return v0
.end method

.method public isSystemApp(Landroid/content/pm/ApplicationInfo;)Z
    .locals 2

    .line 480
    iget v0, p1, Landroid/content/pm/ApplicationInfo;->flags:I

    const/4 v1, 0x1

    and-int/2addr v0, v1

    if-nez v0, :cond_1

    iget p1, p1, Landroid/content/pm/ApplicationInfo;->flags:I

    and-int/lit16 p1, p1, 0x80

    if-eqz p1, :cond_0

    goto :goto_0

    :cond_0
    const/4 v1, 0x0

    :cond_1
    :goto_0
    return v1
.end method

.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 3

    .line 741
    invoke-super {p0, p1, p2, p3}, Lcom/moji/base/MJActivity;->onActivityResult(IILandroid/content/Intent;)V

    const-string v0, "MainActivity"

    .line 742
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "onActivityResult: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/moji/tool/log/MJLogger;->b(Ljava/lang/String;Ljava/lang/String;)V

    const/16 v0, 0x69

    if-ne p2, v0, :cond_0

    .line 745
    invoke-virtual {p0}, Lcom/moji/mjweather/MainActivity;->finish()V

    goto :goto_1

    :cond_0
    const/16 v0, 0x12b

    const/16 v1, 0x70

    if-ne p2, v0, :cond_2

    if-eq p1, v1, :cond_1

    const/16 v0, 0x72

    if-ne p1, v0, :cond_2

    .line 750
    :cond_1
    invoke-static {}, Lcom/moji/areamanagement/MJAreaManager;->a()Lcom/moji/common/area/AreaInfo;

    move-result-object v0

    if-eqz v0, :cond_2

    .line 752
    invoke-static {}, Lcom/moji/router/MJRouter;->a()Lcom/moji/router/MJRouter;

    move-result-object v0

    const-string v2, "allergy/main"

    invoke-virtual {v0, v2}, Lcom/moji/router/MJRouter;->a(Ljava/lang/String;)Lcom/moji/router/Postcard;

    move-result-object v0

    invoke-virtual {v0}, Lcom/moji/router/Postcard;->a()V

    :cond_2
    const/16 v0, 0x6f

    if-ne p1, v0, :cond_3

    .line 757
    invoke-direct {p0}, Lcom/moji/mjweather/MainActivity;->w()Z

    move-result v0

    const/4 v1, 0x0

    .line 758
    invoke-virtual {p0, v0, v1}, Lcom/moji/mjweather/MainActivity;->showTableScreenFragment(ZZ)V

    goto :goto_0

    :cond_3
    if-ne p1, v1, :cond_4

    .line 760
    iget-object v0, p0, Lcom/moji/mjweather/MainActivity;->l:Ljava/util/List;

    invoke-direct {p0}, Lcom/moji/mjweather/MainActivity;->y()Ljava/util/List;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    const/16 v0, 0x3e9

    if-ne p2, v0, :cond_4

    .line 762
    invoke-virtual {p0}, Lcom/moji/mjweather/MainActivity;->finish()V

    .line 771
    :cond_4
    :goto_0
    :try_start_0
    new-instance v0, Landroid/os/Bundle;

    const/4 v1, 0x3

    invoke-direct {v0, v1}, Landroid/os/Bundle;-><init>(I)V

    const-string v1, "requestCode"

    .line 772
    invoke-virtual {v0, v1, p1}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    const-string p1, "resultCode"

    .line 773
    invoke-virtual {v0, p1, p2}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    const-string p1, "data"

    .line 774
    invoke-virtual {v0, p1, p3}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V

    .line 775
    invoke-static {}, Lcom/moji/bus/Bus;->a()Lcom/moji/bus/Bus;

    move-result-object p1

    const-string p2, "eventWeiboOnActivityForResult"

    invoke-virtual {p1, p2, v0}, Lcom/moji/bus/Bus;->a(Ljava/lang/String;Ljava/lang/Object;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    :catch_0
    move-exception p1

    const-string p2, "MainActivity"

    .line 777
    invoke-static {p2, p1}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V

    :goto_1
    return-void
.end method

.method public onBackPressed()V
    .locals 3

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

    move-result-object v0

    sget-object v1, Lcom/moji/statistics/EVENT_TAG;->RETURN_KEY_CLICK:Lcom/moji/statistics/EVENT_TAG;

    invoke-virtual {v0, v1}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;)Lcom/moji/statistics/EventManager;

    .line 1958
    iget-object v0, p0, Lcom/moji/mjweather/MainActivity;->c:Landroid/support/v4/app/FragmentManager;

    const v1, 0x7f090271

    invoke-virtual {v0, v1}, Landroid/support/v4/app/FragmentManager;->findFragmentById(I)Landroid/support/v4/app/Fragment;

    move-result-object v0

    .line 1959
    instance-of v1, v0, Lcom/moji/mjweather/TableScreenFragment;

    if-nez v1, :cond_4

    .line 1960
    iget-object v1, p0, Lcom/moji/mjweather/MainActivity;->c:Landroid/support/v4/app/FragmentManager;

    invoke-virtual {v1}, Landroid/support/v4/app/FragmentManager;->getBackStackEntryCount()I

    move-result v1

    if-nez v1, :cond_3

    const/4 v1, 0x1

    .line 1961
    invoke-direct {p0, v1}, Lcom/moji/mjweather/MainActivity;->d(Z)Z

    move-result v2

    if-eqz v2, :cond_0

    return-void

    .line 1964
    :cond_0
    instance-of v2, v0, Lcom/moji/mjweather/MainFragment;

    if-eqz v2, :cond_1

    move-object v2, v0

    check-cast v2, Lcom/moji/mjweather/MainFragment;

    invoke-virtual {v2}, Lcom/moji/mjweather/MainFragment;->h()Z

    move-result v2

    if-eqz v2, :cond_1

    return-void

    .line 1967
    :cond_1
    instance-of v2, v0, Lcom/moji/mjweather/MainFragment;

    if-eqz v2, :cond_2

    check-cast v0, Lcom/moji/mjweather/MainFragment;

    invoke-virtual {v0}, Lcom/moji/mjweather/MainFragment;->i()Z

    move-result v0

    if-eqz v0, :cond_2

    return-void

    .line 1970
    :cond_2
    invoke-virtual {p0, v1}, Lcom/moji/mjweather/MainActivity;->moveTaskToBack(Z)Z

    goto :goto_0

    .line 1972
    :cond_3
    invoke-super {p0}, Lcom/moji/base/MJActivity;->onBackPressed()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    const-string v1, "MainActivity"

    .line 1976
    invoke-static {v1, v0}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V

    :cond_4
    :goto_0
    return-void
.end method

.method public onBackToForeground()V
    .locals 4

    const-string v0, "MainActivity"

    const-string v1, "main back to fore"

    .line 654
    invoke-static {v0, v1}, Lcom/moji/tool/log/MJLogger;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 655
    new-instance v0, Lcom/moji/mjad/preferences/MojiAdPreference;

    invoke-direct {v0}, Lcom/moji/mjad/preferences/MojiAdPreference;-><init>()V

    const/4 v1, 0x1

    .line 656
    invoke-virtual {v0, v1}, Lcom/moji/mjad/preferences/MojiAdPreference;->a(Z)V

    .line 657
    invoke-virtual {p0, v1}, Lcom/moji/mjweather/MainActivity;->setPressedBG(Z)V

    .line 659
    iget-object v0, p0, Lcom/moji/mjweather/MainActivity;->c:Landroid/support/v4/app/FragmentManager;

    const-string v2, "main_fragment"

    invoke-virtual {v0, v2}, Landroid/support/v4/app/FragmentManager;->findFragmentByTag(Ljava/lang/String;)Landroid/support/v4/app/Fragment;

    move-result-object v0

    check-cast v0, Lcom/moji/mjweather/MainFragment;

    if-eqz v0, :cond_0

    .line 661
    invoke-virtual {v0}, Lcom/moji/mjweather/MainFragment;->g()V

    .line 663
    :cond_0
    new-instance v0, Ljava/util/Date;

    new-instance v2, Lcom/moji/appupdate/UpdatePreferce;

    invoke-direct {v2}, Lcom/moji/appupdate/UpdatePreferce;-><init>()V

    invoke-virtual {v2}, Lcom/moji/appupdate/UpdatePreferce;->h()J

    move-result-wide v2

    invoke-direct {v0, v2, v3}, Ljava/util/Date;-><init>(J)V

    invoke-direct {p0, v0}, Lcom/moji/mjweather/MainActivity;->a(Ljava/util/Date;)Z

    move-result v0

    if-nez v0, :cond_1

    const-string v0, "MainActivity"

    const-string v2, "home to mainActivity"

    .line 664
    invoke-static {v0, v2}, Lcom/moji/tool/log/MJLogger;->c(Ljava/lang/String;Ljava/lang/String;)V

    const/4 v0, 0x0

    .line 665
    invoke-direct {p0, v1, v0}, Lcom/moji/mjweather/MainActivity;->a(ZZ)V

    goto :goto_0

    .line 667
    :cond_1
    invoke-direct {p0, v1, v1}, Lcom/moji/mjweather/MainActivity;->a(ZZ)V

    .line 672
    :goto_0
    new-instance v0, Lcom/moji/mjweather/MainActivity$4;

    invoke-direct {v0, p0}, Lcom/moji/mjweather/MainActivity$4;-><init>(Lcom/moji/mjweather/MainActivity;)V

    invoke-static {v0}, Lcom/moji/tool/thread/MJPools;->a(Ljava/lang/Runnable;)I

    .line 699
    invoke-static {}, Lcom/moji/weathersence/avatar/AvatarSkin;->b()Lcom/moji/weathersence/avatar/AvatarSkin;

    move-result-object v0

    invoke-virtual {v0}, Lcom/moji/weathersence/avatar/AvatarSkin;->a()V

    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 3

    const/4 v0, 0x1

    .line 396
    iput-boolean v0, p0, Lcom/moji/mjweather/MainActivity;->e:Z

    .line 398
    invoke-super {p0, p1}, Lcom/moji/base/MJActivity;->onCreate(Landroid/os/Bundle;)V

    .line 399
    invoke-direct {p0}, Lcom/moji/mjweather/MainActivity;->e()Z

    move-result p1

    iput-boolean p1, p0, Lcom/moji/mjweather/MainActivity;->j:Z

    .line 400
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v1

    sput-wide v1, Lcom/moji/mjweather/MainActivity;->sOnCreateTime:J

    const p1, 0x7f0b0050

    .line 401
    invoke-virtual {p0, p1}, Lcom/moji/mjweather/MainActivity;->setContentView(I)V

    .line 402
    invoke-virtual {p0}, Lcom/moji/mjweather/MainActivity;->getWindow()Landroid/view/Window;

    move-result-object p1

    invoke-virtual {p0}, Lcom/moji/mjweather/MainActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f0802fd

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    invoke-virtual {p1, v1}, Landroid/view/Window;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 403
    invoke-direct {p0}, Lcom/moji/mjweather/MainActivity;->c()V

    .line 412
    iput-object p0, p0, Lcom/moji/mjweather/MainActivity;->f:Lcom/moji/base/ISwitchFrontAndBack;

    .line 413
    invoke-virtual {p0}, Lcom/moji/mjweather/MainActivity;->getSupportFragmentManager()Landroid/support/v4/app/FragmentManager;

    move-result-object p1

    iput-object p1, p0, Lcom/moji/mjweather/MainActivity;->c:Landroid/support/v4/app/FragmentManager;

    .line 414
    invoke-direct {p0}, Lcom/moji/mjweather/MainActivity;->w()Z

    move-result p1

    iput-boolean p1, p0, Lcom/moji/mjweather/MainActivity;->k:Z

    .line 415
    new-instance p1, Lcom/moji/mjad/preferences/MojiAdPreference;

    invoke-direct {p1}, Lcom/moji/mjad/preferences/MojiAdPreference;-><init>()V

    .line 416
    iget-boolean v1, p0, Lcom/moji/mjweather/MainActivity;->j:Z

    if-eqz v1, :cond_0

    .line 417
    invoke-virtual {p1}, Lcom/moji/mjad/preferences/MojiAdPreference;->t()V

    .line 419
    :cond_0
    invoke-virtual {p1, v0}, Lcom/moji/mjad/preferences/MojiAdPreference;->a(Z)V

    .line 420
    new-instance p1, Lcom/moji/preferences/DefaultPrefer;

    invoke-direct {p1}, Lcom/moji/preferences/DefaultPrefer;-><init>()V

    sget-object v0, Lcom/moji/preferences/DefaultPrefer$KeyConstant;->TIME_FORE_TO_BACKGROUND:Lcom/moji/preferences/DefaultPrefer$KeyConstant;

    sget-wide v1, Lcom/moji/mjweather/MainActivity;->sOnCreateTime:J

    invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v1

    invoke-virtual {p1, v0, v1}, Lcom/moji/preferences/DefaultPrefer;->a(Lcom/moji/tool/preferences/core/IPreferKey;Ljava/lang/Long;)V

    .line 421
    invoke-static {}, Lcom/moji/weatherprovider/SilentCityManager;->a()Lcom/moji/weatherprovider/SilentCityManager;

    move-result-object p1

    iget-boolean v0, p0, Lcom/moji/mjweather/MainActivity;->j:Z

    invoke-virtual {p1, v0}, Lcom/moji/weatherprovider/SilentCityManager;->a(Z)V

    .line 423
    iget-object p1, p0, Lcom/moji/mjweather/MainActivity;->l:Ljava/util/List;

    invoke-direct {p0}, Lcom/moji/mjweather/MainActivity;->y()Ljava/util/List;

    move-result-object v0

    invoke-interface {p1, v0}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    .line 424
    iget-boolean p1, p0, Lcom/moji/mjweather/MainActivity;->k:Z

    if-eqz p1, :cond_3

    iget-boolean p1, p0, Lcom/moji/mjweather/MainActivity;->j:Z

    if-eqz p1, :cond_1

    iget-object p1, p0, Lcom/moji/mjweather/MainActivity;->l:Ljava/util/List;

    invoke-interface {p1}, Ljava/util/List;->isEmpty()Z

    move-result p1

    if-nez p1, :cond_3

    .line 425
    :cond_1
    invoke-virtual {p0}, Lcom/moji/mjweather/MainActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object p1

    sget-object v0, Lcom/moji/mjweather/TableScreenFragment;->c:[Ljava/lang/String;

    invoke-static {p1, v0}, Lcom/moji/tool/permission/EasyPermissions;->a(Landroid/content/Context;[Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_2

    .line 426
    new-instance p1, Lcom/moji/mjad/Commerce;

    invoke-direct {p1}, Lcom/moji/mjad/Commerce;-><init>()V

    invoke-virtual {p0}, Lcom/moji/mjweather/MainActivity;->getApplication()Landroid/app/Application;

    move-result-object v0

    invoke-virtual {p1, v0}, Lcom/moji/mjad/Commerce;->b(Landroid/content/Context;)V

    :cond_2
    const/4 p1, 0x0

    .line 428
    invoke-direct {p0, p1}, Lcom/moji/mjweather/MainActivity;->a(Z)V

    .line 431
    :cond_3
    invoke-static {}, Lcom/moji/mjweather/setting/fragment/SettingDevelopConsoleFragment;->i()Z

    move-result p1

    if-eqz p1, :cond_4

    invoke-static {}, Lcom/moji/mjweather/setting/fragment/SettingDevelopConsoleFragment;->h()Z

    move-result p1

    if-eqz p1, :cond_4

    .line 433
    invoke-static {}, Lcom/moji/mjweather/setting/fragment/SettingDevelopConsoleFragment;->c()Ljava/lang/String;

    move-result-object p1

    invoke-static {p0, p1}, Lcom/moji/mjweather/NavigationManager;->g(Landroid/content/Context;Ljava/lang/String;)V

    goto :goto_0

    .line 435
    :cond_4
    iget-boolean p1, p0, Lcom/moji/mjweather/MainActivity;->k:Z

    iget-boolean v0, p0, Lcom/moji/mjweather/MainActivity;->j:Z

    invoke-virtual {p0, p1, v0}, Lcom/moji/mjweather/MainActivity;->showTableScreenFragment(ZZ)V

    .line 437
    :goto_0
    sget p1, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v0, 0x13

    if-lt p1, v0, :cond_5

    const/16 p1, 0xc04

    .line 439
    invoke-virtual {p0}, Lcom/moji/mjweather/MainActivity;->getWindow()Landroid/view/Window;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/Window;->getDecorView()Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, p1}, Landroid/view/View;->setSystemUiVisibility(I)V

    :cond_5
    return-void
.end method

.method protected onDestroy()V
    .locals 2

    const/4 v0, 0x1

    .line 1510
    iput-boolean v0, p0, Lcom/moji/mjweather/MainActivity;->d:Z

    .line 1511
    invoke-super {p0}, Lcom/moji/base/MJActivity;->onDestroy()V

    .line 1512
    iget-object v0, p0, Lcom/moji/mjweather/MainActivity;->m:Lcom/moji/mjweather/MainActivity$MainHandler;

    if-eqz v0, :cond_0

    .line 1513
    iget-object v0, p0, Lcom/moji/mjweather/MainActivity;->m:Lcom/moji/mjweather/MainActivity$MainHandler;

    const/16 v1, 0x63

    invoke-virtual {v0, v1}, Lcom/moji/mjweather/MainActivity$MainHandler;->removeMessages(I)V

    .line 1515
    :cond_0
    invoke-static {}, Lcom/moji/mjweather/weather/window/AvatarWindowManager;->a()Lcom/moji/mjweather/weather/window/AvatarWindowManager;

    move-result-object v0

    invoke-virtual {v0}, Lcom/moji/mjweather/weather/window/AvatarWindowManager;->g()V

    .line 1517
    invoke-static {}, Lcom/moji/mjad/statistics/AdStatistics;->a()Lcom/moji/mjad/statistics/AdStatistics;

    move-result-object v0

    invoke-virtual {v0}, Lcom/moji/mjad/statistics/AdStatistics;->b()V

    .line 1518
    invoke-static {}, Lcom/moji/mjweather/weather/control/CacheViewControlManager;->b()Lcom/moji/mjweather/weather/control/CacheViewControlManager;

    move-result-object v0

    invoke-virtual {v0}, Lcom/moji/mjweather/weather/control/CacheViewControlManager;->c()V

    .line 1520
    invoke-static {}, Lcom/moji/weathersence/MJSceneDataManager;->b()Lcom/moji/weathersence/MJSceneDataManager;

    move-result-object v0

    invoke-virtual {v0}, Lcom/moji/weathersence/MJSceneDataManager;->e()V

    .line 1521
    invoke-static {}, Lcom/moji/tool/log/MJLogger;->d()V

    .line 1522
    invoke-direct {p0}, Lcom/moji/mjweather/MainActivity;->H()V

    .line 1523
    invoke-static {}, Lcom/moji/callup/MJCallUpManager;->a()Lcom/moji/callup/MJCallUpManager;

    move-result-object v0

    invoke-virtual {v0}, Lcom/moji/callup/MJCallUpManager;->e()V

    return-void
.end method

.method public onForeToBackground()V
    .locals 3

    .line 707
    invoke-static {}, Lcom/moji/novice/guide/GuideShowManager;->a()V

    .line 708
    invoke-static {p0}, Lcom/moji/mjweather/voice/PlayerUtil;->b(Landroid/content/Context;)V

    .line 709
    new-instance v0, Lcom/moji/mjweather/MainActivity$5;

    invoke-direct {v0, p0}, Lcom/moji/mjweather/MainActivity$5;-><init>(Lcom/moji/mjweather/MainActivity;)V

    sget-object v1, Lcom/moji/tool/thread/ThreadType;->IO_THREAD:Lcom/moji/tool/thread/ThreadType;

    sget-object v2, Lcom/moji/tool/thread/ThreadPriority;->HIGH:Lcom/moji/tool/thread/ThreadPriority;

    invoke-static {v0, v1, v2}, Lcom/moji/tool/thread/MJPools;->a(Ljava/lang/Runnable;Lcom/moji/tool/thread/ThreadType;Lcom/moji/tool/thread/ThreadPriority;)I

    return-void
.end method

.method public onLanguageChange(Lcom/moji/bus/event/BusEventCommon$LanguageChangeEvent;)V
    .locals 0
    .annotation runtime Lorg/greenrobot/eventbus/Subscribe;
    .end annotation

    .line 336
    invoke-direct {p0}, Lcom/moji/mjweather/MainActivity;->a()V

    return-void
.end method

.method public onMonaClick(Lcom/moji/novice/MonaClickEvent;)V
    .locals 2
    .annotation runtime Lorg/greenrobot/eventbus/Subscribe;
        a = .enum Lorg/greenrobot/eventbus/ThreadMode;->MAIN:Lorg/greenrobot/eventbus/ThreadMode;
    .end annotation

    .line 1998
    new-instance p1, Lcom/moji/preferences/DefaultPrefer;

    invoke-direct {p1}, Lcom/moji/preferences/DefaultPrefer;-><init>()V

    const/16 v0, 0x8

    .line 1999
    invoke-virtual {p1, v0}, Lcom/moji/preferences/DefaultPrefer;->a(I)V

    const-string v0, "mona"

    .line 2000
    invoke-virtual {p1, v0}, Lcom/moji/preferences/DefaultPrefer;->a(Ljava/lang/String;)V

    .line 2001
    sget-object v0, Lcom/moji/preferences/DefaultPrefer$KeyConstant;->AVATAR_TYPE:Lcom/moji/preferences/DefaultPrefer$KeyConstant;

    const/4 v1, 0x0

    invoke-virtual {p1, v0, v1}, Lcom/moji/preferences/DefaultPrefer;->b(Lcom/moji/tool/preferences/core/IPreferKey;I)V

    .line 2003
    new-instance p1, Lcom/moji/mjweather/assshop/voice/modle/VoiceDataManager;

    invoke-direct {p1}, Lcom/moji/mjweather/assshop/voice/modle/VoiceDataManager;-><init>()V

    const/4 v0, 0x1

    invoke-virtual {p1, v0, v1}, Lcom/moji/mjweather/assshop/voice/modle/VoiceDataManager;->a(II)V

    .line 2005
    invoke-static {}, Lorg/greenrobot/eventbus/EventBus;->a()Lorg/greenrobot/eventbus/EventBus;

    move-result-object p1

    new-instance v0, Lcom/moji/mjweather/weather/event/ChangeAvatarEvent;

    invoke-direct {v0}, Lcom/moji/mjweather/weather/event/ChangeAvatarEvent;-><init>()V

    invoke-virtual {p1, v0}, Lorg/greenrobot/eventbus/EventBus;->d(Ljava/lang/Object;)V

    return-void
.end method

.method protected onNewIntent(Landroid/content/Intent;)V
    .locals 2

    .line 264
    invoke-super {p0, p1}, Lcom/moji/base/MJActivity;->onNewIntent(Landroid/content/Intent;)V

    .line 265
    invoke-direct {p0}, Lcom/moji/mjweather/MainActivity;->w()Z

    move-result v0

    iput-boolean v0, p0, Lcom/moji/mjweather/MainActivity;->k:Z

    .line 266
    iget-boolean v0, p0, Lcom/moji/mjweather/MainActivity;->k:Z

    if-eqz v0, :cond_0

    .line 267
    invoke-direct {p0, p1}, Lcom/moji/mjweather/MainActivity;->f(Landroid/content/Intent;)V

    .line 268
    invoke-direct {p0, p1}, Lcom/moji/mjweather/MainActivity;->a(Landroid/content/Intent;)V

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    .line 271
    iget-object v1, p0, Lcom/moji/mjweather/MainActivity;->c:Landroid/support/v4/app/FragmentManager;

    if-eqz v1, :cond_1

    .line 272
    iget-object v0, p0, Lcom/moji/mjweather/MainActivity;->c:Landroid/support/v4/app/FragmentManager;

    const-string v1, "screen_fragment"

    invoke-virtual {v0, v1}, Landroid/support/v4/app/FragmentManager;->findFragmentByTag(Ljava/lang/String;)Landroid/support/v4/app/Fragment;

    move-result-object v0

    :cond_1
    if-eqz v0, :cond_2

    .line 274
    invoke-virtual {v0}, Landroid/support/v4/app/Fragment;->isVisible()Z

    move-result v0

    if-eqz v0, :cond_2

    return-void

    :cond_2
    const/4 v0, 0x1

    .line 277
    iput-boolean v0, p0, Lcom/moji/mjweather/MainActivity;->n:Z

    .line 278
    iput-object p1, p0, Lcom/moji/mjweather/MainActivity;->p:Landroid/content/Intent;

    .line 279
    iget-boolean p1, p0, Lcom/moji/mjweather/MainActivity;->k:Z

    iget-boolean v0, p0, Lcom/moji/mjweather/MainActivity;->j:Z

    invoke-virtual {p0, p1, v0}, Lcom/moji/mjweather/MainActivity;->showTableScreenFragment(ZZ)V

    :goto_0
    return-void
.end method

.method public onOpenMemberSuccessEvent(Lcom/moji/account/data/event/OpenMemberSuccess;)V
    .locals 4
    .annotation runtime Lorg/greenrobot/eventbus/Subscribe;
        a = .enum Lorg/greenrobot/eventbus/ThreadMode;->MAIN:Lorg/greenrobot/eventbus/ThreadMode;
    .end annotation

    .line 1638
    new-instance p1, Lcom/moji/mjweather/me/AccountApi;

    invoke-direct {p1}, Lcom/moji/mjweather/me/AccountApi;-><init>()V

    const-string v0, ""

    new-instance v1, Lcom/moji/preferences/ProcessPrefer;

    invoke-direct {v1}, Lcom/moji/preferences/ProcessPrefer;-><init>()V

    invoke-virtual {v1}, Lcom/moji/preferences/ProcessPrefer;->i()Ljava/lang/String;

    move-result-object v1

    new-instance v2, Lcom/moji/mjweather/MainActivity$20;

    invoke-direct {v2, p0}, Lcom/moji/mjweather/MainActivity$20;-><init>(Lcom/moji/mjweather/MainActivity;)V

    const/4 v3, 0x1

    invoke-virtual {p1, v3, v0, v1, v2}, Lcom/moji/mjweather/me/AccountApi;->a(ILjava/lang/String;Ljava/lang/String;Lcom/moji/requestcore/MJHttpCallback;)V

    return-void
.end method

.method public onOpenMemberSuccessEvent(Lcom/moji/account/data/event/VipUserLoginEvent;)V
    .locals 2
    .annotation runtime Lorg/greenrobot/eventbus/Subscribe;
        a = .enum Lorg/greenrobot/eventbus/ThreadMode;->MAIN:Lorg/greenrobot/eventbus/ThreadMode;
    .end annotation

    const-string p1, "zdxvip"

    .line 2011
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "          onOpenMemberSuccessEvent  "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    new-instance v1, Lcom/moji/preferences/ProcessPrefer;

    invoke-direct {v1}, Lcom/moji/preferences/ProcessPrefer;-><init>()V

    invoke-virtual {v1}, Lcom/moji/preferences/ProcessPrefer;->g()Z

    move-result v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {p1, v0}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 2012
    iget-object p1, p0, Lcom/moji/mjweather/MainActivity;->c:Landroid/support/v4/app/FragmentManager;

    const-string v0, "main_fragment"

    invoke-virtual {p1, v0}, Landroid/support/v4/app/FragmentManager;->findFragmentByTag(Ljava/lang/String;)Landroid/support/v4/app/Fragment;

    move-result-object p1

    check-cast p1, Lcom/moji/mjweather/MainFragment;

    if-eqz p1, :cond_0

    .line 2014
    invoke-virtual {p1}, Lcom/moji/mjweather/MainFragment;->f()V

    :cond_0
    const/4 p1, 0x1

    .line 2016
    iput-boolean p1, p0, Lcom/moji/mjweather/MainActivity;->s:Z

    return-void
.end method

.method protected onPause()V
    .locals 2

    .line 1845
    invoke-super {p0}, Lcom/moji/base/MJActivity;->onPause()V

    const-wide/16 v0, -0x2

    .line 1846
    sput-wide v0, Lcom/moji/mjweather/MJApplication;->sStartTime:J

    .line 1847
    sput-wide v0, Lcom/moji/mjweather/MJApplication;->sStartTimeSplash:J

    .line 1848
    new-instance v0, Lcom/moji/mjad/AdSdk;

    invoke-direct {v0}, Lcom/moji/mjad/AdSdk;-><init>()V

    const/4 v1, 0x0

    invoke-virtual {v0, v1, p0}, Lcom/moji/mjad/AdSdk;->a(ZLandroid/content/Context;)V

    .line 1849
    invoke-static {}, Lfm/jiecao/jcvideoplayer_lib/JCVideoPlayer;->s()V

    return-void
.end method

.method protected onRestart()V
    .locals 2

    .line 351
    invoke-super {p0}, Lcom/moji/base/MJActivity;->onRestart()V

    .line 352
    invoke-direct {p0}, Lcom/moji/mjweather/MainActivity;->w()Z

    move-result v0

    iput-boolean v0, p0, Lcom/moji/mjweather/MainActivity;->k:Z

    .line 353
    iget-boolean v0, p0, Lcom/moji/mjweather/MainActivity;->k:Z

    if-eqz v0, :cond_0

    .line 354
    invoke-direct {p0}, Lcom/moji/mjweather/MainActivity;->b()V

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    .line 357
    iget-object v1, p0, Lcom/moji/mjweather/MainActivity;->c:Landroid/support/v4/app/FragmentManager;

    if-eqz v1, :cond_1

    .line 358
    iget-object v0, p0, Lcom/moji/mjweather/MainActivity;->c:Landroid/support/v4/app/FragmentManager;

    const-string v1, "screen_fragment"

    invoke-virtual {v0, v1}, Landroid/support/v4/app/FragmentManager;->findFragmentByTag(Ljava/lang/String;)Landroid/support/v4/app/Fragment;

    move-result-object v0

    :cond_1
    if-eqz v0, :cond_2

    .line 360
    invoke-virtual {v0}, Landroid/support/v4/app/Fragment;->isVisible()Z

    move-result v0

    if-eqz v0, :cond_2

    return-void

    :cond_2
    const/4 v0, 0x1

    .line 363
    iput-boolean v0, p0, Lcom/moji/mjweather/MainActivity;->o:Z

    .line 364
    iget-boolean v0, p0, Lcom/moji/mjweather/MainActivity;->k:Z

    iget-boolean v1, p0, Lcom/moji/mjweather/MainActivity;->j:Z

    invoke-virtual {p0, v0, v1}, Lcom/moji/mjweather/MainActivity;->showTableScreenFragment(ZZ)V

    :goto_0
    return-void
.end method

.method protected onResume()V
    .locals 3

    .line 584
    invoke-super {p0}, Lcom/moji/base/MJActivity;->onResume()V

    .line 585
    invoke-static {}, Lcom/moji/tool/MeizuTool;->b()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 586
    invoke-virtual {p0}, Lcom/moji/mjweather/MainActivity;->getWindow()Landroid/view/Window;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/Window;->getDecorView()Landroid/view/View;

    move-result-object v0

    invoke-static {v0}, Lcom/moji/tool/MeizuTool;->a(Landroid/view/View;)V

    .line 588
    :cond_0
    new-instance v0, Lcom/moji/mjad/AdSdk;

    invoke-direct {v0}, Lcom/moji/mjad/AdSdk;-><init>()V

    const/4 v1, 0x1

    invoke-virtual {v0, v1, p0}, Lcom/moji/mjad/AdSdk;->a(ZLandroid/content/Context;)V

    const/4 v0, 0x0

    .line 589
    invoke-direct {p0, v0}, Lcom/moji/mjweather/MainActivity;->d(Z)Z

    .line 591
    iget-boolean v1, p0, Lcom/moji/mjweather/MainActivity;->s:Z

    if-eqz v1, :cond_1

    .line 592
    iget-object v1, p0, Lcom/moji/mjweather/MainActivity;->c:Landroid/support/v4/app/FragmentManager;

    const-string v2, "main_fragment"

    invoke-virtual {v1, v2}, Landroid/support/v4/app/FragmentManager;->findFragmentByTag(Ljava/lang/String;)Landroid/support/v4/app/Fragment;

    move-result-object v1

    check-cast v1, Lcom/moji/mjweather/MainFragment;

    if-eqz v1, :cond_1

    .line 594
    invoke-virtual {v1}, Lcom/moji/mjweather/MainFragment;->f()V

    .line 597
    :cond_1
    iput-boolean v0, p0, Lcom/moji/mjweather/MainActivity;->s:Z

    .line 599
    iget-boolean v1, p0, Lcom/moji/mjweather/MainActivity;->v:Z

    if-eqz v1, :cond_2

    .line 600
    iput-boolean v0, p0, Lcom/moji/mjweather/MainActivity;->v:Z

    goto :goto_0

    :cond_2
    const-string v0, "zdxnative"

    const-string v1, "  -------que checkAndChangeAdCardVideoState post event bus   "

    .line 602
    invoke-static {v0, v1}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 603
    invoke-static {}, Lorg/greenrobot/eventbus/EventBus;->a()Lorg/greenrobot/eventbus/EventBus;

    move-result-object v0

    new-instance v1, Lcom/moji/mjweather/assshop/event/AvatarAdCardResumeEvent;

    invoke-direct {v1}, Lcom/moji/mjweather/assshop/event/AvatarAdCardResumeEvent;-><init>()V

    invoke-virtual {v0, v1}, Lorg/greenrobot/eventbus/EventBus;->d(Ljava/lang/Object;)V

    :goto_0
    return-void
.end method

.method protected onSaveInstanceState(Landroid/os/Bundle;)V
    .locals 1

    const-string p1, "MainActivity"

    const-string v0, "onSaveInstanceState"

    .line 1992
    invoke-static {p1, v0}, Lcom/moji/tool/log/MJLogger;->b(Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method protected onStart()V
    .locals 3

    .line 246
    invoke-super {p0}, Lcom/moji/base/MJActivity;->onStart()V

    const-string v0, "MainActivity"

    const-string v1, "onStart"

    .line 247
    invoke-static {v0, v1}, Lcom/moji/tool/log/MJLogger;->c(Ljava/lang/String;Ljava/lang/String;)V

    const/4 v0, 0x0

    .line 248
    iput-boolean v0, p0, Lcom/moji/mjweather/MainActivity;->y:Z

    .line 249
    iget-object v0, p0, Lcom/moji/mjweather/MainActivity;->z:Landroid/support/v4/app/FragmentTransaction;

    if-eqz v0, :cond_0

    const-string v0, "MainActivity"

    const-string v1, "onStartExecutePendingTransaction"

    .line 250
    invoke-static {v0, v1}, Lcom/moji/tool/log/MJLogger;->c(Ljava/lang/String;Ljava/lang/String;)V

    const/4 v0, 0x0

    .line 252
    :try_start_0
    iget-object v1, p0, Lcom/moji/mjweather/MainActivity;->z:Landroid/support/v4/app/FragmentTransaction;

    invoke-virtual {v1}, Landroid/support/v4/app/FragmentTransaction;->commitNow()V

    .line 253
    iget-object v1, p0, Lcom/moji/mjweather/MainActivity;->c:Landroid/support/v4/app/FragmentManager;

    invoke-virtual {v1}, Landroid/support/v4/app/FragmentManager;->executePendingTransactions()Z
    :try_end_0
    .catch Ljava/lang/IllegalStateException; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception v1

    goto :goto_1

    :catch_0
    move-exception v1

    :try_start_1
    const-string v2, "MainActivity"

    .line 255
    invoke-static {v2, v1}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 257
    :goto_0
    iput-object v0, p0, Lcom/moji/mjweather/MainActivity;->z:Landroid/support/v4/app/FragmentTransaction;

    goto :goto_2

    :goto_1
    iput-object v0, p0, Lcom/moji/mjweather/MainActivity;->z:Landroid/support/v4/app/FragmentTransaction;

    .line 258
    throw v1

    :cond_0
    :goto_2
    return-void
.end method

.method protected onStop()V
    .locals 1

    const/4 v0, 0x1

    .line 646
    iput-boolean v0, p0, Lcom/moji/mjweather/MainActivity;->y:Z

    .line 647
    invoke-super {p0}, Lcom/moji/base/MJActivity;->onStop()V

    .line 648
    invoke-static {}, Lcom/moji/mjweather/weather/window/AvatarWindowManager;->a()Lcom/moji/mjweather/weather/window/AvatarWindowManager;

    move-result-object v0

    invoke-virtual {v0}, Lcom/moji/mjweather/weather/window/AvatarWindowManager;->b()V

    return-void
.end method

.method public onWindowFocusChanged(Z)V
    .locals 16

    move-object/from16 v1, p0

    .line 1326
    invoke-super/range {p0 .. p1}, Lcom/moji/base/MJActivity;->onWindowFocusChanged(Z)V

    .line 1327
    invoke-static {}, Lcom/moji/tool/DeviceTool;->W()Z

    move-result v0

    if-nez v0, :cond_0

    .line 1329
    :try_start_0
    invoke-virtual/range {p0 .. p0}, Lcom/moji/mjweather/MainActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/moji/webview/bridge/BridgeWebView;->a(Landroid/content/Context;)V
    :try_end_0
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    const-string v2, "MainActivity"

    .line 1331
    invoke-static {v2, v0}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V

    .line 1334
    :cond_0
    :goto_0
    sget-wide v2, Lcom/moji/mjweather/MJApplication;->sStartTime:J

    const-wide/16 v4, -0x2

    cmp-long v0, v2, v4

    if-eqz v0, :cond_3

    .line 1335
    sget-wide v2, Lcom/moji/mjweather/MJApplication;->sStartTime:J

    const-wide/16 v6, -0x1

    const/4 v0, 0x1

    const/4 v8, 0x0

    const/4 v9, 0x2

    cmp-long v10, v2, v6

    if-eqz v10, :cond_2

    sget-wide v2, Lcom/moji/mjweather/MainActivity;->sOnCreateTime:J

    const-wide/16 v6, 0x0

    cmp-long v10, v2, v6

    if-nez v10, :cond_1

    goto :goto_1

    .line 1338
    :cond_1
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    sget-wide v6, Lcom/moji/mjweather/MainActivity;->sOnCreateTime:J

    sub-long/2addr v2, v6

    sget-wide v6, Lcom/moji/mjweather/MJApplication;->sStartTime:J

    add-long/2addr v2, v6

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

    move-result-object v10

    sget-object v11, Lcom/moji/statistics/EVENT_TAG;->APPLICATION_START_TIME:Lcom/moji/statistics/EVENT_TAG;

    const-string v12, ""

    new-array v6, v9, [Ljava/lang/Object;

    sget-object v7, Landroid/os/Build;->MODEL:Ljava/lang/String;

    aput-object v7, v6, v8

    iget-object v7, v1, Lcom/moji/mjweather/MainActivity;->w:Ljava/lang/String;

    aput-object v7, v6, v0

    invoke-static {v6}, Lcom/moji/statistics/EventParams;->getProperty([Ljava/lang/Object;)Lorg/json/JSONObject;

    move-result-object v15

    move-wide v13, v2

    invoke-virtual/range {v10 .. v15}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;JLorg/json/JSONObject;)Lcom/moji/statistics/EventManager;

    const-string v0, "MainActivity"

    .line 1340
    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    const-string v7, "onWindowFocusChanged: start time is "

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string v2, ", process start time is "

    invoke-virtual {v6, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    sget-wide v2, Lcom/moji/mjweather/MJApplication;->sStartTime:J

    invoke-virtual {v6, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v0, v2}, Lcom/moji/tool/log/MJLogger;->b(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_2

    .line 1336
    :cond_2
    :goto_1
    invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;

    move-result-object v6

    sget-object v7, Lcom/moji/statistics/EVENT_TAG;->APPLICATION_START_TIME:Lcom/moji/statistics/EVENT_TAG;

    const-string v2, ""

    const-wide/16 v10, -0x1

    new-array v3, v9, [Ljava/lang/Object;

    sget-object v9, Landroid/os/Build;->MODEL:Ljava/lang/String;

    aput-object v9, v3, v8

    iget-object v8, v1, Lcom/moji/mjweather/MainActivity;->w:Ljava/lang/String;

    aput-object v8, v3, v0

    invoke-static {v3}, Lcom/moji/statistics/EventParams;->getProperty([Ljava/lang/Object;)Lorg/json/JSONObject;

    move-result-object v0

    move-object v8, v2

    move-wide v9, v10

    move-object v11, v0

    invoke-virtual/range {v6 .. v11}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;JLorg/json/JSONObject;)Lcom/moji/statistics/EventManager;

    .line 1342
    :goto_2
    sput-wide v4, Lcom/moji/mjweather/MJApplication;->sStartTime:J

    :cond_3
    if-eqz p1, :cond_4

    .line 1345
    iget-object v0, v1, Lcom/moji/mjweather/MainActivity;->c:Landroid/support/v4/app/FragmentManager;

    const v2, 0x7f090271

    invoke-virtual {v0, v2}, Landroid/support/v4/app/FragmentManager;->findFragmentById(I)Landroid/support/v4/app/Fragment;

    move-result-object v0

    .line 1346
    instance-of v0, v0, Lcom/moji/mjweather/TableScreenFragment;

    if-nez v0, :cond_4

    .line 1347
    invoke-direct/range {p0 .. p0}, Lcom/moji/mjweather/MainActivity;->k()V

    :cond_4
    return-void
.end method

.method public processPermission(Lcom/moji/mjweather/PermissionChangeEvent;)V
    .locals 7
    .annotation runtime Lorg/greenrobot/eventbus/Subscribe;
        a = .enum Lorg/greenrobot/eventbus/ThreadMode;->MAIN:Lorg/greenrobot/eventbus/ThreadMode;
    .end annotation

    const/4 v0, 0x0

    .line 1074
    :try_start_0
    iget-boolean v1, p1, Lcom/moji/mjweather/PermissionChangeEvent;->a:Z

    const/4 v2, 0x1

    if-eqz v1, :cond_8

    .line 1075
    invoke-virtual {p0}, Lcom/moji/mjweather/MainActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object p1

    sget-object v1, Lcom/moji/mjweather/TableScreenFragment;->c:[Ljava/lang/String;

    invoke-static {p1, v1}, Lcom/moji/tool/permission/EasyPermissions;->a(Landroid/content/Context;[Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_0

    .line 1076
    new-instance p1, Lcom/moji/mjad/Commerce;

    invoke-direct {p1}, Lcom/moji/mjad/Commerce;-><init>()V

    invoke-virtual {p0}, Lcom/moji/mjweather/MainActivity;->getApplication()Landroid/app/Application;

    move-result-object v1

    invoke-virtual {p1, v1}, Lcom/moji/mjad/Commerce;->b(Landroid/content/Context;)V

    .line 1079
    :cond_0
    invoke-direct {p0}, Lcom/moji/mjweather/MainActivity;->E()V

    .line 1080
    invoke-direct {p0}, Lcom/moji/mjweather/MainActivity;->j()V

    .line 1082
    invoke-static {}, Lcom/moji/mjweather/weather/avatar/AvatarImageUtil;->f()V

    .line 1083
    iget-boolean p1, p0, Lcom/moji/mjweather/MainActivity;->n:Z

    if-eqz p1, :cond_1

    iget-object p1, p0, Lcom/moji/mjweather/MainActivity;->p:Landroid/content/Intent;

    if-eqz p1, :cond_1

    .line 1084
    iget-object p1, p0, Lcom/moji/mjweather/MainActivity;->p:Landroid/content/Intent;

    invoke-direct {p0, p1}, Lcom/moji/mjweather/MainActivity;->a(Landroid/content/Intent;)V

    goto/16 :goto_2

    .line 1085
    :cond_1
    iget-boolean p1, p0, Lcom/moji/mjweather/MainActivity;->o:Z

    if-eqz p1, :cond_2

    .line 1086
    invoke-direct {p0}, Lcom/moji/mjweather/MainActivity;->b()V

    goto/16 :goto_2

    .line 1087
    :cond_2
    iget-boolean p1, p0, Lcom/moji/mjweather/MainActivity;->j:Z

    if-eqz p1, :cond_3

    iget-object p1, p0, Lcom/moji/mjweather/MainActivity;->l:Ljava/util/List;

    invoke-interface {p1}, Ljava/util/List;->isEmpty()Z

    move-result p1

    if-eqz p1, :cond_3

    .line 1090
    invoke-static {}, Lcom/mojiweather/area/CityManager;->f()Lcom/mojiweather/area/CityManager;

    move-result-object p1

    invoke-virtual {p1}, Lcom/mojiweather/area/CityManager;->c()V

    .line 1091
    invoke-static {}, Lcom/moji/weatherprovider/SilentCityManager;->a()Lcom/moji/weatherprovider/SilentCityManager;

    move-result-object p1

    invoke-virtual {p1}, Lcom/moji/weatherprovider/SilentCityManager;->b()V

    .line 1093
    invoke-static {}, Lcom/moji/novice/tutorial/NoviceTutorialManager;->a()Lcom/moji/novice/tutorial/NoviceTutorialManager;

    move-result-object p1

    const/16 v1, 0x70

    invoke-virtual {p1, p0, v1, v2}, Lcom/moji/novice/tutorial/NoviceTutorialManager;->a(Landroid/app/Activity;IZ)V

    .line 1094
    invoke-direct {p0, v0, v0}, Lcom/moji/mjweather/MainActivity;->a(ZZ)V

    goto/16 :goto_2

    .line 1096
    :cond_3
    iget-object p1, p0, Lcom/moji/mjweather/MainActivity;->l:Ljava/util/List;

    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result p1

    if-nez p1, :cond_5

    .line 1097
    invoke-static {}, Lcom/mojiweather/area/AreaManagePrefer;->c()Lcom/mojiweather/area/AreaManagePrefer;

    move-result-object p1

    invoke-virtual {p1}, Lcom/mojiweather/area/AreaManagePrefer;->e()I

    move-result p1

    if-nez p1, :cond_4

    .line 1098
    invoke-direct {p0}, Lcom/moji/mjweather/MainActivity;->u()V

    goto :goto_0

    .line 1100
    :cond_4
    invoke-direct {p0}, Lcom/moji/mjweather/MainActivity;->t()V

    goto :goto_0

    .line 1102
    :cond_5
    iget-boolean p1, p0, Lcom/moji/mjweather/MainActivity;->k:Z

    if-nez p1, :cond_6

    .line 1103
    invoke-direct {p0, v0}, Lcom/moji/mjweather/MainActivity;->a(Z)V

    goto :goto_0

    .line 1104
    :cond_6
    invoke-direct {p0}, Lcom/moji/mjweather/MainActivity;->p()Z

    move-result p1

    if-nez p1, :cond_7

    .line 1105
    invoke-direct {p0}, Lcom/moji/mjweather/MainActivity;->m()V

    .line 1109
    :cond_7
    :goto_0
    invoke-virtual {p0}, Lcom/moji/mjweather/MainActivity;->getIntent()Landroid/content/Intent;

    move-result-object p1

    invoke-direct {p0, p1}, Lcom/moji/mjweather/MainActivity;->e(Landroid/content/Intent;)V

    .line 1110
    invoke-direct {p0, v2, v0}, Lcom/moji/mjweather/MainActivity;->a(ZZ)V

    goto/16 :goto_2

    .line 1113
    :cond_8
    invoke-virtual {p0}, Lcom/moji/mjweather/MainActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v3, 0x7f0e034b

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

    move-result-object v1

    const-string v3, ""

    .line 1115
    iget-object v4, p1, Lcom/moji/mjweather/PermissionChangeEvent;->b:Lcom/moji/mjweather/TableScreenFragment$PermissionEntity;

    iget-boolean v4, v4, Lcom/moji/mjweather/TableScreenFragment$PermissionEntity;->b:Z

    if-nez v4, :cond_9

    .line 1116
    invoke-virtual {p0}, Lcom/moji/mjweather/MainActivity;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    const v1, 0x7f0e034f

    invoke-virtual {p1, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v1

    .line 1117
    invoke-virtual {p0}, Lcom/moji/mjweather/MainActivity;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    const v3, 0x7f0e0350

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

    move-result-object v3

    goto :goto_1

    .line 1118
    :cond_9
    iget-object v4, p1, Lcom/moji/mjweather/PermissionChangeEvent;->b:Lcom/moji/mjweather/TableScreenFragment$PermissionEntity;

    iget-boolean v4, v4, Lcom/moji/mjweather/TableScreenFragment$PermissionEntity;->c:Z

    if-nez v4, :cond_a

    .line 1119
    invoke-virtual {p0}, Lcom/moji/mjweather/MainActivity;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    const v1, 0x7f0e034c

    invoke-virtual {p1, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v1

    .line 1120
    invoke-virtual {p0}, Lcom/moji/mjweather/MainActivity;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    const v3, 0x7f0e034d

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

    move-result-object v3

    goto :goto_1

    .line 1121
    :cond_a
    iget-object p1, p1, Lcom/moji/mjweather/PermissionChangeEvent;->b:Lcom/moji/mjweather/TableScreenFragment$PermissionEntity;

    iget-boolean p1, p1, Lcom/moji/mjweather/TableScreenFragment$PermissionEntity;->a:Z

    if-nez p1, :cond_b

    .line 1122
    invoke-virtual {p0}, Lcom/moji/mjweather/MainActivity;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    const v1, 0x7f0e0349

    invoke-virtual {p1, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v1

    .line 1123
    invoke-virtual {p0}, Lcom/moji/mjweather/MainActivity;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    const v3, 0x7f0e034a

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

    move-result-object v3

    .line 1126
    :cond_b
    :goto_1
    invoke-virtual {p0}, Lcom/moji/mjweather/MainActivity;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    const v4, 0x7f0e0352

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

    move-result-object p1

    const/4 v4, 0x2

    new-array v4, v4, [Ljava/lang/Object;

    aput-object v1, v4, v0

    aput-object v3, v4, v2

    invoke-static {p1, v4}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p1

    .line 1128
    invoke-static {p0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v1

    const v2, 0x7f0b0270

    const/4 v3, 0x0

    .line 1129
    invoke-virtual {v1, v2, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    const v2, 0x7f09069f

    .line 1130
    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    const v3, 0x7f09069e

    .line 1131
    invoke-virtual {v1, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    const v4, 0x7f09069c

    .line 1132
    invoke-virtual {v1, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/TextView;

    const v5, 0x7f09069b

    .line 1133
    invoke-virtual {v1, v5}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/TextView;

    const v6, 0x7f0e0347

    .line 1134
    invoke-virtual {v2, v6}, Landroid/widget/TextView;->setText(I)V

    .line 1135
    invoke-virtual {v3, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const p1, 0x7f0e0627

    .line 1136
    invoke-virtual {v4, p1}, Landroid/widget/TextView;->setText(I)V

    const p1, 0x7f0e0626

    .line 1137
    invoke-virtual {v5, p1}, Landroid/widget/TextView;->setText(I)V

    .line 1138
    new-instance p1, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;

    invoke-direct {p1, p0}, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;-><init>(Landroid/content/Context;)V

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

    move-result-object p1

    .line 1139
    invoke-virtual {p1, v1}, Lcom/moji/dialog/MJDialog;->setContentView(Landroid/view/View;)V

    .line 1140
    invoke-virtual {p1, v0}, Lcom/moji/dialog/MJDialog;->setCancelable(Z)V

    .line 1141
    invoke-virtual {p1, v0}, Lcom/moji/dialog/MJDialog;->setCanceledOnTouchOutside(Z)V

    .line 1142
    new-instance v1, Lcom/moji/mjweather/MainActivity$12;

    invoke-direct {v1, p0, p1}, Lcom/moji/mjweather/MainActivity$12;-><init>(Lcom/moji/mjweather/MainActivity;Lcom/moji/dialog/MJDialog;)V

    invoke-virtual {v4, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 1151
    new-instance v1, Lcom/moji/mjweather/MainActivity$13;

    invoke-direct {v1, p0, p1}, Lcom/moji/mjweather/MainActivity$13;-><init>(Lcom/moji/mjweather/MainActivity;Lcom/moji/dialog/MJDialog;)V

    invoke-virtual {v5, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const-wide/16 v1, 0x64

    .line 1158
    invoke-static {v1, v2}, Landroid/os/SystemClock;->sleep(J)V

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

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

    move-result-object p1

    sget-object v1, Lcom/moji/statistics/EVENT_TAG;->SETTING_SHOWS:Lcom/moji/statistics/EVENT_TAG;

    invoke-virtual {p1, v1}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;)Lcom/moji/statistics/EventManager;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_2

    :catch_0
    move-exception p1

    const-string v1, "MainActivity"

    .line 1163
    invoke-static {v1, p1}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V

    .line 1166
    :goto_2
    invoke-static {}, Lcom/moji/novice/tutorial/NoviceTutorialManager;->a()Lcom/moji/novice/tutorial/NoviceTutorialManager;

    move-result-object p1

    invoke-virtual {p1}, Lcom/moji/novice/tutorial/NoviceTutorialManager;->b()Z

    move-result p1

    if-eqz p1, :cond_d

    .line 1167
    iget-object p1, p0, Lcom/moji/mjweather/MainActivity;->l:Ljava/util/List;

    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result p1

    if-eqz p1, :cond_c

    .line 1168
    iput-boolean v0, p0, Lcom/moji/mjweather/MainActivity;->q:Z

    .line 1170
    :cond_c
    invoke-static {}, Lcom/moji/novice/tutorial/NoviceTutorialManager;->a()Lcom/moji/novice/tutorial/NoviceTutorialManager;

    move-result-object p1

    const/16 v1, 0x72

    invoke-virtual {p1, p0, v1, v0}, Lcom/moji/novice/tutorial/NoviceTutorialManager;->a(Landroid/app/Activity;IZ)V

    .line 1172
    invoke-direct {p0}, Lcom/moji/mjweather/MainActivity;->s()V

    goto :goto_3

    .line 1174
    :cond_d
    iget-object p1, p0, Lcom/moji/mjweather/MainActivity;->l:Ljava/util/List;

    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result p1

    if-nez p1, :cond_e

    const/16 p1, 0x7d0

    .line 1175
    invoke-direct {p0, p1}, Lcom/moji/mjweather/MainActivity;->c(I)V

    goto :goto_3

    .line 1177
    :cond_e
    invoke-direct {p0}, Lcom/moji/mjweather/MainActivity;->s()V

    .line 1181
    :goto_3
    invoke-direct {p0}, Lcom/moji/mjweather/MainActivity;->F()V

    return-void
.end method

.method public requestMainVipEvent(Lcom/moji/common/area/AreaInfo;)V
    .locals 4

    if-nez p1, :cond_0

    const/4 v0, -0x1

    goto :goto_0

    .line 1613
    :cond_0
    iget v0, p1, Lcom/moji/common/area/AreaInfo;->cityId:I

    .line 1614
    :goto_0
    invoke-static {}, Lcom/moji/opevent/OperationEventManager;->a()Lcom/moji/opevent/OperationEventManager;

    move-result-object v1

    sget-object v2, Lcom/moji/opevent/model/OperationEventPage;->P_WEATHER_MAIN:Lcom/moji/opevent/model/OperationEventPage;

    invoke-virtual {v2}, Lcom/moji/opevent/model/OperationEventPage;->getPageStr()Ljava/lang/String;

    move-result-object v2

    new-instance v3, Lcom/moji/mjweather/MainActivity$19;

    invoke-direct {v3, p0, v0}, Lcom/moji/mjweather/MainActivity$19;-><init>(Lcom/moji/mjweather/MainActivity;I)V

    invoke-virtual {v1, p1, v2, v3}, Lcom/moji/opevent/OperationEventManager;->a(Lcom/moji/common/area/AreaInfo;Ljava/lang/String;Lcom/moji/opevent/OperationEventUpdateListener;)V

    return-void
.end method

.method public setCanStatic(Z)V
    .locals 0

    .line 241
    iput-boolean p1, p0, Lcom/moji/mjweather/MainActivity;->h:Z

    return-void
.end method

.method public setPressedBG(Z)V
    .locals 0

    .line 1212
    iput-boolean p1, p0, Lcom/moji/mjweather/MainActivity;->G:Z

    return-void
.end method

.method public setSplashType(Ljava/lang/String;)V
    .locals 0

    .line 1363
    iput-object p1, p0, Lcom/moji/mjweather/MainActivity;->w:Ljava/lang/String;

    return-void
.end method

.method public setWeatherTab()V
    .locals 3

    .line 783
    iget-object v0, p0, Lcom/moji/mjweather/MainActivity;->c:Landroid/support/v4/app/FragmentManager;

    if-eqz v0, :cond_0

    .line 784
    iget-object v0, p0, Lcom/moji/mjweather/MainActivity;->c:Landroid/support/v4/app/FragmentManager;

    const-string v1, "main_fragment"

    invoke-virtual {v0, v1}, Landroid/support/v4/app/FragmentManager;->findFragmentByTag(Ljava/lang/String;)Landroid/support/v4/app/Fragment;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 785
    instance-of v1, v0, Lcom/moji/mjweather/MainFragment;

    if-eqz v1, :cond_0

    .line 786
    check-cast v0, Lcom/moji/mjweather/MainFragment;

    invoke-virtual {v0}, Lcom/moji/mjweather/MainFragment;->a()Lcom/moji/mjweather/TAB_TYPE;

    move-result-object v1

    .line 787
    sget-object v2, Lcom/moji/mjweather/TAB_TYPE;->WEATHER_TAB:Lcom/moji/mjweather/TAB_TYPE;

    if-eq v1, v2, :cond_0

    .line 788
    invoke-virtual {v0}, Lcom/moji/mjweather/MainFragment;->d()V

    :cond_0
    return-void
.end method

.method public showRetryGuide(Lcom/moji/weatherprovider/event/CITY_STATE;)V
    .locals 6

    .line 625
    new-instance v0, Lcom/moji/novice/preference/UserGuidePrefence;

    invoke-direct {v0}, Lcom/moji/novice/preference/UserGuidePrefence;-><init>()V

    .line 626
    invoke-virtual {v0}, Lcom/moji/novice/preference/UserGuidePrefence;->t()I

    move-result v1

    .line 627
    iget-object v2, p0, Lcom/moji/mjweather/MainActivity;->c:Landroid/support/v4/app/FragmentManager;

    if-eqz v2, :cond_3

    .line 628
    iget-object v2, p0, Lcom/moji/mjweather/MainActivity;->c:Landroid/support/v4/app/FragmentManager;

    const-string v3, "main_fragment"

    invoke-virtual {v2, v3}, Landroid/support/v4/app/FragmentManager;->findFragmentByTag(Ljava/lang/String;)Landroid/support/v4/app/Fragment;

    move-result-object v2

    check-cast v2, Lcom/moji/mjweather/MainFragment;

    if-eqz v2, :cond_3

    .line 629
    invoke-virtual {v2}, Lcom/moji/mjweather/MainFragment;->a()Lcom/moji/mjweather/TAB_TYPE;

    move-result-object v3

    sget-object v4, Lcom/moji/mjweather/TAB_TYPE;->WEATHER_TAB:Lcom/moji/mjweather/TAB_TYPE;

    if-ne v3, v4, :cond_3

    const-string v3, "MainActivity"

    .line 630
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    const-string v5, "showRetryGuide "

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string v5, ", "

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v3, v4}, Lcom/moji/tool/log/MJLogger;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 631
    sget-object v3, Lcom/moji/weatherprovider/event/CITY_STATE;->NORMAL:Lcom/moji/weatherprovider/event/CITY_STATE;

    const/4 v4, 0x1

    if-eq p1, v3, :cond_1

    sget-object v3, Lcom/moji/weatherprovider/event/CITY_STATE;->UPDATE:Lcom/moji/weatherprovider/event/CITY_STATE;

    if-eq p1, v3, :cond_1

    sget-object v3, Lcom/moji/weatherprovider/event/CITY_STATE;->RETRY:Lcom/moji/weatherprovider/event/CITY_STATE;

    if-eq p1, v3, :cond_1

    sget-object v3, Lcom/moji/weatherprovider/event/CITY_STATE;->SUCCESS:Lcom/moji/weatherprovider/event/CITY_STATE;

    if-ne p1, v3, :cond_0

    goto :goto_0

    :cond_0
    const/4 v3, 0x0

    goto :goto_1

    :cond_1
    :goto_0
    const/4 v3, 0x1

    :goto_1
    const/4 v5, 0x2

    if-ge v1, v5, :cond_2

    if-nez v3, :cond_2

    const v3, 0x7f09059e

    .line 633
    invoke-virtual {p0, v3}, Lcom/moji/mjweather/MainActivity;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    if-nez v3, :cond_2

    add-int/2addr v1, v4

    .line 635
    invoke-virtual {v0, v1}, Lcom/moji/novice/preference/UserGuidePrefence;->b(I)V

    .line 636
    invoke-static {p0}, Lcom/moji/novice/guide/GuideShowManager;->b(Landroid/app/Activity;)V

    .line 639
    :cond_2
    invoke-virtual {v2, p1}, Lcom/moji/mjweather/MainFragment;->a(Lcom/moji/weatherprovider/event/CITY_STATE;)V

    :cond_3
    return-void
.end method

.method public showTableScreenFragment(ZZ)V
    .locals 3

    .line 1059
    iget-object v0, p0, Lcom/moji/mjweather/MainActivity;->c:Landroid/support/v4/app/FragmentManager;

    invoke-virtual {v0}, Landroid/support/v4/app/FragmentManager;->beginTransaction()Landroid/support/v4/app/FragmentTransaction;

    move-result-object v0

    .line 1060
    new-instance v1, Lcom/moji/mjweather/TableScreenFragment;

    invoke-direct {v1}, Lcom/moji/mjweather/TableScreenFragment;-><init>()V

    iput-object v1, p0, Lcom/moji/mjweather/MainActivity;->i:Lcom/moji/mjweather/TableScreenFragment;

    .line 1061
    invoke-direct {p0}, Lcom/moji/mjweather/MainActivity;->B()V

    .line 1062
    new-instance v1, Landroid/os/Bundle;

    const/4 v2, 0x3

    invoke-direct {v1, v2}, Landroid/os/Bundle;-><init>(I)V

    const-string v2, "is_first_run"

    .line 1063
    invoke-virtual {v1, v2, p2}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V

    const-string p2, "haveAllPermission"

    .line 1064
    invoke-virtual {v1, p2, p1}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V

    .line 1065
    iget-object p1, p0, Lcom/moji/mjweather/MainActivity;->i:Lcom/moji/mjweather/TableScreenFragment;

    invoke-virtual {p1, v1}, Lcom/moji/mjweather/TableScreenFragment;->setArguments(Landroid/os/Bundle;)V

    .line 1067
    iget-object p1, p0, Lcom/moji/mjweather/MainActivity;->i:Lcom/moji/mjweather/TableScreenFragment;

    const-string p2, "screen_fragment"

    const v1, 0x7f090271

    invoke-virtual {v0, v1, p1, p2}, Landroid/support/v4/app/FragmentTransaction;->add(ILandroid/support/v4/app/Fragment;Ljava/lang/String;)Landroid/support/v4/app/FragmentTransaction;

    .line 1068
    invoke-virtual {v0}, Landroid/support/v4/app/FragmentTransaction;->commitNowAllowingStateLoss()V

    return-void
.end method
