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

Commit f6967e06 authored by Adrian Roos's avatar Adrian Roos
Browse files

Notification: Respect disabled HUNs on updates

Fixes a bug where HUNs would be posted on updates
even if HUNs had been disabled.

Fixes: 29520322
Change-Id: I3806b9c5b8835a62f7b58bd0a3bbdd55b02eb892
parent e82ac10f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2483,7 +2483,7 @@ public abstract class BaseStatusBar extends SystemUI implements
    }

    protected boolean shouldPeek(Entry entry, StatusBarNotification sbn) {
        if (isDeviceInVrMode()) {
        if (!mUseHeadsUp || isDeviceInVrMode()) {
            return false;
        }

+1 −1
Original line number Diff line number Diff line
@@ -1408,7 +1408,7 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
        if (shadeEntry == null) {
            return;
        }
        boolean isHeadsUped = mUseHeadsUp && shouldPeek(shadeEntry);
        boolean isHeadsUped = shouldPeek(shadeEntry);
        if (isHeadsUped) {
            mHeadsUpManager.showNotification(shadeEntry);
            // Mark as seen immediately