Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d84227cf authored by Danny Baumann's avatar Danny Baumann Committed by Gerrit Code Review
Browse files

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
parent 17224324
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {