ah.smali

.class Lcom/cleanmaster/service/ah;
.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 431
    iput-object p1, p0, Lcom/cleanmaster/service/ah;->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 434
    new-instance v0, Lcom/cleanmaster/service/ai;

    invoke-direct {v0, p0, p1, p2}, Lcom/cleanmaster/service/ai;-><init>(Lcom/cleanmaster/service/ah;Landroid/content/Context;Landroid/content/Intent;)V

    invoke-static {v0}, Lcom/cleanmaster/base/util/concurrent/BackgroundThread;->post(Ljava/lang/Runnable;)V

    .line 440
    return-void
.end method

.method public onReceiveInterAsync(Landroid/content/Context;Landroid/content/Intent;)V
    .registers 6

    .prologue
    const/4 v2, 0x3

    .line 444
    invoke-static {p1}, Lcom/cleanmaster/hpsharelib/base/util/net/NetworkUtil;->isAllowAccessNetwork(Landroid/content/Context;)Z

    move-result v0

    if-nez v0, :cond_8

    .line 470
    :cond_7
    :goto_7
    return-void

    .line 449
    :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 454
    :goto_12
    if-eqz v1, :cond_7

    .line 455
    const/4 v0, 0x1

    .line 457
    :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 463
    :goto_19
    if-ne v0, v2, :cond_2b

    .line 465
    invoke-static {}, Lcom/cleanmaster/service/BgScanService;->c()V

    goto :goto_7

    .line 450
    :catch_1f
    move-exception v0

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

    .line 452
    const/4 v0, 0x0

    move-object v1, v0

    goto :goto_12

    .line 458
    :catch_26
    move-exception v1

    .line 461
    invoke-virtual {v1}, Ljava/lang/SecurityException;->printStackTrace()V

    goto :goto_19

    .line 467
    :cond_2b
    invoke-static {v2}, Lcom/cleanmaster/service/BgScanService;->b(I)V

    goto :goto_7
.end method