64 lines
1.9 KiB
Smali
64 lines
1.9 KiB
Smali
.class public final Landroidx/lifecycle/ViewModelKt;
|
|
.super Ljava/lang/Object;
|
|
.source "ViewModel.kt"
|
|
|
|
|
|
# static fields
|
|
.field public static final JOB_KEY:Ljava/lang/String; = "androidx.lifecycle.ViewModelCoroutineScope.JOB_KEY"
|
|
|
|
|
|
# direct methods
|
|
.method public static final getViewModelScope(Landroidx/lifecycle/ViewModel;)Lkotlinx/coroutines/CoroutineScope;
|
|
.locals 4
|
|
|
|
const-string v0, "$this$viewModelScope"
|
|
|
|
invoke-static {p0, v0}, Lc0/n/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "androidx.lifecycle.ViewModelCoroutineScope.JOB_KEY"
|
|
|
|
invoke-virtual {p0, v0}, Landroidx/lifecycle/ViewModel;->getTag(Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lkotlinx/coroutines/CoroutineScope;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
return-object v1
|
|
|
|
:cond_0
|
|
new-instance v1, Landroidx/lifecycle/CloseableCoroutineScope;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
new-instance v3, Ld0/a/j1;
|
|
|
|
invoke-direct {v3, v2}, Ld0/a/j1;-><init>(Lkotlinx/coroutines/Job;)V
|
|
|
|
invoke-static {}, Ld0/a/g0;->a()Ld0/a/d1;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2}, Ld0/a/d1;->t()Ld0/a/d1;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {v3, v2}, Lkotlin/coroutines/CoroutineContext$a$a;->plus(Lkotlin/coroutines/CoroutineContext$a;Lkotlin/coroutines/CoroutineContext;)Lkotlin/coroutines/CoroutineContext;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-direct {v1, v2}, Landroidx/lifecycle/CloseableCoroutineScope;-><init>(Lkotlin/coroutines/CoroutineContext;)V
|
|
|
|
invoke-virtual {p0, v0, v1}, Landroidx/lifecycle/ViewModel;->setTagIfAbsent(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
const-string v0, "setTagIfAbsent(JOB_KEY,\n\u2026patchers.Main.immediate))"
|
|
|
|
invoke-static {p0, v0}, Lc0/n/c/i;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
check-cast p0, Lkotlinx/coroutines/CoroutineScope;
|
|
|
|
return-object p0
|
|
.end method
|