We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 05a5e43 + e588abd commit af89f05Copy full SHA for af89f05
2 files changed
app/src/main/java/org/schabi/newpipe/player/Player.java
@@ -3799,6 +3799,10 @@ public boolean onKeyDown(final int keyCode) {
3799
case KeyEvent.KEYCODE_SPACE:
3800
if (isFullscreen) {
3801
playPause();
3802
+ if (isPlaying()) {
3803
+ hideControls(0, 0);
3804
+ }
3805
+ return true;
3806
}
3807
break;
3808
case KeyEvent.KEYCODE_BACK:
app/src/main/java/org/schabi/newpipe/player/playback/PlayerMediaSession.java
@@ -88,6 +88,8 @@ public MediaDescriptionCompat getQueueMetadata(final int index) {
88
@Override
89
public void play() {
90
player.play();
91
+ // hide the player controls even if the play command came from the media session
92
+ player.hideControls(0, 0);
93
94
95
0 commit comments