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

Commit 28fabe5e authored by Alan Viverette's avatar Alan Viverette
Browse files

Apply tint when setting check mark drawable

Bug: 28373624
Change-Id: Ieb5be55c63b168ab18302836f28cd5cedc06c4d8
parent 93536af5
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -185,11 +185,12 @@ public class CheckedTextView extends TextView implements Checkable {
            d.setCallback(this);
            d.setVisible(getVisibility() == VISIBLE, false);
            d.setState(CHECKED_STATE_SET);
            setMinHeight(d.getIntrinsicHeight());

            // Record the intrinsic dimensions when in "checked" state.
            setMinHeight(d.getIntrinsicHeight());
            mCheckMarkWidth = d.getIntrinsicWidth();

            d.setState(getDrawableState());
            applyCheckMarkTint();
        } else {
            mCheckMarkWidth = 0;
        }
@@ -197,6 +198,8 @@ public class CheckedTextView extends TextView implements Checkable {
        mCheckMarkDrawable = d;
        mCheckMarkResource = resId;

        applyCheckMarkTint();

        // Do padding resolution. This will call internalSetPadding() and do a
        // requestLayout() if needed.
        resolvePadding();