Skip to content

Commit c25e523

Browse files
committed
Removed all animations to be consistent with the current behavior
1 parent 65bb1dc commit c25e523

2 files changed

Lines changed: 0 additions & 18 deletions

File tree

app/src/main/java/org/schabi/newpipe/player/Player.java

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -591,30 +591,14 @@ private void setupPlayerSeekOverlay() {
591591
.seekSeconds((int) (retrieveSeekDurationFromPreferences(this) / 1000.0f))
592592
.performListener(new PlayerFastSeekOverlay.PerformListener() {
593593

594-
@Override
595-
public void onDoubleTabStart() {
596-
// TODO
597-
}
598-
599594
@Override
600595
public void onDoubleTab() {
601596
animate(binding.fastSeekOverlay, true, SEEK_OVERLAY_DURATION);
602-
animate(binding.playbackControlsShadow,
603-
!simpleExoPlayer.getPlayWhenReady(), SEEK_OVERLAY_DURATION);
604-
animate(binding.playerTopShadow, false, SEEK_OVERLAY_DURATION);
605-
animate(binding.playerBottomShadow, false, SEEK_OVERLAY_DURATION);
606-
animate(binding.playbackControlRoot, false, SEEK_OVERLAY_DURATION);
607-
hideSystemUIIfNeeded();
608597
}
609598

610599
@Override
611600
public void onDoubleTabEnd() {
612601
animate(binding.fastSeekOverlay, false, SEEK_OVERLAY_DURATION);
613-
if (!simpleExoPlayer.getPlayWhenReady()) {
614-
showControls(SEEK_OVERLAY_DURATION);
615-
} else {
616-
showHideShadow(false, SEEK_OVERLAY_DURATION);
617-
}
618602
}
619603

620604
@Override

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ class PlayerFastSeekOverlay(context: Context, attrs: AttributeSet?) :
5757
Log.d(TAG, "onDoubleTapStarted called with portion = [$portion]")
5858

5959
initTap = false
60-
performListener?.onDoubleTabStart()
6160

6261
secondsView.stop()
6362
}
@@ -122,7 +121,6 @@ class PlayerFastSeekOverlay(context: Context, attrs: AttributeSet?) :
122121
}
123122

124123
interface PerformListener {
125-
fun onDoubleTabStart() {}
126124
fun onDoubleTab()
127125
fun onDoubleTabEnd()
128126
fun shouldFastForward(portion: DisplayPortion): Boolean?

0 commit comments

Comments
 (0)