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

Commit eb6cfc1b authored by Matt Pietal's avatar Matt Pietal Committed by Automerger Merge Worker
Browse files

Merge "PIN unlock buttons - contrast issue" into sc-dev am: 4bdb302f

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15286561

Change-Id: I2e29cc1e7d0e1516d290cf8f59d74b5c856f49e2
parents 5e3e0ab4 4bdb302f
Loading
Loading
Loading
Loading
+5 −8
Original line number Diff line number Diff line
@@ -88,13 +88,10 @@ public class NumPadButton extends AlphaOptimizedImageButton {
     * Reload colors from resources.
     **/
    public void reloadColors() {
        if (mAnimator != null) {
            mAnimator.reloadColors(getContext());
	} else {
            // Needed for old style pin
            int textColor = Utils.getColorAttr(getContext(), android.R.attr.textColorPrimary)
                    .getDefaultColor();
        if (mAnimator != null) mAnimator.reloadColors(getContext());

        int textColor = Utils.getColorAttrDefaultColor(getContext(),
                android.R.attr.colorBackground);
        ((VectorDrawable) getDrawable()).setTintList(ColorStateList.valueOf(textColor));
    }
}
}