From c5411556343f46b2c6c183e64e2ec28f135be1d9 Mon Sep 17 00:00:00 2001 From: Jacqueline Bronger Date: Thu, 30 Mar 2023 13:48:43 +0200 Subject: 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 --- .../Shell/src/com/android/wm/shell/pip/tv/TvPipCustomAction.java | 1 + 1 file changed, 1 insertion(+) 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() -- cgit v1.2.3-59-g8ed1b