From b7db9f92e465a3043ffe033c03f0274e118c0efa Mon Sep 17 00:00:00 2001 From: Jaewan Kim Date: Tue, 23 May 2017 18:34:07 +0900 Subject: [PATCH] TV PIP: Dismiss notification when the PIP is over This fixes the regression caused by the previous commit bad26692d05 Set notification TAG and style in TV PIP notification Bug: 37249867 Test: Manual test (PIP notification UI was dismissed after closing th PIP by notification UI, or PIP controller dialog. Also checked that the notification UI was dismissed after the the PIPed activity becomes fullscreen.) Change-Id: I4dc6d1ee8035f89583a5fb49aa6c8fdc40bb49a0 --- .../src/com/android/systemui/pip/tv/PipNotification.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/pip/tv/PipNotification.java b/packages/SystemUI/src/com/android/systemui/pip/tv/PipNotification.java index 30240c36b1d98..c8f418554904e 100644 --- a/packages/SystemUI/src/com/android/systemui/pip/tv/PipNotification.java +++ b/packages/SystemUI/src/com/android/systemui/pip/tv/PipNotification.java @@ -194,7 +194,7 @@ public class PipNotification { private void dismissPipNotification() { mNotified = false; - mNotificationManager.cancel(SystemMessage.NOTE_TV_PIP); + mNotificationManager.cancel(NOTIFICATION_TAG, SystemMessage.NOTE_TV_PIP); } private boolean updateMediaControllerMetadata() {