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

Commit 71ead0e9 authored by Nishith  Khanna's avatar Nishith Khanna
Browse files

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

fix color of emphasized notification

See merge request e/os/android_frameworks_base!336
parents 91093368 1949b502
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -6982,7 +6982,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(
@@ -7028,8 +7028,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(