am 9fca530e: am 7339ed18: am 5f181efd: am fdc283e9: am 11f4cb1b: Merge "decide interruptions based on current data, not previous data." into mnc-dev

* commit '9fca530e3f4491efb5945a2eae44d0899710410b':
  decide interruptions based on current data, not previous data.
This commit is contained in:
Chris Wren
2015-07-27 14:15:32 +00:00
committed by Android Git Automerger

View File

@@ -1940,7 +1940,7 @@ public abstract class BaseStatusBar extends SystemUI implements
logUpdate(entry, n);
}
boolean applyInPlace = shouldApplyInPlace(entry, n);
boolean shouldInterrupt = shouldInterrupt(entry);
boolean shouldInterrupt = shouldInterrupt(entry, notification);
boolean alertAgain = alertAgain(entry, n);
entry.notification = notification;
@@ -2114,7 +2114,10 @@ public abstract class BaseStatusBar extends SystemUI implements
}
protected boolean shouldInterrupt(Entry entry) {
StatusBarNotification sbn = entry.notification;
return shouldInterrupt(entry, entry.notification);
}
protected boolean shouldInterrupt(Entry entry, StatusBarNotification sbn) {
if (mNotificationData.shouldFilterOut(sbn)) {
if (DEBUG) {
Log.d(TAG, "Skipping HUN check for " + sbn.getKey() + " since it's filtered out.");