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

Commit 7f7d007f authored by Nishith  Khanna's avatar Nishith Khanna
Browse files

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

fix color of emphasized notification

See merge request e/os/android_frameworks_base!337
parents 7df6e422 d7c044b1
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -7172,7 +7172,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(
@@ -7218,8 +7218,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(