2020-07-08 16:44:49 +00:00
|
|
|
.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
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string v0, "$this$viewModelScope"
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-18 17:51:47 +00:00
|
|
|
invoke-static {p0, v0}, Lc0/n/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string v0, "androidx.lifecycle.ViewModelCoroutineScope.JOB_KEY"
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-virtual {p0, v0}, Landroidx/lifecycle/ViewModel;->getTag(Ljava/lang/String;)Ljava/lang/Object;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move-result-object v1
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
check-cast v1, Lkotlinx/coroutines/CoroutineScope;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
if-eqz v1, :cond_0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
return-object v1
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
:cond_0
|
2020-09-16 23:45:23 +00:00
|
|
|
new-instance v1, Landroidx/lifecycle/CloseableCoroutineScope;
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-18 17:51:47 +00:00
|
|
|
new-instance v3, Ld0/a/j1;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-18 17:51:47 +00:00
|
|
|
invoke-direct {v3, v2}, Ld0/a/j1;-><init>(Lkotlinx/coroutines/Job;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-18 17:51:47 +00:00
|
|
|
invoke-static {}, Ld0/a/g0;->a()Ld0/a/d1;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move-result-object v2
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-18 17:51:47 +00:00
|
|
|
invoke-virtual {v2}, Ld0/a/d1;->t()Ld0/a/d1;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move-result-object v2
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-static {v3, v2}, Lkotlin/coroutines/CoroutineContext$a$a;->plus(Lkotlin/coroutines/CoroutineContext$a;Lkotlin/coroutines/CoroutineContext;)Lkotlin/coroutines/CoroutineContext;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move-result-object v2
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-direct {v1, v2}, Landroidx/lifecycle/CloseableCoroutineScope;-><init>(Lkotlin/coroutines/CoroutineContext;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-virtual {p0, v0, v1}, Landroidx/lifecycle/ViewModel;->setTagIfAbsent(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
const-string v0, "setTagIfAbsent(JOB_KEY,\n\u2026patchers.Main.immediate))"
|
|
|
|
|
2020-09-18 17:51:47 +00:00
|
|
|
invoke-static {p0, v0}, Lc0/n/c/i;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
check-cast p0, Lkotlinx/coroutines/CoroutineScope;
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|