d1.smali
.class final Lf/b/b/b/d1;
.super Ljava/lang/Object;
.source ""
# instance fields
.field private a:Landroid/net/wifi/WifiManager$WifiLock;
.field private b:Z
.field private c:Z
# direct methods
.method public constructor <init>(Landroid/content/Context;)V
.registers 3
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object p1
const-string v0, "wifi"
invoke-virtual {p1, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Landroid/net/wifi/WifiManager;
return-void
.end method
.method private b()V
.registers 3
iget-object v0, p0, Lf/b/b/b/d1;->a:Landroid/net/wifi/WifiManager$WifiLock;
if-nez v0, :cond_5
return-void
:cond_5
iget-boolean v1, p0, Lf/b/b/b/d1;->b:Z
if-eqz v1, :cond_11
iget-boolean v1, p0, Lf/b/b/b/d1;->c:Z
if-eqz v1, :cond_11
invoke-virtual {v0}, Landroid/net/wifi/WifiManager$WifiLock;->acquire()V
goto :goto_14
:cond_11
invoke-virtual {v0}, Landroid/net/wifi/WifiManager$WifiLock;->release()V
:goto_14
return-void
.end method
# virtual methods
.method public a(Z)V
.registers 2
iput-boolean p1, p0, Lf/b/b/b/d1;->c:Z
invoke-direct {p0}, Lf/b/b/b/d1;->b()V
return-void
.end method