Enable play/pause with space key even when not in fullscreen player
This commit is contained in:
parent
22e5b1e5b3
commit
65755d69a3
1 changed files with 3 additions and 5 deletions
|
|
@ -3752,11 +3752,9 @@ public final class Player implements
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
case KeyEvent.KEYCODE_SPACE:
|
case KeyEvent.KEYCODE_SPACE:
|
||||||
if (isFullscreen) {
|
playPause();
|
||||||
playPause();
|
if (isPlaying()) {
|
||||||
if (isPlaying()) {
|
hideControls(0, 0);
|
||||||
hideControls(0, 0);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case KeyEvent.KEYCODE_BACK:
|
case KeyEvent.KEYCODE_BACK:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue