Merge pull request #7901 from Stypox/player-small-refactor

Small refactor in player class
This commit is contained in:
litetex 2022-02-21 20:48:03 +01:00 committed by GitHub
commit 1030e09fc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -599,8 +599,7 @@ public final class Player implements
*/ */
private void setupPlayerSeekOverlay() { private void setupPlayerSeekOverlay() {
binding.fastSeekOverlay binding.fastSeekOverlay
.seekSecondsSupplier( .seekSecondsSupplier(() -> retrieveSeekDurationFromPreferences(this) / 1000)
() -> (int) (retrieveSeekDurationFromPreferences(this) / 1000.0f))
.performListener(new PlayerFastSeekOverlay.PerformListener() { .performListener(new PlayerFastSeekOverlay.PerformListener() {
@Override @Override
@ -613,6 +612,7 @@ public final class Player implements
animate(binding.fastSeekOverlay, false, SEEK_OVERLAY_DURATION); animate(binding.fastSeekOverlay, false, SEEK_OVERLAY_DURATION);
} }
@NonNull
@Override @Override
public FastSeekDirection getFastSeekDirection( public FastSeekDirection getFastSeekDirection(
@NonNull final DisplayPortion portion @NonNull final DisplayPortion portion