am fdc283e9: am 11f4cb1b: Merge "decide interruptions based on current data, not previous data." into mnc-dev
* commit 'fdc283e9231ad6f396441ccf4b50f46d151b28eb': decide interruptions based on current data, not previous data.
This commit is contained in:
@@ -1837,7 +1837,7 @@ public abstract class BaseStatusBar extends SystemUI implements
|
|||||||
logUpdate(entry, n);
|
logUpdate(entry, n);
|
||||||
}
|
}
|
||||||
boolean applyInPlace = shouldApplyInPlace(entry, n);
|
boolean applyInPlace = shouldApplyInPlace(entry, n);
|
||||||
boolean shouldInterrupt = shouldInterrupt(entry);
|
boolean shouldInterrupt = shouldInterrupt(entry, notification);
|
||||||
boolean alertAgain = alertAgain(entry, n);
|
boolean alertAgain = alertAgain(entry, n);
|
||||||
|
|
||||||
entry.notification = notification;
|
entry.notification = notification;
|
||||||
@@ -2009,7 +2009,10 @@ public abstract class BaseStatusBar extends SystemUI implements
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected boolean shouldInterrupt(Entry entry) {
|
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 (mNotificationData.shouldFilterOut(sbn)) {
|
||||||
if (DEBUG) {
|
if (DEBUG) {
|
||||||
Log.d(TAG, "Skipping HUN check for " + sbn.getKey() + " since it's filtered out.");
|
Log.d(TAG, "Skipping HUN check for " + sbn.getKey() + " since it's filtered out.");
|
||||||
|
|||||||
Reference in New Issue
Block a user