NewMainFragment$d.smali

.class Lcom/keniu/security/newmain/NewMainFragment$d;
.super Lcom/keniu/security/b/a;
.source "NewMainFragment.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/keniu/security/newmain/NewMainFragment;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "d"
.end annotation


# instance fields
.field final synthetic a:Lcom/keniu/security/newmain/NewMainFragment;


# direct methods
.method public constructor <init>(Lcom/keniu/security/newmain/NewMainFragment;)V
    .registers 2

    .prologue
    .line 1833
    iput-object p1, p0, Lcom/keniu/security/newmain/NewMainFragment$d;->a:Lcom/keniu/security/newmain/NewMainFragment;

    .line 1834
    invoke-direct {p0}, Lcom/keniu/security/b/a;-><init>()V

    .line 1835
    return-void
.end method


# virtual methods
.method public run()V
    .registers 5

    .prologue
    const/4 v3, 0x0

    const/4 v2, 0x1

    .line 1841
    iget-object v0, p0, Lcom/keniu/security/newmain/NewMainFragment$d;->a:Lcom/keniu/security/newmain/NewMainFragment;

    invoke-virtual {v0}, Lcom/keniu/security/newmain/NewMainFragment;->getActivityContext()Landroid/app/Activity;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    .line 1842
    iget-object v1, p0, Lcom/keniu/security/newmain/NewMainFragment$d;->a:Lcom/keniu/security/newmain/NewMainFragment;

    invoke-static {v1, v0}, Lcom/keniu/security/newmain/NewMainFragment;->a(Lcom/keniu/security/newmain/NewMainFragment;Landroid/content/Intent;)V

    .line 1843
    iget-object v1, p0, Lcom/keniu/security/newmain/NewMainFragment$d;->a:Lcom/keniu/security/newmain/NewMainFragment;

    invoke-static {v1, v0}, Lcom/keniu/security/newmain/NewMainFragment;->b(Lcom/keniu/security/newmain/NewMainFragment;Landroid/content/Intent;)V

    .line 1846
    invoke-static {}, Lcom/cleanmaster/hpsharelib/func/cache/LabelNameUtil;->getInstance()Lcom/cleanmaster/hpsharelib/func/cache/LabelNameUtil;

    move-result-object v0

    invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/func/cache/LabelNameUtil;->init()V

    .line 1849
    invoke-static {}, Lcom/keniu/security/l;->d()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/cleanmaster/service/PermanentService;->a(Landroid/content/Context;)V

    .line 1852
    invoke-static {}, Lcom/keniu/security/l;->d()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0, v2}, Lcom/cleanmaster/base/a;->a(Landroid/content/Context;I)V

    .line 1854
    invoke-static {}, Lcom/keniu/security/l;->d()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getInstanse(Landroid/content/Context;)Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;

    move-result-object v0

    .line 1855
    invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getAllowFixShortcutAtServiceStart()Z

    move-result v0

    if-nez v0, :cond_9c

    .line 1856
    invoke-static {}, Lcom/cleanmaster/hpsharelib/base/util/system/LauncherUtil;->getInst()Lcom/cleanmaster/hpsharelib/base/util/system/LauncherUtil;

    move-result-object v0

    .line 1857
    invoke-virtual {v0, v3}, Lcom/cleanmaster/hpsharelib/base/util/system/LauncherUtil;->getCurrentLauncherName(Z)Ljava/lang/String;

    move-result-object v1

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

    move-result v0

    if-nez v0, :cond_91

    .line 1861
    invoke-static {}, Lcom/cleanmaster/hpsharelib/market/transport/LocalStorage;->isFirstLaunch()Z

    move-result v0

    if-eqz v0, :cond_91

    .line 1862
    invoke-static {}, Lcom/cleanmaster/hpsharelib/base/util/system/LauncherUtil;->getInst()Lcom/cleanmaster/hpsharelib/base/util/system/LauncherUtil;

    move-result-object v0

    invoke-virtual {v0, v1}, Lcom/cleanmaster/hpsharelib/base/util/system/LauncherUtil;->isFirstStartOnLauncher(Ljava/lang/String;)I

    move-result v0

    if-ne v0, v2, :cond_91

    .line 1865
    :try_start_57
    invoke-static {}, Lcom/cleanmaster/hpsharelib/oeam/OEMConfig;->isSupportOneTap()Z

    move-result v0

    if-eqz v0, :cond_7b

    .line 1866
    const v0, 0x22c073

    const/4 v2, 0x0

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

    invoke-static {v0, v2}, Lcom/cm/plugincluster/spec/CommanderManager;->invokeCommandExpNull(I[Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/cm/plugincluster/common/IBoostModule;

    .line 1867
    if-eqz v0, :cond_6f

    const/4 v2, 0x1

    invoke-interface {v0, v2}, Lcom/cm/plugincluster/common/IBoostModule;->createShortcut(Z)Z

    .line 1868
    :cond_6f
    invoke-static {}, Lcom/keniu/security/l;->d()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getInstanse(Landroid/content/Context;)Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;

    move-result-object v0

    const/4 v2, 0x1

    invoke-virtual {v0, v2}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->setOnetapCreateOnMain(Z)V

    .line 1871
    :cond_7b
    invoke-static {}, Lcom/cleanmaster/hpsharelib/base/util/system/LauncherUtil;->getInst()Lcom/cleanmaster/hpsharelib/base/util/system/LauncherUtil;

    move-result-object v0

    invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/base/util/system/LauncherUtil;->haveStartedOnThisLauncher()V

    .line 1872
    invoke-static {}, Lcom/cleanmaster/hpsharelib/market/transport/LocalStorage;->getInstance()Lcom/cleanmaster/hpsharelib/market/transport/LocalStorage;

    move-result-object v0

    invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/market/transport/LocalStorage;->setLaunched()V

    .line 1874
    invoke-static {}, Lcom/cleanmaster/hpsharelib/base/util/system/LauncherUtil;->getInst()Lcom/cleanmaster/hpsharelib/base/util/system/LauncherUtil;

    move-result-object v0

    const/4 v2, 0x1

    invoke-virtual {v0, v1, v2}, Lcom/cleanmaster/hpsharelib/base/util/system/LauncherUtil;->setFixLauncherState(Ljava/lang/String;Z)V
    :try_end_91
    .catch Ljava/lang/Exception; {:try_start_57 .. :try_end_91} :catch_d9

    .line 1883
    :cond_91
    :goto_91
    invoke-static {}, Lcom/keniu/security/l;->d()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getInstanse(Landroid/content/Context;)Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;

    move-result-object v0

    .line 1884
    invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->setAllowFixShortcutAtServiceStart()V

    .line 1886
    :cond_9c
    invoke-static {}, Lcom/cleanmaster/hpsharelib/ctrl/MarketShowPolicy;->isShow_MARKET_PICKS()Z

    move-result v0

    .line 1888
    invoke-static {}, Lcom/keniu/security/l;->d()Landroid/content/Context;

    move-result-object v1

    .line 1887
    invoke-static {v1}, Lcom/cleanmaster/hpsharelib/base/util/system/PackageUtils;->isSelfDebuggable(Landroid/content/Context;)Z

    move-result v1

    sput-boolean v1, Lcom/cleanmaster/hpsharelib/report/BaseTracer;->DEBUG:Z

    .line 1890
    const-string v1, "config_last_save_time"

    invoke-static {v1}, Lcom/cleanmaster/hpsharelib/market/transport/LocalStorage;->isExpiredStrict(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_bf

    if-eqz v0, :cond_bf

    .line 1892
    invoke-static {}, Lcom/cleanmaster/ui/app/market/b/c;->a()Z

    .line 1893
    const-string v1, "config_last_save_time"

    const-wide/32 v2, 0x5265c00

    invoke-static {v1, v2, v3}, Lcom/cleanmaster/hpsharelib/market/transport/LocalStorage;->setExpiredStrict(Ljava/lang/String;J)V

    .line 1895
    :cond_bf
    invoke-static {}, Lcom/keniu/security/l;->d()Landroid/content/Context;

    move-result-object v1

    invoke-static {v1}, Lcom/cleanmaster/hpsharelib/utils/KDBUtils;->isWebViewProbablyCorrupt(Landroid/content/Context;)Z

    move-result v1

    .line 1896
    if-eqz v0, :cond_d8

    invoke-static {}, Lcom/keniu/security/l;->d()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/cleanmaster/hpsharelib/base/util/net/NetworkUtil;->isWifiNetworkUp(Landroid/content/Context;)Z

    move-result v0

    if-eqz v0, :cond_d8

    .line 1897
    if-nez v1, :cond_d8

    .line 1898
    invoke-static {}, Lcom/cleanmaster/hpsharelib/market/transport/MarketHttpConfig;->initUserAgent()V

    .line 1901
    :cond_d8
    return-void

    .line 1876
    :catch_d9
    move-exception v0

    .line 1877
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_91
.end method