Merge change 24887 into eclair

* changes:
  Fix http://b/issue?id=2098873 (drawing glitch in SeekBar).
This commit is contained in:
Android (Google) Code Review
2009-09-14 21:07:00 -04:00

View File

@@ -301,11 +301,16 @@ public abstract class AbsSeekBar extends ProgressBar {
trackTouchEvent(event); trackTouchEvent(event);
onStopTrackingTouch(); onStopTrackingTouch();
setPressed(false); setPressed(false);
// ProgressBar doesn't know to repaint the thumb drawable
// in its inactive state when the touch stops (because the
// value has not apparently changed)
invalidate();
break; break;
case MotionEvent.ACTION_CANCEL: case MotionEvent.ACTION_CANCEL:
onStopTrackingTouch(); onStopTrackingTouch();
setPressed(false); setPressed(false);
invalidate(); // see above explanation
break; break;
} }
return true; return true;