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

Commit 78cdc55f authored by Jorn Jacobsson's avatar Jorn Jacobsson Committed by Johan Redestig
Browse files

Consider mScrollX when drawing the checkMarkDrawable

When mScrollX has a very large value the checkmark will not show,
unless it is considered when setting the bounds of the drawable.

Change-Id: Ic4c9bce950816686622baa7330ebb2e69ecfb8e6
parent 6d82f86f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -242,7 +242,7 @@ public class CheckedTextView extends TextView implements Checkable {
                right = width - mBasePadding;
                left = right - mCheckMarkWidth;
            }
            checkMarkDrawable.setBounds( left, top, right, bottom);
            checkMarkDrawable.setBounds(mScrollX + left, top, mScrollX + right, bottom);
            checkMarkDrawable.draw(canvas);
        }
    }