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

Unverified Commit eda2059d authored by Danny Baumann's avatar Danny Baumann Committed by Adrian DC
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.

RM-290

Change-Id: I0a60bbd787e7f98f721129902054ab37fb9f58a7
parent fac6a4e4
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -2779,7 +2779,7 @@ public class NotificationManagerService extends SystemService {


        boolean canBeep = readyForBeepOrBuzz && canInterrupt;
        boolean canBeep = readyForBeepOrBuzz && canInterrupt;
        boolean canBuzz = readyForBeepOrBuzz &&
        boolean canBuzz = readyForBeepOrBuzz &&
            (canInterrupt || mZenModeHelper.allowVibrationForNotifications());
            (canInterrupt || (aboveThreshold && mZenModeHelper.allowVibrationForNotifications()));
        boolean hasValidSound = false;
        boolean hasValidSound = false;


        if (canBeep || canBuzz) {
        if (canBeep || canBuzz) {