c.smali
.class public final Lxf/c;
.super Ljava/lang/Object;
.source "RNInitTask.kt"
# interfaces
.implements Lnb/a;
# annotations
.annotation runtime Lkotlin/Metadata;
bv = {
0x1,
0x0,
0x3
}
d1 = {
"\u0000\u001c\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\u0018\u00002\u00020\u0001B\u0005\u00a2\u0006\u0002\u0010\u0002J\u0018\u0010\u0003\u001a\u00020\u00042\u000e\u0010\u0005\u001a\n\u0018\u00010\u0006j\u0004\u0018\u0001`\u0007H\u0016\u00a8\u0006\u0008"
}
d2 = {
"Lcom/shopee/foody/driver/global/init/tasks/rn/ReactExceptionHandler;",
"Lcom/shopee/android/react/service/IRNExceptionHandler;",
"()V",
"handleException",
"",
"exception",
"Ljava/lang/Exception;",
"Lkotlin/Exception;",
"driver_indonesiaRelease"
}
k = 0x1
mv = {
0x1,
0x1,
0x10
}
.end annotation
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method public constructor <init>()V
.registers 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public handleException(Ljava/lang/Exception;)V
.registers 9
sget-object v0, Lqa/d;->e:Lqa/d$a;
new-instance v1, Lxf/c$a;
invoke-direct {v1, p1}, Lxf/c$a;-><init>(Ljava/lang/Exception;)V
const-string v2, "ReactExceptionHandler"
invoke-virtual {v0, v2, v1}, Lqa/d$a;->b(Ljava/lang/String;Lkotlin/jvm/functions/Function0;)V
sget-object v0, Ljd/b;->c:Ljd/b$a;
invoke-virtual {v0}, Ljd/b$a;->b()Z
move-result v0
if-eqz v0, :cond_2d
invoke-static {}, Lcom/shopee/react/ReactSDK;->get()Lcom/shopee/react/ReactSDK;
move-result-object v0
const-string v1, "ReactSDK.get()"
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v0}, Lcom/shopee/react/ReactSDK;->getReactInstanceManager()Lcom/facebook/react/ReactInstanceManager;
move-result-object v0
if-eqz v0, :cond_5c
invoke-virtual {v0}, Lcom/facebook/react/ReactInstanceManager;->getDevSupportManager()Lcom/facebook/react/devsupport/interfaces/DevSupportManager;
move-result-object v0
if-eqz v0, :cond_5c
invoke-interface {v0, p1}, Lcom/facebook/react/bridge/NativeModuleCallExceptionHandler;->handleException(Ljava/lang/Exception;)V
goto :goto_5c
:cond_2d
sget-object v0, Ljj/d;->a:Ljj/d;
invoke-virtual {v0, p1}, Ljj/d;->a(Ljava/lang/Exception;)V
sget-object v1, Lkotlinx/coroutines/GlobalScope;->INSTANCE:Lkotlinx/coroutines/GlobalScope;
invoke-static {}, Lmd/e;->c()Lkotlinx/coroutines/android/HandlerDispatcher;
move-result-object v2
const/4 v3, 0x0
new-instance v4, Lxf/c$b;
const/4 v0, 0x0
invoke-direct {v4, p1, v0}, Lxf/c$b;-><init>(Ljava/lang/Exception;Lkotlin/coroutines/Continuation;)V
const/4 v5, 0x2
const/4 v6, 0x0
invoke-static/range {v1 .. v6}, Lkotlinx/coroutines/BuildersKt;->launch$default(Lkotlinx/coroutines/CoroutineScope;Lkotlin/coroutines/CoroutineContext;Lkotlinx/coroutines/CoroutineStart;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
move-result-object p1
const-string v0, "Thread.currentThread()"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {p1}, Ljava/lang/Thread;->getName()Ljava/lang/String;
move-result-object p1
const-string v0, "mqt_native_modules"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result p1
if-eqz p1, :cond_5c
invoke-static {}, Landroid/os/Looper;->loop()V
:cond_5c
:goto_5c
return-void
.end method