OSDN Git Service

Update clearData flow for notification settings
authorJulia Reynolds <juliacr@google.com>
Fri, 19 Apr 2019 15:08:27 +0000 (11:08 -0400)
committerJulia Reynolds <juliacr@google.com>
Mon, 22 Apr 2019 13:20:40 +0000 (13:20 +0000)
commit7af51c568bdf4f0c5992ddc4b09225f40d3b0e87
tree7c20100a1ceaea62c804b46aeb9198b8ac85916d
parentfc0f0ea6903ee69c6b077ec3236980b928f9acdb
Update clearData flow for notification settings

Some settings need to be maintained (like whether the app
is the default dialer), so don't just wipe away all of the settings.

Test: atest; clear data on default dialer and ensure missed call
notification is still in priority bucket
Fixes: 127855529

Change-Id: I9e0c2fa1ceb371fe98a4f25f3573f043e9e2c1c9
services/core/java/com/android/server/notification/NotificationManagerService.java
services/core/java/com/android/server/notification/PreferencesHelper.java
services/tests/uiservicestests/src/com/android/server/notification/PreferencesHelperTest.java