diff options
author | d34d <clark@cyngn.com> | 2016-02-15 15:48:18 -0800 |
---|---|---|
committer | Clark Scheff <clark@cyngn.com> | 2016-02-18 12:14:36 -0800 |
commit | 7676d07cdc4a2d7c641a03062f29e3583fd1bc84 (patch) | |
tree | c7d2fb336374576842d49757c84a6cbca2390899 /packages/SystemUI/src | |
parent | 6dc6966659c069ad716693d80d043d129f476ec4 (diff) | |
download | frameworks_base-7676d07cdc4a2d7c641a03062f29e3583fd1bc84.zip frameworks_base-7676d07cdc4a2d7c641a03062f29e3583fd1bc84.tar.gz frameworks_base-7676d07cdc4a2d7c641a03062f29e3583fd1bc84.tar.bz2 |
SysUI: Keep sensitive notifications redacted for swipe
If the user has selected to hide private data in notifications and
switches to Swipe without changing the notification redaction, the
notifications should remain redacted until the user changes back
to show all notification content.
Change-Id: Ic0f6e01cf7c09d4f8ed7e8735158a6fc093b8dcc
TICKET: YAM-103
Diffstat (limited to 'packages/SystemUI/src')
-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 6ab9ed8..d5875fe 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java @@ -4517,7 +4517,8 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode, public void updateStackScrollerState(boolean goingToFullShade) { if (mStackScroller == null) return; boolean onKeyguard = mState == StatusBarState.KEYGUARD; - mStackScroller.setHideSensitive(isLockscreenPublicMode(), goingToFullShade); + mStackScroller.setHideSensitive(onKeyguard + && !userAllowsPrivateNotificationsInPublic(mCurrentUserId), goingToFullShade); mStackScroller.setDimmed(onKeyguard, false /* animate */); mStackScroller.setExpandingEnabled(!onKeyguard); ActivatableNotificationView activatedChild = mStackScroller.getActivatedChild(); |