diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java index 5f0759974709a..5f2bd92d67754 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java @@ -5187,7 +5187,9 @@ public class StatusBar extends SystemUI implements DemoMode, if (parentToCancelFinal != null) { removeNotification(parentToCancelFinal); } - if (shouldAutoCancel(sbn)) { + if (shouldAutoCancel(sbn) + || mRemoteInputManager.getKeysKeptForRemoteInput().contains( + notificationKey)) { // Automatically remove all notifications that we may have kept around longer removeNotification(sbn); }