ScreenADServiceReceiver.smali
.class public Lcom/cleanmaster/screensave/ScreenADServiceReceiver;
.super Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;
.source "ScreenADServiceReceiver.java"
# interfaces
.implements Lcom/cm/plugincluster/monitor/interfaces/IMonitor;
# direct methods
.method public constructor <init>()V
.registers 1
.prologue
.line 17
invoke-direct {p0}, Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;-><init>()V
return-void
.end method
.method public static a(Ljava/lang/String;)V
.registers 4
.prologue
.line 44
invoke-static {}, Lcom/cleanmaster/base/util/a;->a()Z
move-result v0
if-eqz v0, :cond_34
.line 45
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string/jumbo v1, "screen enable , action = "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lcom/cleanmaster/recommendapps/g;->b(Ljava/lang/String;)V
.line 46
invoke-static {}, Lcom/keniu/security/m;->d()Landroid/content/Context;
move-result-object v0
.line 47
new-instance v1, Landroid/content/Intent;
invoke-direct {v1}, Landroid/content/Intent;-><init>()V
.line 48
invoke-virtual {v1, p0}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;
.line 49
invoke-virtual {v0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
move-result-object v2
invoke-virtual {v1, v2}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;
.line 50
invoke-virtual {v0, v1}, Landroid/content/Context;->sendBroadcast(Landroid/content/Intent;)V
.line 54
:goto_33
return-void
.line 52
:cond_34
const-string/jumbo v0, "screen disEnable"
invoke-static {v0}, Lcom/cleanmaster/recommendapps/g;->b(Ljava/lang/String;)V
goto :goto_33
.end method
# virtual methods
.method public monitorNotify(ILjava/lang/Object;Ljava/lang/Object;)I
.registers 5
.prologue
.line 58
const/16 v0, 0x1b
if-ne v0, p1, :cond_b
.line 59
check-cast p2, Landroid/content/Context;
check-cast p3, Landroid/content/Intent;
invoke-virtual {p0, p2, p3}, Lcom/cleanmaster/screensave/ScreenADServiceReceiver;->onReceiveInter(Landroid/content/Context;Landroid/content/Intent;)V
.line 61
:cond_b
const/4 v0, 0x1
return v0
.end method
.method public onReceiveInter(Landroid/content/Context;Landroid/content/Intent;)V
.registers 4
.prologue
.line 20
new-instance v0, Lcom/cleanmaster/screensave/a;
invoke-direct {v0, p0, p1, p2}, Lcom/cleanmaster/screensave/a;-><init>(Lcom/cleanmaster/screensave/ScreenADServiceReceiver;Landroid/content/Context;Landroid/content/Intent;)V
invoke-static {v0}, Lcom/cleanmaster/base/util/concurrent/BackgroundThread;->post(Ljava/lang/Runnable;)V
.line 26
return-void
.end method
.method public onReceiveInterAsync(Landroid/content/Context;Landroid/content/Intent;)V
.registers 5
.prologue
.line 30
if-nez p2, :cond_3
.line 41
:cond_2
:goto_2
return-void
.line 33
:cond_3
invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;
move-result-object v0
.line 34
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
if-nez v1, :cond_2
.line 38
const-string v1, "android.net.conn.CONNECTIVITY_CHANGE"
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_2
.line 39
invoke-static {}, Lcom/cleanmaster/r/b/b;->a()Lcom/cm/plugincluster/splash/interfaces/ISplashPluginModule;
move-result-object v0
invoke-interface {v0, p1}, Lcom/cm/plugincluster/splash/interfaces/ISplashPluginModule;->preloadFromConnectWiFi(Landroid/content/Context;)V
goto :goto_2
.end method