From d84227cf8a4c9304c5bb05ae5195627606357737 Mon Sep 17 00:00:00 2001 From: Danny Baumann Date: Wed, 2 Nov 2016 10:29:05 +0100 Subject: Fix zen priority mode vibration logic. Even if zen priority mode is active and vibration is allowed, we still want to keep notifications with score below the threshold silent. Change-Id: I0a60bbd787e7f98f721129902054ab37fb9f58a7 --- .../com/android/server/notification/NotificationManagerService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'services/core') diff --git a/services/core/java/com/android/server/notification/NotificationManagerService.java b/services/core/java/com/android/server/notification/NotificationManagerService.java index b2b6580..052d010 100644 --- a/services/core/java/com/android/server/notification/NotificationManagerService.java +++ b/services/core/java/com/android/server/notification/NotificationManagerService.java @@ -2735,7 +2735,7 @@ public class NotificationManagerService extends SystemService { boolean canBeep = readyForBeepOrBuzz && canInterrupt; boolean canBuzz = readyForBeepOrBuzz && - (canInterrupt || mZenModeHelper.allowVibrationForNotifications()); + (canInterrupt || (aboveThreshold && mZenModeHelper.allowVibrationForNotifications())); boolean hasValidSound = false; if (canBeep || canBuzz) { -- cgit v1.1