AbsSeekBar slightly optimized by removing a redundant snippet of code
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user