mirror of
https://github.com/TeamNewPipe/NewPipe.git
synced 2024-11-26 04:52:29 +01:00
Fix player controls not hiding if resumed from media button
This commit is contained in:
parent
e9e2afa61a
commit
34ab93c9bd
@ -3754,6 +3754,9 @@ public final class Player implements
|
|||||||
case KeyEvent.KEYCODE_SPACE:
|
case KeyEvent.KEYCODE_SPACE:
|
||||||
if (isFullscreen) {
|
if (isFullscreen) {
|
||||||
playPause();
|
playPause();
|
||||||
|
if (isPlaying()) {
|
||||||
|
hideControls(0, 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case KeyEvent.KEYCODE_BACK:
|
case KeyEvent.KEYCODE_BACK:
|
||||||
|
@ -88,6 +88,7 @@ public class PlayerMediaSession implements MediaSessionCallback {
|
|||||||
@Override
|
@Override
|
||||||
public void play() {
|
public void play() {
|
||||||
player.play();
|
player.play();
|
||||||
|
player.hideControls(0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user