mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-04-19 19:14:51 +00:00
suppress warning
This commit is contained in:
parent
60fe28c2fe
commit
569ba3d651
1 changed files with 2 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
package com.futo.platformplayer.fragment.mainactivity.main
|
||||
|
||||
import android.annotation.SuppressLint
|
||||
import android.content.Context
|
||||
import android.content.pm.ActivityInfo
|
||||
import android.content.res.Configuration
|
||||
|
@ -565,6 +566,7 @@ class VideoDetailFragment() : MainFragment() {
|
|||
}
|
||||
|
||||
// temporarily force the device to portrait if auto-rotate is disabled to prevent landscape when exiting full screen on a small device
|
||||
@SuppressLint("SourceLockedOrientationActivity")
|
||||
if (!isFullscreen && isSmallWindow() && !isAutoRotateEnabled() && !isMinimizingFromFullScreen) {
|
||||
activity?.requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_SENSOR_PORTRAIT
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue