1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-06-26 07:03:20 +00:00

Fixed naming

This commit is contained in:
litetex 2021-12-31 20:58:23 +01:00
parent d2aaf152a0
commit 345ba74d58
2 changed files with 7 additions and 7 deletions

View File

@ -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);
}

View File

@ -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)
}