Hide redundant foreground service notifications.
If an app with a foreground service has (at least one) FLAG_FOREGROUND notification shown to the user, we allow that to satisfy the requirement that the user be informed about such things. But if the fg notification or its channel is blocked by the user, we show the NOTE_FOREGROUND_SERVICES notification (a/k/a Dianne's Dungeon) provided to us by the activity manager. Note that if even one of the foreground processes for the current user is missing its disclosure notification, the user will see the whole dungeon. Bug: 36891897 Test: runtest -x frameworks/base/packages/SystemUI/tests/src/com/android/systemui/ForegroundServiceControllerTest.java Change-Id: I4f5d96f80b7c1901faadb56661a42d26f746aa88
Loading
Please register or sign in to comment