summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Jorn Jacobsson <jorn.jacobsson@sonymobile.com> 2013-01-31 17:52:20 +0100
committer Johan Redestig <johan.redestig@sonymobile.com> 2013-05-06 10:09:35 +0200
commit78cdc55f74bbbccf882a7ea5b2b1cf2dc41c87ca (patch)
treea87ca8de9efa6ef53b4f62370feda2c201658f55
parent6d82f86fa01800ee0523743366e0dc1113178fd9 (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.java2
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);
}
}