mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-26 17:12:31 -06:00
104 lines
3.1 KiB
Smali
104 lines
3.1 KiB
Smali
.class public final Landroidx/lifecycle/LifecycleKt;
|
|
.super Ljava/lang/Object;
|
|
.source "Lifecycle.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation runtime Lkotlin/Metadata;
|
|
d1 = {
|
|
"\u0000\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0003\"\u0015\u0010\u0000\u001a\u00020\u0001*\u00020\u00028F\u00a2\u0006\u0006\u001a\u0004\u0008\u0003\u0010\u0004\u00a8\u0006\u0005"
|
|
}
|
|
d2 = {
|
|
"coroutineScope",
|
|
"Landroidx/lifecycle/LifecycleCoroutineScope;",
|
|
"Landroidx/lifecycle/Lifecycle;",
|
|
"getCoroutineScope",
|
|
"(Landroidx/lifecycle/Lifecycle;)Landroidx/lifecycle/LifecycleCoroutineScope;",
|
|
"lifecycle-common"
|
|
}
|
|
k = 0x2
|
|
mv = {
|
|
0x1,
|
|
0x8,
|
|
0x0
|
|
}
|
|
xi = 0x30
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public static final getCoroutineScope(Landroidx/lifecycle/Lifecycle;)Landroidx/lifecycle/LifecycleCoroutineScope;
|
|
.locals 4
|
|
|
|
const-string v0, "<this>"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 294
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroidx/lifecycle/Lifecycle;->getInternalScopeRef()Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroidx/lifecycle/LifecycleCoroutineScopeImpl;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 296
|
|
check-cast v0, Landroidx/lifecycle/LifecycleCoroutineScope;
|
|
|
|
return-object v0
|
|
|
|
.line 298
|
|
:cond_1
|
|
new-instance v0, Landroidx/lifecycle/LifecycleCoroutineScopeImpl;
|
|
|
|
const/4 v1, 0x1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
.line 300
|
|
invoke-static {v2, v1, v2}, Lkotlinx/coroutines/SupervisorKt;->SupervisorJob$default(Lkotlinx/coroutines/Job;ILjava/lang/Object;)Lkotlinx/coroutines/CompletableJob;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {}, Lkotlinx/coroutines/Dispatchers;->getMain()Lkotlinx/coroutines/MainCoroutineDispatcher;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v3}, Lkotlinx/coroutines/MainCoroutineDispatcher;->getImmediate()Lkotlinx/coroutines/MainCoroutineDispatcher;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Lkotlin/coroutines/CoroutineContext;
|
|
|
|
invoke-interface {v1, v3}, Lkotlinx/coroutines/CompletableJob;->plus(Lkotlin/coroutines/CoroutineContext;)Lkotlin/coroutines/CoroutineContext;
|
|
|
|
move-result-object v1
|
|
|
|
.line 298
|
|
invoke-direct {v0, p0, v1}, Landroidx/lifecycle/LifecycleCoroutineScopeImpl;-><init>(Landroidx/lifecycle/Lifecycle;Lkotlin/coroutines/CoroutineContext;)V
|
|
|
|
.line 302
|
|
invoke-virtual {p0}, Landroidx/lifecycle/Lifecycle;->getInternalScopeRef()Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, v2, v0}, Ljava/util/concurrent/atomic/AtomicReference;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 303
|
|
invoke-virtual {v0}, Landroidx/lifecycle/LifecycleCoroutineScopeImpl;->register()V
|
|
|
|
.line 304
|
|
check-cast v0, Landroidx/lifecycle/LifecycleCoroutineScope;
|
|
|
|
return-object v0
|
|
.end method
|