summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com
diff options
context:
space:
mode:
authorChris Wren <cwren@android.com>2015-07-27 13:10:11 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-07-27 13:10:11 +0000
commit11f4cb1bccf47a0e985be6948f30709ba40f4522 (patch)
treeb9e9fa3fe7e359009ce27c53c299b89c7084df23 /packages/SystemUI/src/com
parent45a0bb18fec5b137a540e160cecd4ffd091098d9 (diff)
parent0c274b107ca5211bdaf06c4144b5b30eca1486bf (diff)
downloadframeworks_base-11f4cb1bccf47a0e985be6948f30709ba40f4522.zip
frameworks_base-11f4cb1bccf47a0e985be6948f30709ba40f4522.tar.gz
frameworks_base-11f4cb1bccf47a0e985be6948f30709ba40f4522.tar.bz2
Merge "decide interruptions based on current data, not previous data." into mnc-dev
Diffstat (limited to 'packages/SystemUI/src/com')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
index a2e6632..41b37b0 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
@@ -1837,7 +1837,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;
@@ -2009,7 +2009,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.");