mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-04-30 14:44:27 +02:00
fix rotation regression
This commit is contained in:
parent
9a3e3af614
commit
4189d62a57
@ -174,7 +174,11 @@ class VideoDetailFragment() : MainFragment() {
|
|||||||
|
|
||||||
// For small windows if the device isn't landscape right now and full screen portrait isn't allowed then we should force landscape
|
// For small windows if the device isn't landscape right now and full screen portrait isn't allowed then we should force landscape
|
||||||
if (isSmallWindow && isFullscreen && !isFullScreenPortraitAllowed && resources.configuration.orientation == Configuration.ORIENTATION_PORTRAIT && !rotationLock && isLandscapeVideo) {
|
if (isSmallWindow && isFullscreen && !isFullScreenPortraitAllowed && resources.configuration.orientation == Configuration.ORIENTATION_PORTRAIT && !rotationLock && isLandscapeVideo) {
|
||||||
|
if (alwaysAllowReverseLandscapeAutoRotate){
|
||||||
|
a.requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE
|
||||||
|
} else {
|
||||||
a.requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_USER_LANDSCAPE
|
a.requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_USER_LANDSCAPE
|
||||||
|
}
|
||||||
if (autoRotateEnabled
|
if (autoRotateEnabled
|
||||||
) {
|
) {
|
||||||
// start listening for the device to rotate to landscape
|
// start listening for the device to rotate to landscape
|
||||||
|
Loading…
x
Reference in New Issue
Block a user