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

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

Merge "Fix bug 5455676 - seek bars without thumbs" into ics-mr0

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