a$1.smali

.class final Lsg/bigo/web/jsbridge/a/b/a$1;
.super Landroid/content/BroadcastReceiver;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lsg/bigo/web/jsbridge/a/b/a;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lsg/bigo/web/jsbridge/a/b/a;


# direct methods
.method constructor <init>(Lsg/bigo/web/jsbridge/a/b/a;)V
    .registers 2

    .line 33
    iput-object p1, p0, Lsg/bigo/web/jsbridge/a/b/a$1;->a:Lsg/bigo/web/jsbridge/a/b/a;

    invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V

    return-void
.end method


# virtual methods
.method public final onReceive(Landroid/content/Context;Landroid/content/Intent;)V
    .registers 5

    if-eqz p2, :cond_7

    .line 36
    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object p1

    goto :goto_8

    :cond_7
    const/4 p1, 0x0

    :goto_8
    const-string p2, "android.net.conn.CONNECTIVITY_CHANGE"

    .line 37
    invoke-virtual {p2, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_29

    .line 38
    iget-object p1, p0, Lsg/bigo/web/jsbridge/a/b/a$1;->a:Lsg/bigo/web/jsbridge/a/b/a;

    .line 1044
    invoke-static {}, Lsg/bigo/common/p;->b()Z

    move-result p2

    .line 1045
    sget-boolean v0, Lsg/bigo/web/jsbridge/a/b/a;->a:Z

    if-eq p2, v0, :cond_29

    .line 1048
    sput-boolean p2, Lsg/bigo/web/jsbridge/a/b/a;->a:Z

    .line 1049
    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V

    const-string v1, "networkStatus"

    .line 1050
    invoke-static {v0, v1, p2}, Lsg/bigo/web/utils/d;->a(Lorg/json/JSONObject;Ljava/lang/String;Z)V

    .line 1051
    invoke-virtual {p1, v0}, Lsg/bigo/web/jsbridge/a/b/a;->a(Lorg/json/JSONObject;)V

    :cond_29
    return-void
.end method