am bd443c01: Merge change 24887 into eclair

Merge commit 'bd443c01a0fadb2d536ffce1c45950f9037cbc56' into eclair-plus-aosp

* commit 'bd443c01a0fadb2d536ffce1c45950f9037cbc56':
  Fix http://b/issue?id=2098873 (drawing glitch in SeekBar).
This commit is contained in:
Daniel Sandler
2009-09-14 18:14:58 -07:00
committed by Android Git Automerger

View File

@@ -301,11 +301,16 @@ public abstract class AbsSeekBar extends ProgressBar {
trackTouchEvent(event);
onStopTrackingTouch();
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;
case MotionEvent.ACTION_CANCEL:
onStopTrackingTouch();
setPressed(false);
invalidate(); // see above explanation
break;
}
return true;