mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-25 22:18:00 +01:00
Fix slideshow on Android 14
Closes https://github.com/FossifyOrg/Gallery/issues/35 Original PR: https://github.com/FossifyOrg/Gallery/pull/12#issuecomment-1898242638
This commit is contained in:
parent
cbe9894d41
commit
67c5302e0b
1 changed files with 3 additions and 1 deletions
|
@ -406,7 +406,9 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
|
|||
}
|
||||
|
||||
window.decorView.setOnSystemUiVisibilityChangeListener { visibility ->
|
||||
mIsFullScreen = if (isNougatPlus() && isInMultiWindowMode) {
|
||||
mIsFullScreen = if (isUpsideDownCakePlus()) {
|
||||
visibility and View.SYSTEM_UI_FLAG_LOW_PROFILE != 0
|
||||
} else if (isNougatPlus() && isInMultiWindowMode) {
|
||||
visibility and View.SYSTEM_UI_FLAG_LOW_PROFILE != 0
|
||||
} else if (visibility and View.SYSTEM_UI_FLAG_LOW_PROFILE == 0) {
|
||||
false
|
||||
|
|
Loading…
Reference in a new issue