Skip to content

Commit 1030e09

Browse files
authored
Merge pull request #7901 from Stypox/player-small-refactor
Small refactor in player class
2 parents de08edb + 3c23fb0 commit 1030e09

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
@@ -599,8 +599,7 @@ public void onChange(final boolean selfChange) {
599599
*/
600600
private void setupPlayerSeekOverlay() {
601601
binding.fastSeekOverlay
602-
.seekSecondsSupplier(
603-
() -> (int) (retrieveSeekDurationFromPreferences(this) / 1000.0f))
602+
.seekSecondsSupplier(() -> retrieveSeekDurationFromPreferences(this) / 1000)
604603
.performListener(new PlayerFastSeekOverlay.PerformListener() {
605604

606605
@Override
@@ -613,6 +612,7 @@ public void onDoubleTapEnd() {
613612
animate(binding.fastSeekOverlay, false, SEEK_OVERLAY_DURATION);
614613
}
615614

615+
@NonNull
616616
@Override
617617
public FastSeekDirection getFastSeekDirection(
618618
@NonNull final DisplayPortion portion

0 commit comments

Comments
 (0)