Fixed naming
This commit is contained in:
parent
d2aaf152a0
commit
345ba74d58
2 changed files with 7 additions and 7 deletions
|
@ -590,12 +590,12 @@ public final class Player implements
|
||||||
.performListener(new PlayerFastSeekOverlay.PerformListener() {
|
.performListener(new PlayerFastSeekOverlay.PerformListener() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onDoubleTab() {
|
public void onDoubleTap() {
|
||||||
animate(binding.fastSeekOverlay, true, SEEK_OVERLAY_DURATION);
|
animate(binding.fastSeekOverlay, true, SEEK_OVERLAY_DURATION);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onDoubleTabEnd() {
|
public void onDoubleTapEnd() {
|
||||||
animate(binding.fastSeekOverlay, false, SEEK_OVERLAY_DURATION);
|
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) {
|
if (!initTap || wasForwarding != shouldForward) {
|
||||||
// Reset seconds and update position
|
// Reset seconds and update position
|
||||||
|
@ -90,7 +90,7 @@ class PlayerFastSeekOverlay(context: Context, attrs: AttributeSet?) :
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
performListener?.onDoubleTab()
|
performListener?.onDoubleTap()
|
||||||
|
|
||||||
secondsView.seconds += seekSeconds
|
secondsView.seconds += seekSeconds
|
||||||
performListener?.seek(forward = shouldForward)
|
performListener?.seek(forward = shouldForward)
|
||||||
|
@ -100,7 +100,7 @@ class PlayerFastSeekOverlay(context: Context, attrs: AttributeSet?) :
|
||||||
if (DEBUG)
|
if (DEBUG)
|
||||||
Log.d(TAG, "onDoubleTapFinished called with initTap = [$initTap]")
|
Log.d(TAG, "onDoubleTapFinished called with initTap = [$initTap]")
|
||||||
|
|
||||||
if (initTap) performListener?.onDoubleTabEnd()
|
if (initTap) performListener?.onDoubleTapEnd()
|
||||||
initTap = false
|
initTap = false
|
||||||
|
|
||||||
secondsView.stopAnimation()
|
secondsView.stopAnimation()
|
||||||
|
@ -121,8 +121,8 @@ class PlayerFastSeekOverlay(context: Context, attrs: AttributeSet?) :
|
||||||
}
|
}
|
||||||
|
|
||||||
interface PerformListener {
|
interface PerformListener {
|
||||||
fun onDoubleTab()
|
fun onDoubleTap()
|
||||||
fun onDoubleTabEnd()
|
fun onDoubleTapEnd()
|
||||||
fun shouldFastForward(portion: DisplayPortion): Boolean?
|
fun shouldFastForward(portion: DisplayPortion): Boolean?
|
||||||
fun seek(forward: Boolean)
|
fun seek(forward: Boolean)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue