diff options
author | Christoph Studer <chstuder@google.com> | 2014-07-31 14:51:13 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-07-25 23:00:08 +0000 |
commit | 70d26c2d9c448615ac8019a8885881d83b97006e (patch) | |
tree | 699258e51968bc6ba05f4ac7f147b0997c5a40e8 /packages | |
parent | 61d37f6d1c755263cbc4d9732d9d960e5bf8503d (diff) | |
parent | 1529e019e1aae7f9db1c850d9940b01d4067d700 (diff) | |
download | frameworks_base-70d26c2d9c448615ac8019a8885881d83b97006e.zip frameworks_base-70d26c2d9c448615ac8019a8885881d83b97006e.tar.gz frameworks_base-70d26c2d9c448615ac8019a8885881d83b97006e.tar.bz2 |
Merge "SysUI: Respect "no notifs on lockscreen" setting" into lmp-dev
Diffstat (limited to 'packages')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java | 9 | ||||
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java | 8 |
2 files changed, 3 insertions, 14 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java index 8eca0ae..4b037d2 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java @@ -220,7 +220,7 @@ public abstract class BaseStatusBar extends SystemUI implements setZenMode(mode); final boolean show = Settings.Global.getInt(mContext.getContentResolver(), Settings.Global.LOCK_SCREEN_SHOW_NOTIFICATIONS, 1) != 0; - setShowLockscreenNotifications(show); + mShowLockscreenNotifications = show; } }; @@ -1423,7 +1423,8 @@ public abstract class BaseStatusBar extends SystemUI implements } private boolean shouldShowOnKeyguard(StatusBarNotification sbn) { - return sbn.getNotification().priority >= Notification.PRIORITY_LOW; + return mShowLockscreenNotifications && + sbn.getNotification().priority >= Notification.PRIORITY_LOW; } protected void setZenMode(int mode) { @@ -1432,10 +1433,6 @@ public abstract class BaseStatusBar extends SystemUI implements updateNotifications(); } - protected void setShowLockscreenNotifications(boolean show) { - mShowLockscreenNotifications = show; - } - protected abstract void haltTicker(); protected abstract void setAreThereNotifications(); protected abstract void updateNotifications(); diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java index 5e54b30..0284036 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java @@ -537,12 +537,6 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode, }; @Override - protected void setShowLockscreenNotifications(boolean show) { - super.setShowLockscreenNotifications(show); - updateStackScrollerState(); - } - - @Override public void start() { mDisplay = ((WindowManager)mContext.getSystemService(Context.WINDOW_SERVICE)) .getDefaultDisplay(); @@ -3435,8 +3429,6 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode, if (mStackScroller == null) return; boolean onKeyguard = mState == StatusBarState.KEYGUARD; mStackScroller.setDimmed(onKeyguard, false /* animate */); - mStackScroller.setVisibility(!mShowLockscreenNotifications && onKeyguard - ? View.INVISIBLE : View.VISIBLE); mStackScroller.setExpandingEnabled(!onKeyguard); ActivatableNotificationView activatedChild = mStackScroller.getActivatedChild(); mStackScroller.setActivatedChild(null); |