apkfuckery/com.discord/smali_classes2/kotlinx/coroutines/android/AndroidDispatcherFactory.smali

108 lines
2.3 KiB
Smali
Raw Normal View History

2019-07-24 11:27:29 +00:00
.class public final Lkotlinx/coroutines/android/AndroidDispatcherFactory;
.super Ljava/lang/Object;
.source "HandlerDispatcher.kt"
# interfaces
.implements Lkotlinx/coroutines/internal/MainDispatcherFactory;
2019-12-06 03:29:40 +00:00
# annotations
.annotation build Landroidx/annotation/Keep;
.end annotation
2019-07-24 11:27:29 +00:00
# direct methods
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
2019-12-18 09:41:56 +00:00
.method public bridge synthetic createDispatcher(Ljava/util/List;)Lu/a/k1;
2019-12-06 03:29:40 +00:00
.locals 0
2019-12-18 09:41:56 +00:00
invoke-virtual {p0, p1}, Lkotlinx/coroutines/android/AndroidDispatcherFactory;->createDispatcher(Ljava/util/List;)Lu/a/z1/a;
2019-12-06 03:29:40 +00:00
move-result-object p1
return-object p1
.end method
2019-12-18 09:41:56 +00:00
.method public createDispatcher(Ljava/util/List;)Lu/a/z1/a;
2019-12-06 03:29:40 +00:00
.locals 3
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"+",
"Lkotlinx/coroutines/internal/MainDispatcherFactory;",
">;)",
2019-12-18 09:41:56 +00:00
"Lu/a/z1/a;"
2019-07-24 11:27:29 +00:00
}
.end annotation
2019-12-06 03:29:40 +00:00
const/4 v0, 0x0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
if-eqz p1, :cond_1
2019-07-24 11:27:29 +00:00
2019-12-18 09:41:56 +00:00
new-instance p1, Lu/a/z1/a;
2019-07-24 11:27:29 +00:00
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
2019-12-06 03:29:40 +00:00
move-result-object v1
const-string v2, "Looper.getMainLooper()"
2019-12-18 09:41:56 +00:00
invoke-static {v1, v2}, Lt/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v2, 0x1
2019-07-24 11:27:29 +00:00
2019-12-18 09:41:56 +00:00
invoke-static {v1, v2}, Lu/a/z1/c;->a(Landroid/os/Looper;Z)Landroid/os/Handler;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v1
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
if-eqz v1, :cond_0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v0, 0x0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const-string v2, "Main"
2019-12-18 09:41:56 +00:00
invoke-direct {p1, v1, v2, v0}, Lu/a/z1/a;-><init>(Landroid/os/Handler;Ljava/lang/String;Z)V
2019-07-24 11:27:29 +00:00
return-object p1
2019-12-06 03:29:40 +00:00
:cond_0
const-string p1, "handler"
2019-07-24 11:27:29 +00:00
2019-12-18 09:41:56 +00:00
invoke-static {p1}, Lt/u/b/j;->a(Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
throw v0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
:cond_1
const-string p1, "allFactories"
2019-07-24 11:27:29 +00:00
2019-12-18 09:41:56 +00:00
invoke-static {p1}, Lt/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
throw v0
2019-07-24 11:27:29 +00:00
.end method
2019-12-06 03:29:40 +00:00
.method public getLoadPriority()I
2019-07-24 11:27:29 +00:00
.locals 1
const v0, 0x3fffffff # 1.9999999f
return v0
.end method
2019-12-06 03:29:40 +00:00
.method public hintOnError()Ljava/lang/String;
2019-07-24 11:27:29 +00:00
.locals 1
const-string v0, "For tests Dispatchers.setMain from kotlinx-coroutines-test module can be used"
return-object v0
.end method