diff options
| author | 2013-01-31 17:52:20 +0100 | |
|---|---|---|
| committer | 2013-05-06 10:09:35 +0200 | |
| commit | 78cdc55f74bbbccf882a7ea5b2b1cf2dc41c87ca (patch) | |
| tree | a87ca8de9efa6ef53b4f62370feda2c201658f55 | |
| parent | 6d82f86fa01800ee0523743366e0dc1113178fd9 (diff) | |
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
| -rw-r--r-- | core/java/android/widget/CheckedTextView.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/widget/CheckedTextView.java b/core/java/android/widget/CheckedTextView.java index de8b80d45ec6..3f080d6f5312 100644 --- a/core/java/android/widget/CheckedTextView.java +++ b/core/java/android/widget/CheckedTextView.java @@ -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); } } |