Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit acf7d982 authored by Adam Powell's avatar Adam Powell Committed by Android (Google) Code Review
Browse files

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

parents f0f7a913 aa4f5c95
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -335,6 +335,7 @@ public abstract class AbsSeekBar extends ProgressBar {
                    mTouchDownX = event.getX();
                    mTouchDownX = event.getX();
                } else {
                } else {
                    setPressed(true);
                    setPressed(true);
                    invalidate(mThumb.getBounds()); // This may be within the padding region
                    onStartTrackingTouch();
                    onStartTrackingTouch();
                    trackTouchEvent(event);
                    trackTouchEvent(event);
                    attemptClaimDrag();
                    attemptClaimDrag();
@@ -348,6 +349,7 @@ public abstract class AbsSeekBar extends ProgressBar {
                    final float x = event.getX();
                    final float x = event.getX();
                    if (Math.abs(x - mTouchDownX) > mScaledTouchSlop) {
                    if (Math.abs(x - mTouchDownX) > mScaledTouchSlop) {
                        setPressed(true);
                        setPressed(true);
                        invalidate(mThumb.getBounds()); // This may be within the padding region
                        onStartTrackingTouch();
                        onStartTrackingTouch();
                        trackTouchEvent(event);
                        trackTouchEvent(event);
                        attemptClaimDrag();
                        attemptClaimDrag();