LogBoxModule$1.smali

.class Lcom/facebook/react/devsupport/LogBoxModule$1;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/facebook/react/devsupport/LogBoxModule;-><init>(Lcom/facebook/react/bridge/ReactApplicationContext;Lcom/facebook/react/devsupport/interfaces/DevSupportManager;)V
.end annotation

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


# instance fields
.field public final synthetic this$0:Lcom/facebook/react/devsupport/LogBoxModule;


# direct methods
.method public constructor <init>(Lcom/facebook/react/devsupport/LogBoxModule;)V
    .registers 2

    iput-object p1, p0, Lcom/facebook/react/devsupport/LogBoxModule$1;->this$0:Lcom/facebook/react/devsupport/LogBoxModule;

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

    return-void
.end method


# virtual methods
.method public run()V
    .registers 8

    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/facebook/react/devsupport/LogBoxModule$1"

    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/facebook/react/devsupport/LogBoxModule$1;->this$0:Lcom/facebook/react/devsupport/LogBoxModule;

    # getter for: Lcom/facebook/react/devsupport/LogBoxModule;->mReactRootView:Landroid/view/View;
    invoke-static {v4}, Lcom/facebook/react/devsupport/LogBoxModule;->access$000(Lcom/facebook/react/devsupport/LogBoxModule;)Landroid/view/View;

    move-result-object v4

    if-nez v4, :cond_44

    iget-object v4, p0, Lcom/facebook/react/devsupport/LogBoxModule$1;->this$0:Lcom/facebook/react/devsupport/LogBoxModule;

    # getter for: Lcom/facebook/react/devsupport/LogBoxModule;->mDevSupportManager:Lcom/facebook/react/devsupport/interfaces/DevSupportManager;
    invoke-static {v4}, Lcom/facebook/react/devsupport/LogBoxModule;->access$100(Lcom/facebook/react/devsupport/LogBoxModule;)Lcom/facebook/react/devsupport/interfaces/DevSupportManager;

    move-result-object v4

    if-eqz v4, :cond_44

    .line 2
    iget-object v4, p0, Lcom/facebook/react/devsupport/LogBoxModule$1;->this$0:Lcom/facebook/react/devsupport/LogBoxModule;

    # getter for: Lcom/facebook/react/devsupport/LogBoxModule;->mDevSupportManager:Lcom/facebook/react/devsupport/interfaces/DevSupportManager;
    invoke-static {v4}, Lcom/facebook/react/devsupport/LogBoxModule;->access$100(Lcom/facebook/react/devsupport/LogBoxModule;)Lcom/facebook/react/devsupport/interfaces/DevSupportManager;

    move-result-object v5

    const-string v6, "LogBox"

    invoke-interface {v5, v6}, Lcom/facebook/react/devsupport/interfaces/DevSupportManager;->createRootView(Ljava/lang/String;)Landroid/view/View;

    move-result-object v5

    # setter for: Lcom/facebook/react/devsupport/LogBoxModule;->mReactRootView:Landroid/view/View;
    invoke-static {v4, v5}, Lcom/facebook/react/devsupport/LogBoxModule;->access$002(Lcom/facebook/react/devsupport/LogBoxModule;Landroid/view/View;)Landroid/view/View;

    .line 3
    iget-object v4, p0, Lcom/facebook/react/devsupport/LogBoxModule$1;->this$0:Lcom/facebook/react/devsupport/LogBoxModule;

    # getter for: Lcom/facebook/react/devsupport/LogBoxModule;->mReactRootView:Landroid/view/View;
    invoke-static {v4}, Lcom/facebook/react/devsupport/LogBoxModule;->access$000(Lcom/facebook/react/devsupport/LogBoxModule;)Landroid/view/View;

    move-result-object v4

    if-nez v4, :cond_44

    const-string v4, "Unable to launch logbox because react was unable to create the root view"

    .line 4
    invoke-static {v4}, Lcom/facebook/react/util/RNLog;->e(Ljava/lang/String;)V

    :cond_44
    if-eqz v0, :cond_49

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

    :cond_49
    return-void
.end method