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

Commit 9aa4b469 authored by Lucas Dupin's avatar Lucas Dupin Committed by Android (Google) Code Review
Browse files

Merge "Fix ambient color resolution"

parents 6ceb8bf0 1596b659
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -523,8 +523,9 @@ public class ContrastColorUtil {
    }

    public static int resolveAmbientColor(Context context, int notificationColor) {
        final int resolvedColor = resolveColor(context, notificationColor,
                true /* defaultBackgroundIsDark */);
        final int resolvedColor = notificationColor == Notification.COLOR_DEFAULT
                ? context.getColor(com.android.internal.R.color.notification_default_color_dark)
                : notificationColor;

        int color = resolvedColor;
        color = ContrastColorUtil.ensureTextContrastOnBlack(color);