Skip to content

Commit d84227c

Browse files
maniac103Gerrit Code Review
authored andcommitted
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
1 parent 1722432 commit d84227c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

services/core/java/com/android/server/notification/NotificationManagerService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2735,7 +2735,7 @@ private void buzzBeepBlinkLocked(NotificationRecord record) {
27352735

27362736
boolean canBeep = readyForBeepOrBuzz && canInterrupt;
27372737
boolean canBuzz = readyForBeepOrBuzz &&
2738-
(canInterrupt || mZenModeHelper.allowVibrationForNotifications());
2738+
(canInterrupt || (aboveThreshold && mZenModeHelper.allowVibrationForNotifications()));
27392739
boolean hasValidSound = false;
27402740

27412741
if (canBeep || canBuzz) {

0 commit comments

Comments
 (0)