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 a323e088b7a8b..5c1401542fb6b 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java @@ -5160,7 +5160,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); }