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

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

Merge "Shows only high priority notifications on lockscreen."

parents 85c659f3 c71e53cc
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -15,6 +15,7 @@
 */
package com.android.systemui.statusbar;

import static android.app.NotificationManager.IMPORTANCE_DEFAULT;
import static android.app.admin.DevicePolicyManager.ACTION_DEVICE_POLICY_MANAGER_STATE_CHANGED;

import android.app.ActivityManager;
@@ -292,7 +293,8 @@ public class NotificationLockscreenUserManagerImpl implements
            return false;
        }
        return mShowLockscreenNotifications
                && !getEntryManager().getNotificationData().isAmbient(sbn.getKey());
                && getEntryManager().getNotificationData().getImportance(sbn.getKey())
                >= IMPORTANCE_DEFAULT;
    }

    private void setShowLockscreenNotifications(boolean show) {