commit | ad6b35fd903f4d4a4093e951f5dda6f4b51f05d1 | [log] [tgz] |
---|---|---|
author | Julia Reynolds <juliacr@google.com> | Mon Sep 25 09:44:17 2017 -0400 |
committer | Julia Reynolds <juliacr@google.com> | Mon Sep 25 09:44:17 2017 -0400 |
tree | c12695309e114e5bacfa2c5238711437ee124d11 | |
parent | 7cf51b83288128056c305e9a3e252fcccc0224a3 [diff] |
Properly set notification policy Test: this Change-Id: If20c0ee219f3c4399ce5bcf4416379a52db10d86 Fixes: 65214301
diff --git a/apps/CtsVerifier/src/com/android/cts/verifier/notifications/AttentionManagementVerifierActivity.java b/apps/CtsVerifier/src/com/android/cts/verifier/notifications/AttentionManagementVerifierActivity.java index 7cfa040..6a1ce2c 100644 --- a/apps/CtsVerifier/src/com/android/cts/verifier/notifications/AttentionManagementVerifierActivity.java +++ b/apps/CtsVerifier/src/com/android/cts/verifier/notifications/AttentionManagementVerifierActivity.java
@@ -314,7 +314,8 @@ void setUp() { mNm.setInterruptionFilter(NotificationManager.INTERRUPTION_FILTER_PRIORITY); NotificationManager.Policy policy = mNm.getNotificationPolicy(); - policy = new NotificationManager.Policy(policy.priorityCategories, + policy = new NotificationManager.Policy(policy.priorityCategories + | NotificationManager.Policy.PRIORITY_CATEGORY_MESSAGES, policy.priorityCallSenders, NotificationManager.Policy.PRIORITY_SENDERS_STARRED); mNm.setNotificationPolicy(policy);