2020-11-12 02:11:44 +00:00
|
|
|
.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-string v0, "$this$coroutineScope"
|
|
|
|
|
2020-11-16 22:05:17 +00:00
|
|
|
invoke-static {p0, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iget-object v0, p0, Landroidx/lifecycle/Lifecycle;->mInternalScopeRef:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
new-instance v0, Landroidx/lifecycle/LifecycleCoroutineScopeImpl;
|
|
|
|
|
2020-11-16 22:05:17 +00:00
|
|
|
new-instance v1, Lz/a/k1;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
2020-11-16 22:05:17 +00:00
|
|
|
invoke-direct {v1, v2}, Lz/a/k1;-><init>(Lkotlinx/coroutines/Job;)V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 22:05:17 +00:00
|
|
|
sget-object v3, Lz/a/h0;->a:Lz/a/v;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 22:05:17 +00:00
|
|
|
sget-object v3, Lz/a/s1/j;->b:Lz/a/e1;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 22:05:17 +00:00
|
|
|
invoke-virtual {v3}, Lz/a/e1;->t()Lz/a/e1;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
invoke-static {v1, v3}, Lkotlin/coroutines/CoroutineContext$a$a;->plus(Lkotlin/coroutines/CoroutineContext$a;Lkotlin/coroutines/CoroutineContext;)Lkotlin/coroutines/CoroutineContext;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-direct {v0, p0, v1}, Landroidx/lifecycle/LifecycleCoroutineScopeImpl;-><init>(Landroidx/lifecycle/Lifecycle;Lkotlin/coroutines/CoroutineContext;)V
|
|
|
|
|
|
|
|
iget-object v1, p0, Landroidx/lifecycle/Lifecycle;->mInternalScopeRef:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Landroidx/lifecycle/LifecycleCoroutineScopeImpl;->register()V
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|