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

Commit 556f54c7 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 am: eb6cfc1b

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

Change-Id: Idadcc48e9755df48e983523e239d74d1e44660c0
parents 8aa8ef82 eb6cfc1b
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));
    }
}
}