diff options
author | Chris Wren <cwren@android.com> | 2015-07-17 10:34:53 -0400 |
---|---|---|
committer | Chris Wren <cwren@android.com> | 2015-07-17 10:40:28 -0400 |
commit | 0c274b107ca5211bdaf06c4144b5b30eca1486bf (patch) | |
tree | 542a70d87f1716b692ed6e67d2f667bc40311a1e /packages/SystemUI/src/com/android/systemui | |
parent | a36c5580c503da98c137c5bf9f52a719a131d2a9 (diff) | |
download | frameworks_base-0c274b107ca5211bdaf06c4144b5b30eca1486bf.zip frameworks_base-0c274b107ca5211bdaf06c4144b5b30eca1486bf.tar.gz frameworks_base-0c274b107ca5211bdaf06c4144b5b30eca1486bf.tar.bz2 |
decide interruptions based on current data, not previous data.
shouldInterrupt() now takes an optional StatusBarNotification object that will
be used instead of the one on the entry.
Bug:22462619
Change-Id: I5a1d9205b22ad733d5bc582693edad26518e1959
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java | 7 |
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 f62dc59..9d5b19d 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java @@ -1833,7 +1833,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; @@ -2005,7 +2005,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."); |