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

Commit 0a7bfa5a authored by Danny Baumann's avatar Danny Baumann Committed by Steve Kondik
Browse files

Allow adjusting progress on touch events.

Change-Id: Ide0a7ae057a62f3631a32eeaa63f3e04dec5bf54
parent eb52b951
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -847,7 +847,15 @@ public abstract class AbsSeekBar extends ProgressBar {
        progress += scale * max;

        setHotspot(x, y);
        setProgressInternal(Math.round(progress), true, false);
        setProgressInternal(updateTouchProgress(getProgress(),
                    Math.round(progress)), true, false);
    }

    /**
     * @hide
     */
    protected int updateTouchProgress(int lastProgress, int newProgress) {
        return newProgress;
    }

    /**