Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d3c99323 authored by Lucas Dupin's avatar Lucas Dupin
Browse files

No color spans in notifications when night mode

Apps might use color spans to express hierarchy in their
notifications but they aren't really tuned for dark mode.
This may cause compatibility issues with Q.

Test: visual
Change-Id: Ia7e2a29907f29c4142dc7c873354d16d247ae069
Fixes: 115813048
parent 8750eebf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;