am aa79a5d5: Merge "Fix bug 5455676 - seek bars without thumbs" into ics-mr0
* commit 'aa79a5d5a3b06b5b4e40a1ab0ccc6697627b1a8d': Fix bug 5455676 - seek bars without thumbs
This commit is contained in:
@@ -335,7 +335,9 @@ public abstract class AbsSeekBar extends ProgressBar {
|
||||
mTouchDownX = event.getX();
|
||||
} else {
|
||||
setPressed(true);
|
||||
invalidate(mThumb.getBounds()); // This may be within the padding region
|
||||
if (mThumb != null) {
|
||||
invalidate(mThumb.getBounds()); // This may be within the padding region
|
||||
}
|
||||
onStartTrackingTouch();
|
||||
trackTouchEvent(event);
|
||||
attemptClaimDrag();
|
||||
@@ -349,7 +351,9 @@ public abstract class AbsSeekBar extends ProgressBar {
|
||||
final float x = event.getX();
|
||||
if (Math.abs(x - mTouchDownX) > mScaledTouchSlop) {
|
||||
setPressed(true);
|
||||
invalidate(mThumb.getBounds()); // This may be within the padding region
|
||||
if (mThumb != null) {
|
||||
invalidate(mThumb.getBounds()); // This may be within the padding region
|
||||
}
|
||||
onStartTrackingTouch();
|
||||
trackTouchEvent(event);
|
||||
attemptClaimDrag();
|
||||
|
||||
Reference in New Issue
Block a user