summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Jacqueline Bronger <bronger@google.com> 2023-03-30 13:48:43 +0200
committer Jacqueline Bronger <bronger@google.com> 2023-03-30 13:48:43 +0200
commitc5411556343f46b2c6c183e64e2ec28f135be1d9 (patch)
tree806458850e7901649acba522722e31f0cbe4a86f
parentd00b03a8535fe07dd27b3cbef7f05e63a4a654b8 (diff)
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
-rw-r--r--libs/WindowManager/Shell/src/com/android/wm/shell/pip/tv/TvPipCustomAction.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/WindowManager/Shell/src/com/android/wm/shell/pip/tv/TvPipCustomAction.java b/libs/WindowManager/Shell/src/com/android/wm/shell/pip/tv/TvPipCustomAction.java
index 49d40d3c2611..bca27a5c6636 100644
--- a/libs/WindowManager/Shell/src/com/android/wm/shell/pip/tv/TvPipCustomAction.java
+++ b/libs/WindowManager/Shell/src/com/android/wm/shell/pip/tv/TvPipCustomAction.java
@@ -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()