Fix player controls not hiding if resumed from media button

This commit is contained in:
ktprograms 2021-11-01 11:48:20 +08:00
parent e9e2afa61a
commit 34ab93c9bd
2 changed files with 4 additions and 0 deletions

View File

@ -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:

View File

@ -88,6 +88,7 @@ public class PlayerMediaSession implements MediaSessionCallback {
@Override
public void play() {
player.play();
player.hideControls(0, 0);
}
@Override