VideoDetailFragment: Don't exit fullscreen on rotation in tablet UI
Fixes https://github.com/TeamNewPipe/NewPipe/issues/4936 Going from portrait to landscape doesn't toggle fullscreen in tablet mode, so the reverse action shouldn't do it either.
This commit is contained in:
parent
66d15ea635
commit
c0ff1e86b9
1 changed files with 3 additions and 1 deletions
|
@ -274,7 +274,9 @@ public final class VideoDetailFragment
|
||||||
// If the video is playing but orientation changed
|
// If the video is playing but orientation changed
|
||||||
// let's make the video in fullscreen again
|
// let's make the video in fullscreen again
|
||||||
checkLandscape();
|
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.
|
// Device is in portrait orientation after rotation but UI is in fullscreen.
|
||||||
// Return back to non-fullscreen state
|
// Return back to non-fullscreen state
|
||||||
player.toggleFullscreen();
|
player.toggleFullscreen();
|
||||||
|
|
Loading…
Add table
Reference in a new issue