From c25e523df6cbb0a39893d4d1ca4b68248a4ddb5e Mon Sep 17 00:00:00 2001 From: litetex <40789489+litetex@users.noreply.github.com> Date: Tue, 14 Dec 2021 20:44:39 +0100 Subject: [PATCH] Removed all animations to be consistent with the current behavior --- .../java/org/schabi/newpipe/player/Player.java | 16 ---------------- .../views/player/PlayerFastSeekOverlay.kt | 2 -- 2 files changed, 18 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 653b226df..8eadbc821 100644 --- a/app/src/main/java/org/schabi/newpipe/player/Player.java +++ b/app/src/main/java/org/schabi/newpipe/player/Player.java @@ -591,30 +591,14 @@ public final class Player implements .seekSeconds((int) (retrieveSeekDurationFromPreferences(this) / 1000.0f)) .performListener(new PlayerFastSeekOverlay.PerformListener() { - @Override - public void onDoubleTabStart() { - // TODO - } - @Override public void onDoubleTab() { animate(binding.fastSeekOverlay, true, SEEK_OVERLAY_DURATION); - animate(binding.playbackControlsShadow, - !simpleExoPlayer.getPlayWhenReady(), SEEK_OVERLAY_DURATION); - animate(binding.playerTopShadow, false, SEEK_OVERLAY_DURATION); - animate(binding.playerBottomShadow, false, SEEK_OVERLAY_DURATION); - animate(binding.playbackControlRoot, false, SEEK_OVERLAY_DURATION); - hideSystemUIIfNeeded(); } @Override public void onDoubleTabEnd() { animate(binding.fastSeekOverlay, false, SEEK_OVERLAY_DURATION); - if (!simpleExoPlayer.getPlayWhenReady()) { - showControls(SEEK_OVERLAY_DURATION); - } else { - showHideShadow(false, SEEK_OVERLAY_DURATION); - } } @Override diff --git a/app/src/main/java/org/schabi/newpipe/views/player/PlayerFastSeekOverlay.kt b/app/src/main/java/org/schabi/newpipe/views/player/PlayerFastSeekOverlay.kt index 90384264b..f185f5861 100644 --- a/app/src/main/java/org/schabi/newpipe/views/player/PlayerFastSeekOverlay.kt +++ b/app/src/main/java/org/schabi/newpipe/views/player/PlayerFastSeekOverlay.kt @@ -57,7 +57,6 @@ class PlayerFastSeekOverlay(context: Context, attrs: AttributeSet?) : Log.d(TAG, "onDoubleTapStarted called with portion = [$portion]") initTap = false - performListener?.onDoubleTabStart() secondsView.stop() } @@ -122,7 +121,6 @@ class PlayerFastSeekOverlay(context: Context, attrs: AttributeSet?) : } interface PerformListener { - fun onDoubleTabStart() {} fun onDoubleTab() fun onDoubleTabEnd() fun shouldFastForward(portion: DisplayPortion): Boolean?