mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-12-23 08:30:44 +00:00
Removed all animations to be consistent with the current behavior
This commit is contained in:
parent
65bb1dcdbf
commit
c25e523df6
@ -591,30 +591,14 @@ public final class Player implements
|
||||
.seekSeconds((int) (retrieveSeekDurationFromPreferences(this) / 1000.0f))
|
||||
.performListener(new PlayerFastSeekOverlay.PerformListener() {
|
||||
|
||||
@Override
|
||||
public void onDoubleTabStart() {
|
||||
// TODO
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDoubleTab() {
|
||||
animate(binding.fastSeekOverlay, true, SEEK_OVERLAY_DURATION);
|
||||
animate(binding.playbackControlsShadow,
|
||||
!simpleExoPlayer.getPlayWhenReady(), SEEK_OVERLAY_DURATION);
|
||||
animate(binding.playerTopShadow, false, SEEK_OVERLAY_DURATION);
|
||||
animate(binding.playerBottomShadow, false, SEEK_OVERLAY_DURATION);
|
||||
animate(binding.playbackControlRoot, false, SEEK_OVERLAY_DURATION);
|
||||
hideSystemUIIfNeeded();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDoubleTabEnd() {
|
||||
animate(binding.fastSeekOverlay, false, SEEK_OVERLAY_DURATION);
|
||||
if (!simpleExoPlayer.getPlayWhenReady()) {
|
||||
showControls(SEEK_OVERLAY_DURATION);
|
||||
} else {
|
||||
showHideShadow(false, SEEK_OVERLAY_DURATION);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -57,7 +57,6 @@ class PlayerFastSeekOverlay(context: Context, attrs: AttributeSet?) :
|
||||
Log.d(TAG, "onDoubleTapStarted called with portion = [$portion]")
|
||||
|
||||
initTap = false
|
||||
performListener?.onDoubleTabStart()
|
||||
|
||||
secondsView.stop()
|
||||
}
|
||||
@ -122,7 +121,6 @@ class PlayerFastSeekOverlay(context: Context, attrs: AttributeSet?) :
|
||||
}
|
||||
|
||||
interface PerformListener {
|
||||
fun onDoubleTabStart() {}
|
||||
fun onDoubleTab()
|
||||
fun onDoubleTabEnd()
|
||||
fun shouldFastForward(portion: DisplayPortion): Boolean?
|
||||
|
Loading…
Reference in New Issue
Block a user