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

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

Allow adjusting progress on touch events.

Change-Id: Ide0a7ae057a62f3631a32eeaa63f3e04dec5bf54
parent fcd1c336
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -1005,7 +1005,15 @@ public abstract class AbsSeekBar extends ProgressBar {
        progress += scale * range + getMin();

        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;
    }

    /**