66 lines
1.8 KiB
Smali
66 lines
1.8 KiB
Smali
.class public final Landroidx/lifecycle/LifecycleKt;
|
|
.super Ljava/lang/Object;
|
|
.source "Lifecycle.kt"
|
|
|
|
|
|
# direct methods
|
|
.method public static final getCoroutineScope(Landroidx/lifecycle/Lifecycle;)Landroidx/lifecycle/LifecycleCoroutineScope;
|
|
.locals 4
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p0, :cond_2
|
|
|
|
:cond_0
|
|
iget-object v1, p0, Landroidx/lifecycle/Lifecycle;->mInternalScopeRef:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-virtual {v1}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Landroidx/lifecycle/LifecycleCoroutineScopeImpl;
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
return-object v1
|
|
|
|
:cond_1
|
|
new-instance v1, Landroidx/lifecycle/LifecycleCoroutineScopeImpl;
|
|
|
|
new-instance v2, Lk0/a/q1;
|
|
|
|
invoke-direct {v2, v0}, Lk0/a/q1;-><init>(Lkotlinx/coroutines/Job;)V
|
|
|
|
invoke-static {}, Lk0/a/l0;->a()Lk0/a/i1;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v3}, Lk0/a/i1;->s()Lk0/a/i1;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v2, v3}, Lk0/a/f1;->plus(Lkotlin/coroutines/CoroutineContext;)Lkotlin/coroutines/CoroutineContext;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-direct {v1, p0, v2}, Landroidx/lifecycle/LifecycleCoroutineScopeImpl;-><init>(Landroidx/lifecycle/Lifecycle;Lkotlin/coroutines/CoroutineContext;)V
|
|
|
|
iget-object v2, p0, Landroidx/lifecycle/Lifecycle;->mInternalScopeRef:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-virtual {v2, v0, v1}, Ljava/util/concurrent/atomic/AtomicReference;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
invoke-virtual {v1}, Landroidx/lifecycle/LifecycleCoroutineScopeImpl;->register()V
|
|
|
|
return-object v1
|
|
|
|
:cond_2
|
|
const-string p0, "$this$coroutineScope"
|
|
|
|
invoke-static {p0}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|