summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Selim Cinek <cinek@google.com> 2017-11-14 10:14:32 -0800
committer Selim Cinek <cinek@google.com> 2017-11-14 11:00:19 -0800
commit9dff23b5110dd9f3ad5e4d16f5e8786eab02cb1d (patch)
treeb37d49dedfa0c280aa6ad67855bd344f48732240
parent404f810355237206d35d01ee5fa000aa5b41346f (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.java9
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());