summaryrefslogtreecommitdiff
path: root/core/java
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2018-09-27 23:01:32 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2018-09-27 23:01:32 +0000
commit23ca916dca3e1633d59e90f3afeef629edebd3f9 (patch)
tree2c0d8a8f07a3122867178090609d11cb08b1bc00 /core/java
parent7913b20eb0b4be37981a9dd319ef0b5397445d30 (diff)
parentd3c99323125106eab7d9649f7238754df706e90f (diff)
Merge "No color spans in notifications when night mode"
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/app/Notification.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java
index 3638bc48d2b5..81df447816d1 100644
--- a/core/java/android/app/Notification.java
+++ b/core/java/android/app/Notification.java
@@ -4440,7 +4440,7 @@ public class Notification implements Parcelable
}
private CharSequence processTextSpans(CharSequence text) {
- if (hasForegroundColor()) {
+ if (hasForegroundColor() || mInNightMode) {
return ContrastColorUtil.clearColorSpans(text);
}
return text;