From 3c23fb0b131e9665703022e1bcc885bd5c035b09 Mon Sep 17 00:00:00 2001 From: Stypox Date: Sat, 19 Feb 2022 13:30:55 +0100 Subject: [PATCH] Small refactor in player class --- app/src/main/java/org/schabi/newpipe/player/Player.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/player/Player.java b/app/src/main/java/org/schabi/newpipe/player/Player.java index e0debc4e7..f035f3233 100644 --- a/app/src/main/java/org/schabi/newpipe/player/Player.java +++ b/app/src/main/java/org/schabi/newpipe/player/Player.java @@ -593,8 +593,7 @@ public final class Player implements */ private void setupPlayerSeekOverlay() { binding.fastSeekOverlay - .seekSecondsSupplier( - () -> (int) (retrieveSeekDurationFromPreferences(this) / 1000.0f)) + .seekSecondsSupplier(() -> retrieveSeekDurationFromPreferences(this) / 1000) .performListener(new PlayerFastSeekOverlay.PerformListener() { @Override @@ -607,6 +606,7 @@ public final class Player implements animate(binding.fastSeekOverlay, false, SEEK_OVERLAY_DURATION); } + @NonNull @Override public FastSeekDirection getFastSeekDirection( @NonNull final DisplayPortion portion