commit | 1a1ecfcf5ae32482aee23ebc7c4389daf164cadd | [log] [tgz] |
---|---|---|
author | Adrian Roos <roosa@google.com> | Mon Apr 17 11:17:59 2017 -0700 |
committer | Adrian Roos <roosa@google.com> | Mon Apr 17 15:41:09 2017 -0700 |
tree | 9b3ace2e9b912aa87af361556af2c9f197f569a7 | |
parent | befd33975c2f57a541b62668e4d9976e149db73b [diff] [blame] |
AOD: Implement redacted notificatinos Test: Turn on "show sensitive notifications on lockscreen", receive notification, observe AOD Bug: 36610748 Change-Id: I981ef4cea7cefc76dcd55ebad9d05c758927dabb
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java b/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java index 677642e..cc91753 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
@@ -1115,6 +1115,10 @@ mNotificationInflater.setInflateExceptionHandler(inflateExceptionHandler); } + public void setNeedsRedaction(boolean needsRedaction) { + mNotificationInflater.setRedactAmbient(needsRedaction); + } + public interface ExpansionLogger { public void logNotificationExpansion(String key, boolean userAction, boolean expanded); }