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

Commit f33ade02 authored by Anton Potapov's avatar Anton Potapov Committed by Android (Google) Code Review
Browse files

Merge "Make open-close animation wait for the previous one to finish instead...

Merge "Make open-close animation wait for the previous one to finish instead of interrupting it" into main
parents cf1c8eec 2b365ae7
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -49,8 +49,8 @@ import kotlin.math.ceil
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.conflate
import kotlinx.coroutines.flow.filter
import kotlinx.coroutines.flow.mapLatest
import kotlinx.coroutines.flow.onEach
import kotlinx.coroutines.flow.scan
import kotlinx.coroutines.suspendCancellableCoroutine
@@ -162,7 +162,8 @@ constructor(
        var junkListener: DynamicAnimation.OnAnimationUpdateListener? = null

        visibilityModel
            .mapLatest {
            .conflate()
            .onEach {
                when (it) {
                    is VolumeDialogVisibilityModel.Visible -> {
                        tracer.traceVisibilityEnd(it)