aq.smali
.class Lcom/cleanmaster/service/aq;
.super Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;
.source "PermanentService.java"
# instance fields
.field final synthetic a:Lcom/cleanmaster/service/PermanentService;
# direct methods
.method constructor <init>(Lcom/cleanmaster/service/PermanentService;)V
.registers 2
.prologue
.line 438
iput-object p1, p0, Lcom/cleanmaster/service/aq;->a:Lcom/cleanmaster/service/PermanentService;
invoke-direct {p0}, Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;-><init>()V
return-void
.end method
# virtual methods
.method public onReceiveInter(Landroid/content/Context;Landroid/content/Intent;)V
.registers 4
.prologue
.line 441
new-instance v0, Lcom/cleanmaster/service/ar;
invoke-direct {v0, p0, p1, p2}, Lcom/cleanmaster/service/ar;-><init>(Lcom/cleanmaster/service/aq;Landroid/content/Context;Landroid/content/Intent;)V
invoke-static {v0}, Lcom/cleanmaster/base/util/concurrent/BackgroundThread;->post(Ljava/lang/Runnable;)V
.line 447
return-void
.end method
.method public onReceiveInterAsync(Landroid/content/Context;Landroid/content/Intent;)V
.registers 6
.prologue
const/4 v2, 0x3
.line 451
invoke-static {p1}, Lcom/cleanmaster/hpsharelib/base/util/net/NetworkUtil;->isAllowAccessNetwork(Landroid/content/Context;)Z
move-result v0
if-nez v0, :cond_8
.line 476
:cond_7
:goto_7
return-void
.line 456
:cond_8
:try_start_8
const-string/jumbo v0, "wifi"
invoke-virtual {p1, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/net/wifi/WifiManager;
:try_end_11
.catch Ljava/lang/Throwable; {:try_start_8 .. :try_end_11} :catch_1f
move-object v1, v0
.line 461
:goto_12
if-eqz v1, :cond_7
.line 462
const/4 v0, 0x1
.line 464
:try_start_15
invoke-virtual {v1}, Landroid/net/wifi/WifiManager;->getWifiState()I
:try_end_18
.catch Ljava/lang/SecurityException; {:try_start_15 .. :try_end_18} :catch_26
move-result v0
.line 470
:goto_19
if-ne v0, v2, :cond_2b
.line 471
invoke-static {}, Lcom/cleanmaster/service/BgScanService;->c()V
goto :goto_7
.line 457
:catch_1f
move-exception v0
.line 458
invoke-virtual {v0}, Ljava/lang/Throwable;->printStackTrace()V
.line 459
const/4 v0, 0x0
move-object v1, v0
goto :goto_12
.line 465
:catch_26
move-exception v1
.line 468
invoke-virtual {v1}, Ljava/lang/SecurityException;->printStackTrace()V
goto :goto_19
.line 473
:cond_2b
invoke-static {v2}, Lcom/cleanmaster/service/BgScanService;->a(I)V
goto :goto_7
.end method