apkfuckery/com.discord/smali/androidx/lifecycle/LifecycleKt.smali

62 lines
1.9 KiB
Smali
Raw Normal View History

2020-07-08 16:44:49 +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
2020-09-09 19:21:20 +00:00
const-string v0, "$this$coroutineScope"
2020-07-08 16:44:49 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {p0, v0}, Lk0/n/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-07-08 16:44:49 +00:00
:cond_0
2020-09-09 19:21:20 +00:00
iget-object v0, p0, Landroidx/lifecycle/Lifecycle;->mInternalScopeRef:Ljava/util/concurrent/atomic/AtomicReference;
2020-07-08 16:44:49 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
2020-07-08 16:44:49 +00:00
2020-09-09 19:21:20 +00:00
move-result-object v0
2020-07-08 16:44:49 +00:00
2020-09-09 19:21:20 +00:00
check-cast v0, Landroidx/lifecycle/LifecycleCoroutineScopeImpl;
2020-07-08 16:44:49 +00:00
2020-09-09 19:21:20 +00:00
if-eqz v0, :cond_1
2020-07-08 16:44:49 +00:00
2020-09-09 19:21:20 +00:00
return-object v0
2020-07-08 16:44:49 +00:00
:cond_1
2020-09-09 19:21:20 +00:00
new-instance v0, Landroidx/lifecycle/LifecycleCoroutineScopeImpl;
2020-07-08 16:44:49 +00:00
2020-09-09 19:21:20 +00:00
new-instance v1, Ll0/a/j1;
2020-07-08 16:44:49 +00:00
2020-09-09 19:21:20 +00:00
const/4 v2, 0x0
2020-07-08 16:44:49 +00:00
2020-09-09 19:21:20 +00:00
invoke-direct {v1, v2}, Ll0/a/j1;-><init>(Lkotlinx/coroutines/Job;)V
2020-07-08 16:44:49 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {}, Ll0/a/g0;->a()Ll0/a/d1;
2020-07-08 16:44:49 +00:00
2020-09-02 04:07:20 +00:00
move-result-object v3
2020-07-08 16:44:49 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {v3}, Ll0/a/d1;->t()Ll0/a/d1;
2020-07-08 16:44:49 +00:00
2020-09-09 19:21:20 +00:00
move-result-object v3
2020-07-08 16:44:49 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {v1, v3}, Lkotlin/coroutines/CoroutineContext$a$a;->plus(Lkotlin/coroutines/CoroutineContext$a;Lkotlin/coroutines/CoroutineContext;)Lkotlin/coroutines/CoroutineContext;
2020-09-08 08:16:32 +00:00
2020-09-09 19:21:20 +00:00
move-result-object v1
2020-09-08 08:16:32 +00:00
2020-09-09 19:21:20 +00:00
invoke-direct {v0, p0, v1}, Landroidx/lifecycle/LifecycleCoroutineScopeImpl;-><init>(Landroidx/lifecycle/Lifecycle;Lkotlin/coroutines/CoroutineContext;)V
2020-09-08 08:16:32 +00:00
2020-09-09 19:21:20 +00:00
iget-object v1, p0, Landroidx/lifecycle/Lifecycle;->mInternalScopeRef:Ljava/util/concurrent/atomic/AtomicReference;
2020-07-08 16:44:49 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {v1, v2, v0}, Ljava/util/concurrent/atomic/AtomicReference;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;)Z
2020-07-08 16:44:49 +00:00
2020-09-09 19:21:20 +00:00
move-result v1
2020-07-08 16:44:49 +00:00
2020-09-09 19:21:20 +00:00
if-eqz v1, :cond_0
2020-07-08 16:44:49 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {v0}, Landroidx/lifecycle/LifecycleCoroutineScopeImpl;->register()V
2020-07-08 16:44:49 +00:00
2020-09-09 19:21:20 +00:00
return-object v0
2020-07-08 16:44:49 +00:00
.end method