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

Commit cfc7fa7d authored by Beverly Tai's avatar Beverly Tai Committed by Automerger Merge Worker
Browse files

Merge "Don't announce dnd intercepted notfications" into rvc-dev am:...

Merge "Don't announce dnd intercepted notfications" into rvc-dev am: d464849e am: abe0092c am: bebb5723 am: 3d90b083

Original change: undetermined

Change-Id: I1e77c368210da39b4bd3cf446ff4754964c3e9c0
parents 360a4858 3d90b083
Loading
Loading
Loading
Loading
+7 −3
Original line number Original line Diff line number Diff line
@@ -6801,9 +6801,13 @@ public class NotificationManagerService extends SystemService {
        boolean hasValidVibrate = false;
        boolean hasValidVibrate = false;
        boolean hasValidSound = false;
        boolean hasValidSound = false;
        boolean sentAccessibilityEvent = false;
        boolean sentAccessibilityEvent = false;
        // If the notification will appear in the status bar, it should send an accessibility

        // event
        // If the notification will appear in the status bar, it should send an accessibility event
        if (!record.isUpdate && record.getImportance() > IMPORTANCE_MIN) {
        final boolean suppressedByDnd = record.isIntercepted()
                && (record.getSuppressedVisualEffects() & SUPPRESSED_EFFECT_STATUS_BAR) != 0;
        if (!record.isUpdate
                && record.getImportance() > IMPORTANCE_MIN
                && !suppressedByDnd) {
            sendAccessibilityEvent(notification, record.getSbn().getPackageName());
            sendAccessibilityEvent(notification, record.getSbn().getPackageName());
            sentAccessibilityEvent = true;
            sentAccessibilityEvent = true;
        }
        }