commit | 327bf78a7d1fd0ebf270af04005e9ff2405b59b7 | [log] [tgz] |
---|---|---|
author | Christoph Studer <chstuder@google.com> | Fri Sep 05 11:40:01 2014 +0200 |
committer | Christoph Studer <chstuder@google.com> | Fri Sep 05 14:11:37 2014 +0000 |
tree | c4bbccd76196164db710def17ee3113761aa60d0 | |
parent | d26a20fcd08e2179b7ef58871bfb86d8837830c6 [diff] |
NoMan: Fix speedbump for PRIORITY_MIN intrusives Bug: 16782616 Change-Id: I35fb875bed8cbd90ecd37edc8973c1771be3584d
diff --git a/services/core/java/com/android/server/notification/NotificationManagerService.java b/services/core/java/com/android/server/notification/NotificationManagerService.java index 0794edf..a66d34b 100644 --- a/services/core/java/com/android/server/notification/NotificationManagerService.java +++ b/services/core/java/com/android/server/notification/NotificationManagerService.java
@@ -2636,7 +2636,10 @@ 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; }