mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-12-23 08:30:44 +00:00
Fixed naming
This commit is contained in:
parent
d2aaf152a0
commit
345ba74d58
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user