2019-02-04 20:08:30 +00:00
|
|
|
.class public final Lkotlinx/coroutines/android/AndroidExceptionPreHandler;
|
|
|
|
.super Lkotlin/c/a;
|
2019-02-04 20:29:01 +00:00
|
|
|
.source "AndroidExceptionPreHandler.kt"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
# interfaces
|
2019-02-04 20:29:01 +00:00
|
|
|
.implements Lkotlinx/coroutines/CoroutineExceptionHandler;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation build Landroidx/annotation/Keep;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>()V
|
|
|
|
.locals 1
|
|
|
|
|
2019-04-18 05:08:29 +00:00
|
|
|
sget-object v0, Lkotlinx/coroutines/CoroutineExceptionHandler;->bft:Lkotlinx/coroutines/CoroutineExceptionHandler$a;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
check-cast v0, Lkotlin/c/e$c;
|
|
|
|
|
|
|
|
invoke-direct {p0, v0}, Lkotlin/c/a;-><init>(Lkotlin/c/e$c;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final handleException(Lkotlin/c/e;Ljava/lang/Throwable;)V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
const-string v0, "context"
|
|
|
|
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
const-string p1, "exception"
|
|
|
|
|
|
|
|
invoke-static {p2, p1}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
2019-04-16 23:08:16 +00:00
|
|
|
invoke-static {}, Lkotlinx/coroutines/android/a;->zh()Ljava/lang/reflect/Method;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
new-array v1, v1, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0, v1}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
move-object p1, v0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
instance-of v1, p1, Ljava/lang/Thread$UncaughtExceptionHandler;
|
|
|
|
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
|
|
|
|
move-object p1, v0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
check-cast p1, Ljava/lang/Thread$UncaughtExceptionHandler;
|
|
|
|
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
|
|
|
|
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-interface {p1, v0, p2}, Ljava/lang/Thread$UncaughtExceptionHandler;->uncaughtException(Ljava/lang/Thread;Ljava/lang/Throwable;)V
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
return-void
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
:cond_2
|
|
|
|
return-void
|
|
|
|
.end method
|