summaryrefslogtreecommitdiff
path: root/core/java/android/app/Notification.java
diff options
context:
space:
mode:
authorJulia Reynolds <juliacr@google.com>2020-09-16 13:25:03 +0000
committerJulia Reynolds <juliacr@google.com>2020-09-16 15:09:03 +0000
commit8ec5bcb3d0cd9efd27cda5e309755d8b9be2f57c (patch)
tree6e00e3eaa8b153319ed9c49c4505f2756e2f6c59 /core/java/android/app/Notification.java
parent2778b62f1d60ada36655787fa716ee99346f7c68 (diff)
DO NOT MERGE Revert "Remove app ops indicators from notifications"
This reverts commit 2778b62f1d60ada36655787fa716ee99346f7c68. Reason for revert: these icons are still needed Change-Id: I219af393f3d4cd08e431f38a3b66408e12f258bb Bug: 163076432
Diffstat (limited to 'core/java/android/app/Notification.java')
-rw-r--r--core/java/android/app/Notification.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java
index b95a402013ec..76226888bf1a 100644
--- a/core/java/android/app/Notification.java
+++ b/core/java/android/app/Notification.java
@@ -5151,10 +5151,18 @@ public class Notification implements Parcelable
bindHeaderChronometerAndTime(contentView, p);
bindProfileBadge(contentView, p);
bindAlertedIcon(contentView, p);
+ bindActivePermissions(contentView, p);
bindExpandButton(contentView, p);
mN.mUsesStandardHeader = true;
}
+ private void bindActivePermissions(RemoteViews contentView, StandardTemplateParams p) {
+ int color = getNeutralColor(p);
+ contentView.setDrawableTint(R.id.camera, false, color, PorterDuff.Mode.SRC_ATOP);
+ contentView.setDrawableTint(R.id.mic, false, color, PorterDuff.Mode.SRC_ATOP);
+ contentView.setDrawableTint(R.id.overlay, false, color, PorterDuff.Mode.SRC_ATOP);
+ }
+
private void bindExpandButton(RemoteViews contentView, StandardTemplateParams p) {
int color = isColorized(p) ? getPrimaryTextColor(p) : getSecondaryTextColor(p);
contentView.setDrawableTint(R.id.expand_button, false, color,