Merge "Don't announce dnd intercepted notfications" into rvc-dev am: d464849e58
Change-Id: I15f396d78bb8b1b055b3cee4c1d7d97c4946328a
This commit is contained in:
@@ -6802,9 +6802,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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user