OSDN Git Service

Hide some previously exempt notifications
authorJulia Reynolds <juliacr@google.com>
Tue, 1 May 2018 21:05:33 +0000 (17:05 -0400)
committerJulia Reynolds <juliacr@google.com>
Thu, 3 May 2018 19:26:18 +0000 (19:26 +0000)
commit25926af53740667b215457bbde0bda679b400078
treefed36370324984cad27f578c33c8efdfcc7f7fc4
parentdbeff868c3caa4aa4abe0a6ddb4e2a5afc18cf61
Hide some previously exempt notifications

Some notifications are exempt from DND visual suppression,
like foreground services. If a notification is tagged as a
category that's explicitly mentioned in DND settings (like calls),
exempt that notification from DND exemption, or, hide it.

Test: atest SystemUITests
Change-Id: I661e6d99d09adcb381aef04cccdf93c9810d19b2
Fixes: 78908945
packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
packages/SystemUI/tests/src/com/android/systemui/statusbar/NotificationDataTest.java