Skip to content

Commit

Permalink
Merge pull request TeamNewPipe/NewPipe#4939 from Atemu/dont-exit-full…
Browse files Browse the repository at this point in the history
…screen-on-rotation

VideoDetailFragment: Don't exit fullscreen on rotation in tablet UI
  • Loading branch information
TobiGr authored and tossj committed Apr 19, 2021
1 parent 52358b5 commit 9e93448
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,9 @@ public void onServiceConnected(final Player connectedPlayer,
// If the video is playing but orientation changed
// let's make the video in fullscreen again
checkLandscape();
} else if (player.isFullscreen() && !player.isVerticalVideo()) {
} else if (player.isFullscreen() && !player.isVerticalVideo()
// Tablet UI has orientation-independent fullscreen
&& !DeviceUtils.isTablet(activity)) {
// Device is in portrait orientation after rotation but UI is in fullscreen.
// Return back to non-fullscreen state
player.toggleFullscreen();
Expand Down

0 comments on commit 9e93448

Please sign in to comment.