am 1b26cc5b: Merge "LED should not be blocked by interruption filtering." into lmp-mr1-dev
* commit '1b26cc5b7ab5733b94741f17c84eb4b140eaf045': LED should not be blocked by interruption filtering.
This commit is contained in:
@@ -1869,8 +1869,8 @@ public class NotificationManagerService extends SystemService {
|
|||||||
final Notification notification = record.sbn.getNotification();
|
final Notification notification = record.sbn.getNotification();
|
||||||
|
|
||||||
// Should this notification make noise, vibe, or use the LED?
|
// Should this notification make noise, vibe, or use the LED?
|
||||||
final boolean canInterrupt = (record.score >= SCORE_INTERRUPTION_THRESHOLD) &&
|
final boolean aboveThreshold = record.score >= SCORE_INTERRUPTION_THRESHOLD;
|
||||||
!record.isIntercepted();
|
final boolean canInterrupt = aboveThreshold && !record.isIntercepted();
|
||||||
if (DBG || record.isIntercepted())
|
if (DBG || record.isIntercepted())
|
||||||
Slog.v(TAG,
|
Slog.v(TAG,
|
||||||
"pkg=" + record.sbn.getPackageName() + " canInterrupt=" + canInterrupt +
|
"pkg=" + record.sbn.getPackageName() + " canInterrupt=" + canInterrupt +
|
||||||
@@ -2009,7 +2009,7 @@ public class NotificationManagerService extends SystemService {
|
|||||||
if (mLedNotification != null && record.getKey().equals(mLedNotification.getKey())) {
|
if (mLedNotification != null && record.getKey().equals(mLedNotification.getKey())) {
|
||||||
mLedNotification = null;
|
mLedNotification = null;
|
||||||
}
|
}
|
||||||
if ((notification.flags & Notification.FLAG_SHOW_LIGHTS) != 0 && canInterrupt) {
|
if ((notification.flags & Notification.FLAG_SHOW_LIGHTS) != 0 && aboveThreshold) {
|
||||||
mLights.add(record.getKey());
|
mLights.add(record.getKey());
|
||||||
updateLightsLocked();
|
updateLightsLocked();
|
||||||
if (mUseAttentionLight) {
|
if (mUseAttentionLight) {
|
||||||
|
|||||||
Reference in New Issue
Block a user