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

Commit c5411556 authored by Jacqueline Bronger's avatar Jacqueline Bronger
Browse files

Tv PiP: allow launcher to identify custom actions.

Adds a boolean extra to custom actions (app defined or media actions).

Bug: 274444475
Test: manual - custom actions should have the extra set to true
Change-Id: I98c1dba5ea8ef56b9c8b346f1d00deabde5d1dc1
parent d00b03a8
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -86,6 +86,7 @@ public class TvPipCustomAction extends TvPipAction {
        Bundle extras = new Bundle();
        Bundle extras = new Bundle();
        extras.putCharSequence(Notification.EXTRA_PICTURE_CONTENT_DESCRIPTION,
        extras.putCharSequence(Notification.EXTRA_PICTURE_CONTENT_DESCRIPTION,
                mRemoteAction.getContentDescription());
                mRemoteAction.getContentDescription());
        extras.putBoolean(Notification.EXTRA_CONTAINS_CUSTOM_VIEW, true);
        builder.addExtras(extras);
        builder.addExtras(extras);


        builder.setSemanticAction(isCloseAction()
        builder.setSemanticAction(isCloseAction()