OSDN Git Service

Not allowing foreground services to be cleared as children
authorSelim Cinek <cinek@google.com>
Fri, 13 Jan 2017 22:43:43 +0000 (14:43 -0800)
committerSelim Cinek <cinek@google.com>
Sat, 14 Jan 2017 00:49:48 +0000 (16:49 -0800)
commit1d35979f0ada629f192eb1078a29f6eae2c71745
tree4a69e94ab7683e14495f5fd79dde538f6a00256e
parent32992b40493b21f5d5abb4e89592a320f3975210
Not allowing foreground services to be cleared as children

forground service notifications could simply be cleared
when they were sent as notification children and then
the summary was cancelled.

This also cleans up the logic in systemui and only removes
the child if allowed.

The clear all button could also show under certain conditions
where it shouldn't have been shown.

Change-Id: I85998b5342bd75425cc6d68e96391299c4f3d83d
Test: manual
Bug: 33766648
packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
services/core/java/com/android/server/notification/NotificationManagerService.java