b.smali
.class public Lcom/cleanmaster/loststars/a/b;
.super Ljava/lang/Object;
.source "RedPacketEntry.java"
# direct methods
.method public static a()V
.registers 3
.prologue
.line 50
invoke-static {}, Lcom/keniu/security/m;->d()Landroid/content/Context;
move-result-object v0
.line 51
invoke-static {v0}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getInstanse(Landroid/content/Context;)Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;
move-result-object v1
invoke-virtual {v1}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getRedPacketNotifSwitch()Z
move-result v1
.line 52
invoke-static {}, Lcom/cleanmaster/loststars/d/a;->b()Z
move-result v2
.line 54
if-eqz v1, :cond_25
if-nez v2, :cond_25
.line 55
const-string v1, "LostStarsEntryManager"
const-string/jumbo v2, "redpacket old user upgrade"
invoke-static {v1, v2}, Lcom/cleanmaster/util/CMLogUtils;->e(Ljava/lang/String;Ljava/lang/String;)V
.line 56
new-instance v1, Lcom/cleanmaster/loststars/a/c;
invoke-direct {v1, v0}, Lcom/cleanmaster/loststars/a/c;-><init>(Landroid/content/Context;)V
invoke-static {v0, v1}, Lcom/cleanmaster/loststars/d/a;->a(Landroid/content/Context;Lcom/cm/plugincluster/pluginmgr/interfaces/IPluginManager$IPluginFetcherCallback;)V
.line 70
:goto_24
return-void
.line 69
:cond_25
invoke-static {}, Lcom/cleanmaster/q/b/a;->a()Lcom/cm/plugincluster/redpacket/interfaces/IRedPacketPluginModule;
move-result-object v1
invoke-interface {v1, v0}, Lcom/cm/plugincluster/redpacket/interfaces/IRedPacketPluginModule;->startRedPacketServiceDefault(Landroid/content/Context;)V
goto :goto_24
.end method
.method public static a(I)V
.registers 6
.prologue
const/high16 v4, 0x10000000
.line 32
invoke-static {}, Lcom/keniu/security/m;->d()Landroid/content/Context;
move-result-object v0
.line 33
invoke-static {}, Lcom/cleanmaster/q/b/a;->a()Lcom/cm/plugincluster/redpacket/interfaces/IRedPacketPluginModule;
move-result-object v1
invoke-interface {v1}, Lcom/cm/plugincluster/redpacket/interfaces/IRedPacketPluginModule;->getRedPacketNotifSwitch()Z
move-result v1
if-nez v1, :cond_32
.line 34
invoke-static {}, Lcom/cleanmaster/q/b/a;->a()Lcom/cm/plugincluster/redpacket/interfaces/IRedPacketPluginModule;
move-result-object v1
invoke-interface {v1}, Lcom/cm/plugincluster/redpacket/interfaces/IRedPacketPluginModule;->getIsToolsRedPacketShow()Z
move-result v1
if-nez v1, :cond_32
.line 35
new-instance v1, Landroid/content/Intent;
invoke-direct {v1}, Landroid/content/Intent;-><init>()V
.line 36
const-string v2, "com.cleanmaster.mguard_cn"
const-string v3, "com.cmcm.redpacket.activity.RedPacketLandingPageActivity"
invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
.line 37
const-string v2, "from_where"
invoke-virtual {v1, v2, p0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;
.line 38
invoke-virtual {v1, v4}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;
.line 39
invoke-static {v0, v1}, Lcom/cleanmaster/hpsharelib/base/util/system/ComponentUtils;->startActivity(Landroid/content/Context;Landroid/content/Intent;)Z
.line 47
:goto_31
return-void
.line 41
:cond_32
new-instance v1, Landroid/content/Intent;
invoke-direct {v1}, Landroid/content/Intent;-><init>()V
.line 42
const-string v2, "com.cleanmaster.mguard_cn"
const-string v3, "com.cmcm.redpacket.activity.RedPacketSettingActivity"
invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
.line 43
const-string v2, "from_where"
invoke-virtual {v1, v2, p0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;
.line 44
invoke-virtual {v1, v4}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;
.line 45
invoke-static {v0, v1}, Lcom/cleanmaster/hpsharelib/base/util/system/ComponentUtils;->startActivity(Landroid/content/Context;Landroid/content/Intent;)Z
goto :goto_31
.end method