Skip to content

Commit a454a41

Browse files
Stypoxlitetex
authored andcommitted
Fix controls not hiding correctly when switching player
1 parent 95631db commit a454a41

1 file changed

Lines changed: 2 additions & 2 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
@@ -2186,8 +2186,8 @@ private void onBlocked() {
21862186
startProgressLoop();
21872187
}
21882188

2189-
controlsVisibilityHandler.removeCallbacksAndMessages(null);
2190-
animate(binding.playbackControlRoot, false, DEFAULT_CONTROLS_DURATION);
2189+
// if we are e.g. switching players, hide controls
2190+
hideControls(DEFAULT_CONTROLS_DURATION, 0);
21912191

21922192
binding.playbackSeekBar.setEnabled(false);
21932193
binding.playbackSeekBar.getThumb()

0 commit comments

Comments
 (0)