Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 42864cfb authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add coroutine start parameter" into main

parents ea745d42 eec6c4c3
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -42,6 +42,8 @@ import javax.inject.Inject
import javax.inject.Named
import javax.inject.Named
import javax.inject.Provider
import javax.inject.Provider
import kotlin.math.max
import kotlin.math.max
import kotlinx.coroutines.CoroutineStart
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.awaitCancellation
import kotlinx.coroutines.awaitCancellation
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.MutableStateFlow
@@ -145,10 +147,11 @@ class FooterActionsViewModel(
            )
            )
        }
        }


        @OptIn(ExperimentalCoroutinesApi::class)
        fun create(lifecycleCoroutineScope: LifecycleCoroutineScope): FooterActionsViewModel {
        fun create(lifecycleCoroutineScope: LifecycleCoroutineScope): FooterActionsViewModel {
            val globalActionsDialogLite = globalActionsDialogLiteProvider.get()
            val globalActionsDialogLite = globalActionsDialogLiteProvider.get()
            if (lifecycleCoroutineScope.isActive) {
            if (lifecycleCoroutineScope.isActive) {
                lifecycleCoroutineScope.launch {
                lifecycleCoroutineScope.launch(start = CoroutineStart.ATOMIC) {
                    try {
                    try {
                        awaitCancellation()
                        awaitCancellation()
                    } finally {
                    } finally {