summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI
diff options
context:
space:
mode:
authord34d <clark@cyngn.com>2016-02-15 15:48:18 -0800
committerClark Scheff <clark@cyngn.com>2016-02-18 12:14:36 -0800
commit7676d07cdc4a2d7c641a03062f29e3583fd1bc84 (patch)
treec7d2fb336374576842d49757c84a6cbca2390899 /packages/SystemUI
parent6dc6966659c069ad716693d80d043d129f476ec4 (diff)
downloadframeworks_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')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java3
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();