Merge "Removing notifications that were kept around longer on click" into pi-dev

This commit is contained in:
Selim Cinek
2018-05-17 01:35:27 +00:00
committed by Android (Google) Code Review

View File

@@ -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);
}