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

Commit 06ba1643 authored by Ioana Alexandru's avatar Ioana Alexandru
Browse files

[Notif redesign] Use onSurface for hybrid notif text

The color for all other text in notifications should have been updated
in I09007d3da23e4fb3f56e94b18218aea5554bd3e2 since onSurfaceVariant no
longer meets a11y requirements, but this one was declared separately.

Bug: 409496809
Test: manual
Flag: android.app.notifications_redesign_fonts
Change-Id: I93fb44af2e7617fea04c43d89350268a76fde034
parent 8d4fa82b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@

package com.android.systemui.statusbar.notification.row;

import static android.app.Flags.notificationsRedesignFonts;
import static android.app.Notification.COLOR_INVALID;

import android.annotation.Nullable;
@@ -115,7 +116,7 @@ public class HybridNotificationView extends AlphaOptimizedLinearLayout

    private void resolveThemeTextColors() {
        mPrimaryTextColor = mContext.getColor(com.android.internal.R.color.materialColorOnSurface);
        mSecondaryTextColor = mContext.getColor(
        mSecondaryTextColor = notificationsRedesignFonts() ? mPrimaryTextColor : mContext.getColor(
                com.android.internal.R.color.materialColorOnSurfaceVariant);
    }