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.
1 parent 2934841 commit e588abdCopy full SHA for e588abd
2 files changed
app/src/main/java/org/schabi/newpipe/player/Player.java
@@ -3752,9 +3752,12 @@ public boolean onKeyDown(final int keyCode) {
3752
default:
3753
break;
3754
case KeyEvent.KEYCODE_SPACE:
3755
- playPause();
3756
- if (isPlaying()) {
3757
- hideControls(0, 0);
+ if (isFullscreen) {
+ playPause();
+ if (isPlaying()) {
3758
+ hideControls(0, 0);
3759
+ }
3760
+ return true;
3761
}
3762
3763
case KeyEvent.KEYCODE_BACK:
app/src/main/java/org/schabi/newpipe/player/playback/PlayerMediaSession.java
@@ -88,6 +88,7 @@ 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
0 commit comments