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
This commit is contained in:
Jacqueline Bronger
2023-03-30 13:48:43 +02:00
parent d00b03a853
commit c541155634

View File

@@ -86,6 +86,7 @@ public class TvPipCustomAction extends TvPipAction {
Bundle extras = new Bundle();
extras.putCharSequence(Notification.EXTRA_PICTURE_CONTENT_DESCRIPTION,
mRemoteAction.getContentDescription());
extras.putBoolean(Notification.EXTRA_CONTAINS_CUSTOM_VIEW, true);
builder.addExtras(extras);
builder.setSemanticAction(isCloseAction()