LogBoxModule.smali
.class public Lcom/facebook/react/devsupport/LogBoxModule;
.super Lcom/facebook/fbreact/specs/NativeLogBoxSpec;
.source "LogBoxModule.java"
# annotations
.annotation runtime Lcom/facebook/react/module/annotations/ReactModule;
name = "LogBox"
.end annotation
# static fields
.field public static final NAME:Ljava/lang/String; = "LogBox"
# instance fields
.field public final mDevSupportManager:Lcom/facebook/react/devsupport/interfaces/DevSupportManager;
.field public mLogBoxDialog:Lcom/facebook/react/devsupport/LogBoxDialog;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end field
.field public mReactRootView:Landroid/view/View;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method public constructor <init>(Lcom/facebook/react/bridge/ReactApplicationContext;Lcom/facebook/react/devsupport/interfaces/DevSupportManager;)V
.registers 3
invoke-direct {p0, p1}, Lcom/facebook/fbreact/specs/NativeLogBoxSpec;-><init>(Lcom/facebook/react/bridge/ReactApplicationContext;)V
iput-object p2, p0, Lcom/facebook/react/devsupport/LogBoxModule;->mDevSupportManager:Lcom/facebook/react/devsupport/interfaces/DevSupportManager;
new-instance p1, Lcom/facebook/react/devsupport/LogBoxModule$1;
invoke-direct {p1, p0}, Lcom/facebook/react/devsupport/LogBoxModule$1;-><init>(Lcom/facebook/react/devsupport/LogBoxModule;)V
invoke-static {p1}, Lcom/facebook/react/bridge/UiThreadUtil;->runOnUiThread(Ljava/lang/Runnable;)V
return-void
.end method
.method public static synthetic access$000(Lcom/facebook/react/devsupport/LogBoxModule;)Landroid/view/View;
.registers 1
iget-object p0, p0, Lcom/facebook/react/devsupport/LogBoxModule;->mReactRootView:Landroid/view/View;
return-object p0
.end method
.method public static synthetic access$002(Lcom/facebook/react/devsupport/LogBoxModule;Landroid/view/View;)Landroid/view/View;
.registers 2
iput-object p1, p0, Lcom/facebook/react/devsupport/LogBoxModule;->mReactRootView:Landroid/view/View;
return-object p1
.end method
.method public static synthetic access$100(Lcom/facebook/react/devsupport/LogBoxModule;)Lcom/facebook/react/devsupport/interfaces/DevSupportManager;
.registers 1
iget-object p0, p0, Lcom/facebook/react/devsupport/LogBoxModule;->mDevSupportManager:Lcom/facebook/react/devsupport/interfaces/DevSupportManager;
return-object p0
.end method
.method public static synthetic access$200(Lcom/facebook/react/devsupport/LogBoxModule;)Lcom/facebook/react/devsupport/LogBoxDialog;
.registers 1
iget-object p0, p0, Lcom/facebook/react/devsupport/LogBoxModule;->mLogBoxDialog:Lcom/facebook/react/devsupport/LogBoxDialog;
return-object p0
.end method
.method public static synthetic access$202(Lcom/facebook/react/devsupport/LogBoxModule;Lcom/facebook/react/devsupport/LogBoxDialog;)Lcom/facebook/react/devsupport/LogBoxDialog;
.registers 2
iput-object p1, p0, Lcom/facebook/react/devsupport/LogBoxModule;->mLogBoxDialog:Lcom/facebook/react/devsupport/LogBoxDialog;
return-object p1
.end method
.method public static synthetic access$300(Lcom/facebook/react/devsupport/LogBoxModule;)Landroid/app/Activity;
.registers 1
invoke-virtual {p0}, Lcom/facebook/react/bridge/ReactContextBaseJavaModule;->getCurrentActivity()Landroid/app/Activity;
move-result-object p0
return-object p0
.end method
# virtual methods
.method public getName()Ljava/lang/String;
.registers 2
const-string v0, "LogBox"
return-object v0
.end method
.method public hide()V
.registers 2
new-instance v0, Lcom/facebook/react/devsupport/LogBoxModule$3;
invoke-direct {v0, p0}, Lcom/facebook/react/devsupport/LogBoxModule$3;-><init>(Lcom/facebook/react/devsupport/LogBoxModule;)V
invoke-static {v0}, Lcom/facebook/react/bridge/UiThreadUtil;->runOnUiThread(Ljava/lang/Runnable;)V
return-void
.end method
.method public onCatalystInstanceDestroy()V
.registers 2
new-instance v0, Lcom/facebook/react/devsupport/LogBoxModule$4;
invoke-direct {v0, p0}, Lcom/facebook/react/devsupport/LogBoxModule$4;-><init>(Lcom/facebook/react/devsupport/LogBoxModule;)V
invoke-static {v0}, Lcom/facebook/react/bridge/UiThreadUtil;->runOnUiThread(Ljava/lang/Runnable;)V
return-void
.end method
.method public show()V
.registers 2
iget-object v0, p0, Lcom/facebook/react/devsupport/LogBoxModule;->mReactRootView:Landroid/view/View;
if-eqz v0, :cond_c
new-instance v0, Lcom/facebook/react/devsupport/LogBoxModule$2;
invoke-direct {v0, p0}, Lcom/facebook/react/devsupport/LogBoxModule$2;-><init>(Lcom/facebook/react/devsupport/LogBoxModule;)V
invoke-static {v0}, Lcom/facebook/react/bridge/UiThreadUtil;->runOnUiThread(Ljava/lang/Runnable;)V
:cond_c
return-void
.end method