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

Commit 155258cc authored by Jorge Ruesga's avatar Jorge Ruesga Committed by Gerrit Code Review
Browse files

Merge "Round off when calculate next step in Seekbar" into cm-11.0

parents 4294ec0b 90cc9d74
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -292,7 +292,7 @@ public abstract class AbsSeekBar extends ProgressBar {
        // The extra space for the thumb to move on the track
        available += mThumbOffset * 2;

        int thumbPos = (int) (scale * available);
        int thumbPos = (int) (scale * available + 0.5f);

        int topBound, bottomBound;
        if (gap == Integer.MIN_VALUE) {