diff options
Diffstat (limited to 'packages')
-rwxr-xr-x | packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java index 39b6072..26dc7ac 100755 --- a/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java @@ -1902,6 +1902,9 @@ public abstract class BaseStatusBar extends SystemUI implements } private boolean shouldShowOnKeyguard(StatusBarNotification sbn) { + if (!mShowLockscreenNotifications || mNotificationData.isAmbient(sbn.getKey())) { + return false; + } final int showOnKeyguard = mNoMan.getShowNotificationForPackageOnKeyguard( sbn.getPackageName(), sbn.getUid()); boolean isKeyguardAllowedForApp = @@ -1910,8 +1913,7 @@ public abstract class BaseStatusBar extends SystemUI implements isKeyguardAllowedForApp = (showOnKeyguard & Notification.SHOW_NO_ONGOING_NOTI_ON_KEYGUARD) == 0; } - return mShowLockscreenNotifications && !mNotificationData.isAmbient(sbn.getKey()) - && isKeyguardAllowedForApp; + return isKeyguardAllowedForApp; } protected void setZenMode(int mode) { |