a$b.smali

.class public final Lcom/reactnativecommunity/netinfo/a$b;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/reactnativecommunity/netinfo/a;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x1
    name = "b"
.end annotation


# instance fields
.field public final synthetic a:Lcom/reactnativecommunity/netinfo/a;


# direct methods
.method public constructor <init>(Lcom/reactnativecommunity/netinfo/a;)V
    .registers 2

    iput-object p1, p0, Lcom/reactnativecommunity/netinfo/a$b;->a:Lcom/reactnativecommunity/netinfo/a;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public final run()V
    .registers 9

    invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;

    move-result-object v0

    invoke-static {}, Landroid/os/Looper;->myLooper()Landroid/os/Looper;

    move-result-object v1

    if-ne v0, v1, :cond_c

    const/4 v0, 0x1

    goto :goto_d

    :cond_c
    const/4 v0, 0x0

    :goto_d
    const-string v1, "runnable"

    const-string v2, "com/reactnativecommunity/netinfo/AmazonFireDeviceConnectivityPoller$PollerTask"

    const-string v3, "run"

    if-eqz v0, :cond_18

    invoke-static {v3, v2, v1}, Lcom/shopee/monitor/trace/c;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 1
    :cond_18
    iget-object v4, p0, Lcom/reactnativecommunity/netinfo/a$b;->a:Lcom/reactnativecommunity/netinfo/a;

    .line 2
    iget-boolean v4, v4, Lcom/reactnativecommunity/netinfo/a;->f:Z

    if-nez v4, :cond_24

    if-eqz v0, :cond_23

    .line 3
    invoke-static {v3, v2, v1}, Lcom/shopee/monitor/trace/c;->b(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    :cond_23
    return-void

    .line 4
    :cond_24
    new-instance v4, Landroid/content/Intent;

    const-string v5, "com.amazon.tv.networkmonitor.CONNECTIVITY_CHECK"

    invoke-direct {v4, v5}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 5
    iget-object v5, p0, Lcom/reactnativecommunity/netinfo/a$b;->a:Lcom/reactnativecommunity/netinfo/a;

    .line 6
    iget-object v5, v5, Lcom/reactnativecommunity/netinfo/a;->b:Landroid/content/Context;

    .line 7
    invoke-virtual {v5, v4}, Landroid/content/Context;->sendBroadcast(Landroid/content/Intent;)V

    .line 8
    iget-object v4, p0, Lcom/reactnativecommunity/netinfo/a$b;->a:Lcom/reactnativecommunity/netinfo/a;

    .line 9
    iget-object v5, v4, Lcom/reactnativecommunity/netinfo/a;->e:Landroid/os/Handler;

    .line 10
    iget-object v4, v4, Lcom/reactnativecommunity/netinfo/a;->d:Lcom/reactnativecommunity/netinfo/a$b;

    const-wide/16 v6, 0x2710

    .line 11
    invoke-virtual {v5, v4, v6, v7}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    if-eqz v0, :cond_42

    .line 12
    invoke-static {v3, v2, v1}, Lcom/shopee/monitor/trace/c;->b(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    :cond_42
    return-void
.end method