summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2018-04-18 14:01:01 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2018-04-18 14:01:01 +0000
commit03ddb28cda9ee91245f24fdfb4839a6e68e3bced (patch)
tree13a318dd512276c1ab5f0d8fa259be95001b1579 /core/java/android
parentb1b2e0e92c2abe830dfe77cd398179c1e4bbb6c5 (diff)
parent6013e5cc961b64c7cbddb59dbef9fb249d364e9e (diff)
Merge "Color and text changes" into pi-dev
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/app/Notification.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java
index 8ee443b47b1a..22da924d1b8f 100644
--- a/core/java/android/app/Notification.java
+++ b/core/java/android/app/Notification.java
@@ -4574,13 +4574,14 @@ public class Notification implements Parcelable
bindHeaderChronometerAndTime(contentView);
bindProfileBadge(contentView);
}
- bindActivePermissions(contentView);
+ bindActivePermissions(contentView, ambient);
bindExpandButton(contentView);
mN.mUsesStandardHeader = true;
}
- private void bindActivePermissions(RemoteViews contentView) {
- int color = isColorized() ? getPrimaryTextColor() : getSecondaryTextColor();
+ private void bindActivePermissions(RemoteViews contentView, boolean ambient) {
+ int color = ambient ? resolveAmbientColor()
+ : isColorized() ? getPrimaryTextColor() : resolveContrastColor();
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);