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

Commit 98e08ee9 authored by Matt Pietal's avatar Matt Pietal
Browse files

PIN unlock buttons - contrast issue

When the dark theme is adjusted, the correct color was not being
reloaded. Without this fix, the back/enter buttons would not be
discernible.

Fixes: 193043693
Test: manual (toggle dark theme)
Change-Id: Ie41549c6b7d8f49be62ce0fb8e7e3b7399784c44
parent 0c36db22
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));
    }
}
}