50 lines
1.2 KiB
Smali
50 lines
1.2 KiB
Smali
.class public Lcom/moji/mjad/common/receiver/NetChangeReceiver;
|
|
.super Landroid/content/BroadcastReceiver;
|
|
.source "NetChangeReceiver.java"
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 14
|
|
invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
|
|
.locals 0
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
.line 17
|
|
invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
const-string p2, "android.net.wifi.WIFI_STATE_CHANGED"
|
|
|
|
invoke-virtual {p1, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 18
|
|
invoke-static {}, Lorg/greenrobot/eventbus/EventBus;->a()Lorg/greenrobot/eventbus/EventBus;
|
|
|
|
move-result-object p1
|
|
|
|
new-instance p2, Lcom/moji/mjad/common/receiver/NetWorkChangeEvent;
|
|
|
|
invoke-direct {p2}, Lcom/moji/mjad/common/receiver/NetWorkChangeEvent;-><init>()V
|
|
|
|
invoke-virtual {p1, p2}, Lorg/greenrobot/eventbus/EventBus;->d(Ljava/lang/Object;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|