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

Commit 03e32953 authored by Danny Baumann's avatar Danny Baumann Committed by Steve Kondik
Browse files

Allow adjusting progress on touch events.

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


        setHotspot(x, (int) event.getY());
        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;
    }
    }


    /**
    /**