.class public final Landroidx/lifecycle/ViewModelKt; .super Ljava/lang/Object; .source "ViewModel.kt" # annotations .annotation runtime Lkotlin/Metadata; d1 = { "\u0000\u0014\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0003\"\u000e\u0010\u0000\u001a\u00020\u0001X\u0082T\u00a2\u0006\u0002\n\u0000\"\u0015\u0010\u0002\u001a\u00020\u0003*\u00020\u00048F\u00a2\u0006\u0006\u001a\u0004\u0008\u0005\u0010\u0006\u00a8\u0006\u0007" } d2 = { "JOB_KEY", "", "viewModelScope", "Lkotlinx/coroutines/CoroutineScope;", "Landroidx/lifecycle/ViewModel;", "getViewModelScope", "(Landroidx/lifecycle/ViewModel;)Lkotlinx/coroutines/CoroutineScope;", "lifecycle-viewmodel-ktx_release" } k = 0x2 mv = { 0x1, 0x8, 0x0 } xi = 0x30 .end annotation # static fields .field private 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, "" invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "androidx.lifecycle.ViewModelCoroutineScope.JOB_KEY" .line 37 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 .line 43 :cond_0 new-instance v1, Landroidx/lifecycle/CloseableCoroutineScope; const/4 v2, 0x1 const/4 v3, 0x0 invoke-static {v3, v2, v3}, Lkotlinx/coroutines/SupervisorKt;->SupervisorJob$default(Lkotlinx/coroutines/Job;ILjava/lang/Object;)Lkotlinx/coroutines/CompletableJob; move-result-object v2 invoke-static {}, Lkotlinx/coroutines/Dispatchers;->getMain()Lkotlinx/coroutines/MainCoroutineDispatcher; move-result-object v3 invoke-virtual {v3}, Lkotlinx/coroutines/MainCoroutineDispatcher;->getImmediate()Lkotlinx/coroutines/MainCoroutineDispatcher; move-result-object v3 check-cast v3, Lkotlin/coroutines/CoroutineContext; invoke-interface {v2, v3}, Lkotlinx/coroutines/CompletableJob;->plus(Lkotlin/coroutines/CoroutineContext;)Lkotlin/coroutines/CoroutineContext; move-result-object v2 invoke-direct {v1, v2}, Landroidx/lifecycle/CloseableCoroutineScope;->(Lkotlin/coroutines/CoroutineContext;)V .line 41 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(\n \u2026Main.immediate)\n )" invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V check-cast p0, Lkotlinx/coroutines/CoroutineScope; return-object p0 .end method