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

Commit a449d215 authored by Nishith  Khanna's avatar Nishith Khanna
Browse files

Merge branch '4212-a14-notif_button' into 'v4.0-a14'

fix color of emphasized notification

See merge request e/os/android_frameworks_base!335
parents 203a00b0 bf6f6f70
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -6462,7 +6462,7 @@ public class Notification implements Parcelable
            if (emphasizedMode) {
                // change the background bgColor
                CharSequence title = action.title;
                int buttonFillColor = getColors(p).getSecondaryAccentColor();
                int buttonFillColor = getColors(p).getPrimaryAccentColor();
                if (tombstone) {
                    buttonFillColor = setAlphaComponentByFloatDimen(mContext,
                            ContrastColorUtil.resolveSecondaryColor(
@@ -6492,8 +6492,7 @@ public class Notification implements Parcelable
                } else {
                    button.setTextViewText(R.id.action0, label);
                }
                int textColor = ContrastColorUtil.resolvePrimaryColor(mContext,
                        buttonFillColor, mInNightMode);
                int textColor = getColors(p).getBackgroundColor();
                if (tombstone) {
                    textColor = setAlphaComponentByFloatDimen(mContext,
                            ContrastColorUtil.resolveSecondaryColor(