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

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

Merge "Check if can resume continuation after CSD warning dialog" into main

parents 42ca72cd ccca070c
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -97,9 +97,11 @@ constructor(
                object : SafetyWarningDialog(context, audioManager) {
                    override fun cleanUp() {
                        onDismissed()
                        if (!continuation.isCompleted) {
                            continuation.resume(Unit)
                        }
                    }
                }
            dialog.show()
            continuation.invokeOnCancellation { dialog.dismiss() }
        }
@@ -114,7 +116,9 @@ constructor(
                warning,
                {
                    onDismissed()
                    if (!continuation.isCompleted) {
                        continuation.resume(Unit)
                    }
                },
                Optional.of(actions),
            )