am acf7d982: Merge "Fix bug 5434403 - invalidation problem with seek bars at edges" into ics-mr0

* commit 'acf7d982ae981c039ec8445a30da91be0a4fbbc5':
  Fix bug 5434403 - invalidation problem with seek bars at edges
This commit is contained in:
Adam Powell
2011-10-11 16:16:09 -07:00
committed by Android Git Automerger

View File

@@ -335,6 +335,7 @@ public abstract class AbsSeekBar extends ProgressBar {
mTouchDownX = event.getX();
} else {
setPressed(true);
invalidate(mThumb.getBounds()); // This may be within the padding region
onStartTrackingTouch();
trackTouchEvent(event);
attemptClaimDrag();
@@ -348,6 +349,7 @@ 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
onStartTrackingTouch();
trackTouchEvent(event);
attemptClaimDrag();