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

Commit d994e2e3 authored by Beverly's avatar Beverly
Browse files

unhide getConsolidatedNotificationPolicy

Test: atest android.app.cts.NotificationManagerTest#testConsolidatedNotificationPolicy
Test: atest android.app.cts.NotificationManagerTest#testConsolidatedNotificationPolicyMultiRules
Bug: 141767508
Change-Id: Ie13223760d1434d8a277ffe99e7e8e07718ae639
parent 5c12df64
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 {