Skip to content

Commit

Permalink
Seek duration should not be rounded up when opening the settings, eve…
Browse files Browse the repository at this point in the history
…n if inexact seek is disabled
  • Loading branch information
TobiGr committed Mar 25, 2020
1 parent 93b75b6 commit 55c577e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ private void updateSeekOptions() {
durations.setEntryValues(displayedDurationValues.toArray(new CharSequence[0]));
durations.setEntries(displayedDescriptionValues.toArray(new CharSequence[0]));
final int selectedDuration = Integer.parseInt(durations.getValue());
if (selectedDuration / (int) DateUtils.SECOND_IN_MILLIS % 10 == 5) {
if (inexactSeek && selectedDuration / (int) DateUtils.SECOND_IN_MILLIS % 10 == 5) {
final int newDuration = selectedDuration / (int) DateUtils.SECOND_IN_MILLIS + 5;
durations.setValue(Integer.toString(newDuration * (int) DateUtils.SECOND_IN_MILLIS));

Expand Down

0 comments on commit 55c577e

Please sign in to comment.