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

Commit 01e95879 authored by Beth Thibodeau's avatar Beth Thibodeau
Browse files

Dismiss shade and keyguard for media buttons that launch an activity

It's possible for a media notification to include a button that opens an
app - like regular notifications, we should dismiss keyguard/shade so
the user sees the activity that was launched.

Bug: 209683600
Test: manual - verify dismissed in both locked and unlocked state

Change-Id: Ibfc232dea69457b9d21c6a2dfec708b8c9f39866
parent 22fa32e3
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -657,7 +657,10 @@ class MediaDataManager(
                }
                val runnable = if (action.actionIntent != null) {
                    Runnable {
                        if (action.isAuthenticationRequired()) {
                        if (action.actionIntent.isActivity) {
                            activityStarter.startPendingIntentDismissingKeyguard(
                                action.actionIntent)
                        } else if (action.isAuthenticationRequired()) {
                            activityStarter.dismissKeyguardThenExecute({
                                var result = sendPendingIntent(action.actionIntent)
                                result