NoMan: Fix speedbump for PRIORITY_MIN intrusives

Bug: 16782616
Change-Id: I35fb875bed8cbd90ecd37edc8973c1771be3584d
This commit is contained in:
Christoph Studer
2014-09-05 11:40:01 +02:00
parent d26a20fcd0
commit 327bf78a7d

View File

@@ -2636,7 +2636,10 @@ public class NotificationManagerService extends SystemService {
visibilityOverrides.putInt(record.sbn.getKey(),
record.getPackageVisibilityOverride());
}
// Find first min-prio notification for speedbump placement.
if (speedBumpIndex == -1 &&
// Intrusiveness trumps priority, hence ignore intrusives.
!record.isRecentlyIntrusive() &&
record.sbn.getNotification().priority == Notification.PRIORITY_MIN) {
speedBumpIndex = keys.size() - 1;
}