Zen Mode messages + calls are ListPreferences (radio button dialog)

Bug: 63077372
Test: ZenModeCallsPreferenceControllerTest
Test: ZenModeMessagesPreferenceControllerTest
Change-Id: I5d2516402b261413c51a1b4eba5153ffadf1459b
This commit is contained in:
Beverly
2018-01-08 16:31:04 -05:00
committed by Beverly Tai
parent 5ff1df89fa
commit daa13a969f
12 changed files with 227 additions and 548 deletions

View File

@@ -103,11 +103,18 @@ public class ZenModeBackend {
}
protected int getPriorityCallSenders() {
return mPolicy.priorityCallSenders;
if (isPriorityCategoryEnabled(NotificationManager.Policy.PRIORITY_CATEGORY_CALLS)) {
return mPolicy.priorityCallSenders;
}
return SOURCE_NONE;
}
protected int getPriorityMessageSenders() {
return mPolicy.priorityMessageSenders;
if (isPriorityCategoryEnabled(NotificationManager.Policy.PRIORITY_CATEGORY_MESSAGES)) {
return mPolicy.priorityMessageSenders;
}
return SOURCE_NONE;
}
protected void saveVisualEffectsPolicy(int category, boolean canBypass) {