diff options
| -rw-r--r-- | services/core/java/com/android/server/notification/NotificationManagerService.java | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/services/core/java/com/android/server/notification/NotificationManagerService.java b/services/core/java/com/android/server/notification/NotificationManagerService.java index 7dcd6cd38c25..598597b28aa4 100644 --- a/services/core/java/com/android/server/notification/NotificationManagerService.java +++ b/services/core/java/com/android/server/notification/NotificationManagerService.java @@ -3794,17 +3794,11 @@ public class NotificationManagerService extends SystemService { updateLightsLocked(); } if (buzz || beep || blink) { - if (((record.getSuppressedVisualEffects() - & NotificationListenerService.SUPPRESSED_EFFECT_SCREEN_OFF) != 0)) { - if (DBG) Slog.v(TAG, "Suppressed SystemUI from triggering screen on"); - } else { - MetricsLogger.action(record.getLogMaker() - .setCategory(MetricsEvent.NOTIFICATION_ALERT) - .setType(MetricsEvent.TYPE_OPEN) - .setSubtype((buzz ? 1 : 0) | (beep ? 2 : 0) | (blink ? 4 : 0))); - EventLogTags.writeNotificationAlert(key, - buzz ? 1 : 0, beep ? 1 : 0, blink ? 1 : 0); - } + MetricsLogger.action(record.getLogMaker() + .setCategory(MetricsEvent.NOTIFICATION_ALERT) + .setType(MetricsEvent.TYPE_OPEN) + .setSubtype((buzz ? 1 : 0) | (beep ? 2 : 0) | (blink ? 4 : 0))); + EventLogTags.writeNotificationAlert(key, buzz ? 1 : 0, beep ? 1 : 0, blink ? 1 : 0); } } @@ -4072,6 +4066,8 @@ public class NotificationManagerService extends SystemService { | (mZenModeHelper.shouldSuppressWhenScreenOn() ? SUPPRESSED_EFFECT_SCREEN_ON : 0); record.setSuppressedVisualEffects(suppressed); + } else { + record.setSuppressedVisualEffects(0); } } |