diff options
| author | 2017-05-11 13:03:42 +0000 | |
|---|---|---|
| committer | 2017-05-11 13:03:47 +0000 | |
| commit | d82a04664c2f95be5596f69bdd8c16f11ae0eea1 (patch) | |
| tree | 864978bbbcb97652f7138fe46f7fe166ccc62d6e | |
| parent | 972b2c236ef005eb24cc01719ec4469dba517f74 (diff) | |
| parent | 445cfa83246bd48da19f4906c6a2e853cb0103e8 (diff) | |
Merge "Fix notification_alert logging" into oc-dev
| -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); } } |