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

Commit a000cdc3 authored by Danny Baumann's avatar Danny Baumann Committed by Michael Bestas
Browse files

Allow adjusting progress on touch events.

Change-Id: Ide0a7ae057a62f3631a32eeaa63f3e04dec5bf54
parent 7bbc6eb4
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -667,7 +667,14 @@ public abstract class AbsSeekBar extends ProgressBar {
        progress += scale * max;

        setHotspot(x, (int) event.getY());
        setProgress((int) progress, true);
        setProgress(updateTouchProgress(getProgress(), (int) progress), true);
    }

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

    /**