mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-08-02 22:30:40 +00:00
detect system auto rotate setting changes
correctly handle lock button when full screen
This commit is contained in:
parent
e719dcc7f5
commit
d6d35a645e
1 changed files with 1 additions and 1 deletions
|
@ -173,7 +173,7 @@ class VideoDetailFragment() : MainFragment() {
|
||||||
val autoRotateEnabled = isAutoRotateEnabled()
|
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
|
// 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
|
a.requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_USER_LANDSCAPE
|
||||||
if (autoRotateEnabled
|
if (autoRotateEnabled
|
||||||
) {
|
) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue