detect system auto rotate setting changes

correctly handle lock button when full screen
This commit is contained in:
Kai 2024-12-13 11:44:57 -06:00
parent e719dcc7f5
commit d6d35a645e
No known key found for this signature in database

View file

@ -173,7 +173,7 @@ class VideoDetailFragment() : MainFragment() {
val autoRotateEnabled = isAutoRotateEnabled()
// 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 && !alwaysAllowReverseLandscapeAutoRotate) {
if (isSmallWindow && isFullscreen && !isFullScreenPortraitAllowed && resources.configuration.orientation == Configuration.ORIENTATION_PORTRAIT && !rotationLock && isLandscapeVideo) {
a.requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_USER_LANDSCAPE
if (autoRotateEnabled
) {