mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2025-09-01 10:27:57 +00:00
Fix player controls not hiding if resumed from media button
This commit is contained in:
@@ -3754,6 +3754,9 @@ public final class Player implements
|
||||
case KeyEvent.KEYCODE_SPACE:
|
||||
if (isFullscreen) {
|
||||
playPause();
|
||||
if (isPlaying()) {
|
||||
hideControls(0, 0);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case KeyEvent.KEYCODE_BACK:
|
||||
|
@@ -88,6 +88,7 @@ public class PlayerMediaSession implements MediaSessionCallback {
|
||||
@Override
|
||||
public void play() {
|
||||
player.play();
|
||||
player.hideControls(0, 0);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user