Skip to content

Commit 2934841

Browse files
committed
Enable play/pause with space key even when not in fullscreen player
1 parent 34ab93c commit 2934841

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

app/src/main/java/org/schabi/newpipe/player/Player.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3752,11 +3752,9 @@ public boolean onKeyDown(final int keyCode) {
37523752
default:
37533753
break;
37543754
case KeyEvent.KEYCODE_SPACE:
3755-
if (isFullscreen) {
3756-
playPause();
3757-
if (isPlaying()) {
3758-
hideControls(0, 0);
3759-
}
3755+
playPause();
3756+
if (isPlaying()) {
3757+
hideControls(0, 0);
37603758
}
37613759
break;
37623760
case KeyEvent.KEYCODE_BACK:

0 commit comments

Comments
 (0)