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

Commit 05c8aada authored by Ioana Alexandru's avatar Ioana Alexandru
Browse files

[Notif redesign] Use onSurface for body text

onSurfaceVariant no longer meets a11y requirements.

Bug: 409496809
Bug: 378660052
Test: manual + screenshot tests
Flag: android.app.notifications_redesign_fonts
Change-Id: I09007d3da23e4fb3f56e94b18218aea5554bd3e2
parent b23fee0c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -15243,7 +15243,9 @@ public class Notification implements Parcelable
                mBackgroundColor = ctx.getColor(R.color.materialColorSurfaceContainerHigh);
                mPrimaryTextColor = ctx.getColor(R.color.materialColorOnSurface);
                mSecondaryTextColor = ctx.getColor(R.color.materialColorOnSurfaceVariant);
                mSecondaryTextColor = Flags.notificationsRedesignFonts()
                        ? mPrimaryTextColor
                        : ctx.getColor(R.color.materialColorOnSurfaceVariant);
                mPrimaryAccentColor = ctx.getColor(R.color.materialColorPrimary);
                mSecondaryAccentColor = ctx.getColor(R.color.materialColorSecondary);
                mTertiaryAccentColor = ctx.getColor(R.color.materialColorTertiary);