Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d9294a0a authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "unhide getConsolidatedNotificationPolicy"

parents f13d2b8c d994e2e3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -5872,6 +5872,7 @@ package android.app {
    method public android.service.notification.StatusBarNotification[] getActiveNotifications();
    method public android.app.AutomaticZenRule getAutomaticZenRule(String);
    method public java.util.Map<java.lang.String,android.app.AutomaticZenRule> getAutomaticZenRules();
    method @Nullable public android.app.NotificationManager.Policy getConsolidatedNotificationPolicy();
    method public final int getCurrentInterruptionFilter();
    method public int getImportance();
    method public android.app.NotificationChannel getNotificationChannel(String);
+6 −1
Original line number Diff line number Diff line
@@ -997,8 +997,13 @@ public class NotificationManager {
    }

    /**
     * @hide
     * <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}.
     * </p>
     */
    @Nullable
    public NotificationManager.Policy getConsolidatedNotificationPolicy() {
        INotificationManager service = getService();
        try {