w.smali
.class Lcom/qq/e/comm/plugin/b/w;
.super Landroid/content/BroadcastReceiver;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/qq/e/comm/plugin/b/w$a;
}
.end annotation
# instance fields
.field private a:Lcom/qq/e/comm/plugin/b/w$a;
# direct methods
.method public constructor <init>(Lcom/qq/e/comm/plugin/b/w$a;)V
.registers 2
invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V
iput-object p1, p0, Lcom/qq/e/comm/plugin/b/w;->a:Lcom/qq/e/comm/plugin/b/w$a;
return-void
.end method
# virtual methods
.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
.registers 7
const/4 v2, 0x1
const/4 v1, -0x1
const-string v0, "connectivity"
invoke-virtual {p1, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/net/ConnectivityManager;
invoke-virtual {v0}, Landroid/net/ConnectivityManager;->getActiveNetworkInfo()Landroid/net/NetworkInfo;
move-result-object v3
if-nez v3, :cond_4a
move v0, v1
:goto_11
if-nez v0, :cond_27
invoke-virtual {v3}, Landroid/net/NetworkInfo;->isConnected()Z
move-result v1
if-eqz v1, :cond_27
const-string v1, "\u8fde\u63a5\u5230\u8fd0\u8425\u5546\u7f51\u7edc"
invoke-static {v1}, Lcom/qq/e/comm/util/GDTLogger;->d(Ljava/lang/String;)V
iget-object v1, p0, Lcom/qq/e/comm/plugin/b/w;->a:Lcom/qq/e/comm/plugin/b/w$a;
if-eqz v1, :cond_27
iget-object v1, p0, Lcom/qq/e/comm/plugin/b/w;->a:Lcom/qq/e/comm/plugin/b/w$a;
invoke-interface {v1}, Lcom/qq/e/comm/plugin/b/w$a;->b()V
:cond_27
if-ne v2, v0, :cond_49
invoke-virtual {v3}, Landroid/net/NetworkInfo;->isConnected()Z
move-result v0
if-eqz v0, :cond_49
invoke-virtual {v3}, Landroid/net/NetworkInfo;->getDetailedState()Landroid/net/NetworkInfo$DetailedState;
move-result-object v0
sget-object v1, Landroid/net/NetworkInfo$DetailedState;->CONNECTED:Landroid/net/NetworkInfo$DetailedState;
invoke-virtual {v0, v1}, Landroid/net/NetworkInfo$DetailedState;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_49
const-string v0, "\u8fde\u63a5\u5230WIFI\u7f51\u7edc"
invoke-static {v0}, Lcom/qq/e/comm/util/GDTLogger;->d(Ljava/lang/String;)V
iget-object v0, p0, Lcom/qq/e/comm/plugin/b/w;->a:Lcom/qq/e/comm/plugin/b/w$a;
if-eqz v0, :cond_49
iget-object v0, p0, Lcom/qq/e/comm/plugin/b/w;->a:Lcom/qq/e/comm/plugin/b/w$a;
invoke-interface {v0}, Lcom/qq/e/comm/plugin/b/w$a;->a()V
:cond_49
return-void
:cond_4a
invoke-virtual {v3}, Landroid/net/NetworkInfo;->getType()I
move-result v0
packed-switch v0, :pswitch_data_58
move v0, v1
goto :goto_11
:pswitch_53
move v0, v2
goto :goto_11
:pswitch_55
const/4 v0, 0x0
goto :goto_11
nop
:pswitch_data_58
.packed-switch 0x0
:pswitch_55
:pswitch_53
.end packed-switch
.end method