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

Commit 17ddd72f authored by Cyril Mottier's avatar Cyril Mottier
Browse files

AbsSeekBar slightly optimized by removing a redundant snippet of code

parent 9181dd4e
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -280,13 +280,7 @@ public abstract class AbsSeekBar extends ProgressBar {
            progress = mTouchProgressOffset;
        }
        
        final int max = getMax();
        progress += scale * max;
        if (progress < 0) {
            progress = 0;
        } else if (progress > max) {
            progress = max;
        }
        
        setProgress((int) progress, true);
    }