Skip to content

Commit 11f4cb1

Browse files
cwrenAndroid (Google) Code Review
authored andcommitted
Merge "decide interruptions based on current data, not previous data." into mnc-dev
2 parents 45a0bb1 + 0c274b1 commit 11f4cb1

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1837,7 +1837,7 @@ public void updateNotification(StatusBarNotification notification, RankingMap ra
18371837
logUpdate(entry, n);
18381838
}
18391839
boolean applyInPlace = shouldApplyInPlace(entry, n);
1840-
boolean shouldInterrupt = shouldInterrupt(entry);
1840+
boolean shouldInterrupt = shouldInterrupt(entry, notification);
18411841
boolean alertAgain = alertAgain(entry, n);
18421842

18431843
entry.notification = notification;
@@ -2009,7 +2009,10 @@ private boolean alertAgain(Entry oldEntry, Notification newNotification) {
20092009
}
20102010

20112011
protected boolean shouldInterrupt(Entry entry) {
2012-
StatusBarNotification sbn = entry.notification;
2012+
return shouldInterrupt(entry, entry.notification);
2013+
}
2014+
2015+
protected boolean shouldInterrupt(Entry entry, StatusBarNotification sbn) {
20132016
if (mNotificationData.shouldFilterOut(sbn)) {
20142017
if (DEBUG) {
20152018
Log.d(TAG, "Skipping HUN check for " + sbn.getKey() + " since it's filtered out.");

0 commit comments

Comments
 (0)