diff --git a/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java b/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java index 470de3aa9..aeb51f63a 100644 --- a/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java +++ b/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java @@ -1891,8 +1891,10 @@ public final class VideoDetailFragment if (fullscreen) { hideSystemUiIfNeeded(); + viewPager.setVisibility(View.GONE); } else { showSystemUi(); + viewPager.setVisibility(View.VISIBLE); } if (relatedStreamsLayout != null) { diff --git a/app/src/main/java/org/schabi/newpipe/player/VideoPlayerImpl.java b/app/src/main/java/org/schabi/newpipe/player/VideoPlayerImpl.java index 06cbcd780..10887790b 100644 --- a/app/src/main/java/org/schabi/newpipe/player/VideoPlayerImpl.java +++ b/app/src/main/java/org/schabi/newpipe/player/VideoPlayerImpl.java @@ -505,6 +505,11 @@ public class VideoPlayerImpl extends VideoPlayer switch (keyCode) { default: break; + case KeyEvent.KEYCODE_SPACE: + if (isFullscreen) { + onPlayPause(); + } + break; case KeyEvent.KEYCODE_BACK: if (DeviceUtils.isTv(service) && isControlsVisible()) { hideControls(0, 0);