diff options
author | d34d <clark@cyngn.com> | 2016-03-09 12:25:39 -0800 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2016-03-09 15:13:53 -0800 |
commit | 23e27fcc743aa09a832ea140512bc11e50e6c26c (patch) | |
tree | c42e0daf3fec3a8c6262975398871db4ecb6c390 /packages/SystemUI | |
parent | 0f1bc6fee9f2ee2bebe4c189b44a566ad9a29524 (diff) | |
download | frameworks_base-23e27fcc743aa09a832ea140512bc11e50e6c26c.zip frameworks_base-23e27fcc743aa09a832ea140512bc11e50e6c26c.tar.gz frameworks_base-23e27fcc743aa09a832ea140512bc11e50e6c26c.tar.bz2 |
SysUI: Fix hiding sensitive notification behavior
This should resolve the issue where sensitive notifications continue
to hide sensitive information even when unlocked.
Per app hiding of sensitive notificiations should continue to work
as well as hiding sensitive information when locked and that setting
is enabled.
Change-Id: Ib19f0709941714df6c337a7b11523d71b37c5ca2
TICKET: CYNGNOS-2176
Diffstat (limited to 'packages/SystemUI')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java | 3 |
1 files changed, 2 insertions, 1 deletions
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 816c771..a64f6d8 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java @@ -4538,7 +4538,8 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode, if (mStackScroller == null) return; boolean onKeyguard = mState == StatusBarState.KEYGUARD; mStackScroller.setHideSensitive(isLockscreenPublicMode() - || !userAllowsPrivateNotificationsInPublic(mCurrentUserId), goingToFullShade); + || (!userAllowsPrivateNotificationsInPublic(mCurrentUserId) && onKeyguard), + goingToFullShade); mStackScroller.setDimmed(onKeyguard, false /* animate */); mStackScroller.setExpandingEnabled(!onKeyguard); ActivatableNotificationView activatedChild = mStackScroller.getActivatedChild(); |