diff options
Diffstat (limited to 'core/java/android/app/NotificationManager.java')
| -rw-r--r-- | core/java/android/app/NotificationManager.java | 11 |
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(); |
