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

Commit a0580e4b authored by David van Tonder's avatar David van Tonder Committed by Gerrit Code Review
Browse files

Merge "Allow adjusting progress on touch events." into cm-10.2

parents a650677f d58bb149
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -448,7 +448,14 @@ public abstract class AbsSeekBar extends ProgressBar {
        final int max = getMax();
        progress += scale * max;
        
        setProgress((int) progress, true);
        setProgress(updateTouchProgress(getProgress(), (int) progress), true);
    }

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

    /**