Skip to content

Commit 3c23fb0

Browse files
committed
Small refactor in player class
1 parent a3f99bd commit 3c23fb0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/src/main/java/org/schabi/newpipe/player/Player.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -593,8 +593,7 @@ public void onChange(final boolean selfChange) {
593593
*/
594594
private void setupPlayerSeekOverlay() {
595595
binding.fastSeekOverlay
596-
.seekSecondsSupplier(
597-
() -> (int) (retrieveSeekDurationFromPreferences(this) / 1000.0f))
596+
.seekSecondsSupplier(() -> retrieveSeekDurationFromPreferences(this) / 1000)
598597
.performListener(new PlayerFastSeekOverlay.PerformListener() {
599598

600599
@Override
@@ -607,6 +606,7 @@ public void onDoubleTapEnd() {
607606
animate(binding.fastSeekOverlay, false, SEEK_OVERLAY_DURATION);
608607
}
609608

609+
@NonNull
610610
@Override
611611
public FastSeekDirection getFastSeekDirection(
612612
@NonNull final DisplayPortion portion

0 commit comments

Comments
 (0)