Merge change 24887 into eclair
* changes: Fix http://b/issue?id=2098873 (drawing glitch in SeekBar).
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user