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:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user