Skip to content

Commit 345ba74

Browse files
committed
Fixed naming
1 parent d2aaf15 commit 345ba74

2 files changed

Lines changed: 7 additions & 7 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
@@ -590,12 +590,12 @@ private void setupPlayerSeekOverlay() {
590590
.performListener(new PlayerFastSeekOverlay.PerformListener() {
591591

592592
@Override
593-
public void onDoubleTab() {
593+
public void onDoubleTap() {
594594
animate(binding.fastSeekOverlay, true, SEEK_OVERLAY_DURATION);
595595
}
596596

597597
@Override
598-
public void onDoubleTabEnd() {
598+
public void onDoubleTapEnd() {
599599
animate(binding.fastSeekOverlay, false, SEEK_OVERLAY_DURATION);
600600
}
601601

app/src/main/java/org/schabi/newpipe/views/player/PlayerFastSeekOverlay.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class PlayerFastSeekOverlay(context: Context, attrs: AttributeSet?) :
7474
)
7575

7676
/*
77-
* Check if a initial tab occurred or if direction was switched
77+
* Check if a initial tap occurred or if direction was switched
7878
*/
7979
if (!initTap || wasForwarding != shouldForward) {
8080
// Reset seconds and update position
@@ -90,7 +90,7 @@ class PlayerFastSeekOverlay(context: Context, attrs: AttributeSet?) :
9090
}
9191
}
9292

93-
performListener?.onDoubleTab()
93+
performListener?.onDoubleTap()
9494

9595
secondsView.seconds += seekSeconds
9696
performListener?.seek(forward = shouldForward)
@@ -100,7 +100,7 @@ class PlayerFastSeekOverlay(context: Context, attrs: AttributeSet?) :
100100
if (DEBUG)
101101
Log.d(TAG, "onDoubleTapFinished called with initTap = [$initTap]")
102102

103-
if (initTap) performListener?.onDoubleTabEnd()
103+
if (initTap) performListener?.onDoubleTapEnd()
104104
initTap = false
105105

106106
secondsView.stopAnimation()
@@ -121,8 +121,8 @@ class PlayerFastSeekOverlay(context: Context, attrs: AttributeSet?) :
121121
}
122122

123123
interface PerformListener {
124-
fun onDoubleTab()
125-
fun onDoubleTabEnd()
124+
fun onDoubleTap()
125+
fun onDoubleTapEnd()
126126
fun shouldFastForward(portion: DisplayPortion): Boolean?
127127
fun seek(forward: Boolean)
128128
}

0 commit comments

Comments
 (0)