Restore handling SPACE as play-pause only in fullscreen
When not in fullscreen SPACE should be not handled by the player, and hence result in a scroll down
This commit is contained in:
parent
2934841152
commit
e588abd4e7
|
@ -3752,9 +3752,12 @@ public final class Player implements
|
|||
default:
|
||||
break;
|
||||
case KeyEvent.KEYCODE_SPACE:
|
||||
playPause();
|
||||
if (isPlaying()) {
|
||||
hideControls(0, 0);
|
||||
if (isFullscreen) {
|
||||
playPause();
|
||||
if (isPlaying()) {
|
||||
hideControls(0, 0);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
case KeyEvent.KEYCODE_BACK:
|
||||
|
|
|
@ -88,6 +88,7 @@ public class PlayerMediaSession implements MediaSessionCallback {
|
|||
@Override
|
||||
public void play() {
|
||||
player.play();
|
||||
// hide the player controls even if the play command came from the media session
|
||||
player.hideControls(0, 0);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue