diff options
| author | 2017-11-14 10:14:32 -0800 | |
|---|---|---|
| committer | 2017-11-14 11:00:19 -0800 | |
| commit | 9dff23b5110dd9f3ad5e4d16f5e8786eab02cb1d (patch) | |
| tree | b37d49dedfa0c280aa6ad67855bd344f48732240 | |
| parent | 404f810355237206d35d01ee5fa000aa5b41346f (diff) | |
Dissallow Heads up when redacted
Change-Id: Ie5069f3fa6b6811da352c60239f48224d106a04f
Fixes: 69137468
Test: phonecall while occluded and with redacted notifications
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java index fa34d4a62d1b..3e391bb8a65c 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java @@ -7250,6 +7250,15 @@ public class StatusBar extends SystemUI implements DemoMode, return false; } + if (mIsOccluded && !isDozing()) { + boolean devicePublic = isLockscreenPublicMode(mCurrentUserId); + boolean userPublic = devicePublic || isLockscreenPublicMode(sbn.getUserId()); + boolean needsRedaction = needsRedaction(entry); + if (userPublic && needsRedaction) { + return false; + } + } + if (sbn.getNotification().fullScreenIntent != null) { if (mAccessibilityManager.isTouchExplorationEnabled()) { if (DEBUG) Log.d(TAG, "No peeking: accessible fullscreen: " + sbn.getKey()); |