mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-04-20 03:24:50 +00:00
rename variable
This commit is contained in:
parent
ce7d54c151
commit
bd9b9179c1
1 changed files with 2 additions and 2 deletions
|
@ -291,12 +291,12 @@ class VideoDetailFragment : MainFragment {
|
|||
"Current orientation changed (_currentOrientation = ${_currentOrientation})"
|
||||
)
|
||||
|
||||
val is_large_window = min(
|
||||
val isSmallWindow = min(
|
||||
resources.configuration.screenWidthDp,
|
||||
resources.configuration.screenHeightDp
|
||||
) < resources.getDimension(R.dimen.landscape_threshold)
|
||||
|
||||
if (Settings.instance.playback.isAutoRotate() && is_large_window) {
|
||||
if (Settings.instance.playback.isAutoRotate() && isSmallWindow) {
|
||||
if (!isFullscreen && (it == ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE || it == ActivityInfo.SCREEN_ORIENTATION_REVERSE_LANDSCAPE || it == ActivityInfo.SCREEN_ORIENTATION_REVERSE_PORTRAIT)) {
|
||||
_viewDetail?.setFullscreen(true)
|
||||
return@subscribe
|
||||
|
|
Loading…
Add table
Reference in a new issue