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

Commit 4bdb302f authored by Matt Pietal's avatar Matt Pietal Committed by Android (Google) Code Review
Browse files

Merge "PIN unlock buttons - contrast issue" into sc-dev

parents 35c56e88 98e08ee9
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));
    }
}
}