summaryrefslogtreecommitdiff
path: root/core/java
diff options
context:
space:
mode:
authorBeverly <beverlyt@google.com>2020-03-16 14:17:31 -0400
committerBeverly <beverlyt@google.com>2020-03-17 10:35:46 -0400
commit430b71a149ef84fd0e47cf32aa89754cf7bc5121 (patch)
tree25070b33620a8f64f8d4f6430ebc5bdee0f9cbab /core/java
parent7d528431b9de0b79b7fefbc9400fdd50bb321f1b (diff)
Give mConsolidatedPolicy a default value
- To align mConsolidatedPolicy with mConfig - Update documentation for NotificationManager#getConsolidatedPolicy Test: atest SystemUITests Fixes: 151077630 Change-Id: I9a769ac6907c7cf19e00ca9134183e10f9f864f5
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/app/NotificationManager.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/core/java/android/app/NotificationManager.java b/core/java/android/app/NotificationManager.java
index cbbdf639d036..811b9c082be2 100644
--- a/core/java/android/app/NotificationManager.java
+++ b/core/java/android/app/NotificationManager.java
@@ -1015,14 +1015,15 @@ public class NotificationManager {
}
/**
+ * Returns the currently applied notification policy.
+ *
* <p>
- * Gets the currently applied notification policy. If {@link #getCurrentInterruptionFilter}
- * is equal to {@link #INTERRUPTION_FILTER_ALL}, then the consolidated notification policy
- * will match the default notification policy returned by {@link #getNotificationPolicy}.
+ * If {@link #getCurrentInterruptionFilter} is equal to {@link #INTERRUPTION_FILTER_ALL},
+ * then the consolidated notification policy will match the default notification policy
+ * returned by {@link #getNotificationPolicy}.
* </p>
*/
- @Nullable
- public NotificationManager.Policy getConsolidatedNotificationPolicy() {
+ public @NonNull NotificationManager.Policy getConsolidatedNotificationPolicy() {
INotificationManager service = getService();
try {
return service.getConsolidatedNotificationPolicy();