From 345ba74d588325167fb9efcccd0a996b063cc981 Mon Sep 17 00:00:00 2001 From: litetex <40789489+litetex@users.noreply.github.com> Date: Fri, 31 Dec 2021 20:58:23 +0100 Subject: [PATCH] Fixed naming --- .../main/java/org/schabi/newpipe/player/Player.java | 4 ++-- .../newpipe/views/player/PlayerFastSeekOverlay.kt | 10 +++++----- 2 files changed, 7 insertions(+), 7 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 6352847d3..b37dddc7b 100644 --- a/app/src/main/java/org/schabi/newpipe/player/Player.java +++ b/app/src/main/java/org/schabi/newpipe/player/Player.java @@ -590,12 +590,12 @@ public final class Player implements .performListener(new PlayerFastSeekOverlay.PerformListener() { @Override - public void onDoubleTab() { + public void onDoubleTap() { animate(binding.fastSeekOverlay, true, SEEK_OVERLAY_DURATION); } @Override - public void onDoubleTabEnd() { + public void onDoubleTapEnd() { animate(binding.fastSeekOverlay, false, SEEK_OVERLAY_DURATION); } 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 a1ea3d901..23f56fa67 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 @@ -74,7 +74,7 @@ class PlayerFastSeekOverlay(context: Context, attrs: AttributeSet?) : ) /* - * Check if a initial tab occurred or if direction was switched + * Check if a initial tap occurred or if direction was switched */ if (!initTap || wasForwarding != shouldForward) { // Reset seconds and update position @@ -90,7 +90,7 @@ class PlayerFastSeekOverlay(context: Context, attrs: AttributeSet?) : } } - performListener?.onDoubleTab() + performListener?.onDoubleTap() secondsView.seconds += seekSeconds performListener?.seek(forward = shouldForward) @@ -100,7 +100,7 @@ class PlayerFastSeekOverlay(context: Context, attrs: AttributeSet?) : if (DEBUG) Log.d(TAG, "onDoubleTapFinished called with initTap = [$initTap]") - if (initTap) performListener?.onDoubleTabEnd() + if (initTap) performListener?.onDoubleTapEnd() initTap = false secondsView.stopAnimation() @@ -121,8 +121,8 @@ class PlayerFastSeekOverlay(context: Context, attrs: AttributeSet?) : } interface PerformListener { - fun onDoubleTab() - fun onDoubleTabEnd() + fun onDoubleTap() + fun onDoubleTapEnd() fun shouldFastForward(portion: DisplayPortion): Boolean? fun seek(forward: Boolean) }