mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-01-30 03:04:51 +01:00
hide the video seekbar too if initial system ui hiding is enabled
This commit is contained in:
parent
49df8130cf
commit
3a4f05ba91
@ -62,11 +62,11 @@ class VideoFragment : ViewPagerFragment(), SurfaceHolder.Callback, SeekBar.OnSee
|
||||
mIsFullscreen = activity.window.decorView.systemUiVisibility and View.SYSTEM_UI_FLAG_FULLSCREEN == View.SYSTEM_UI_FLAG_FULLSCREEN
|
||||
|
||||
activity.window.decorView.setOnSystemUiVisibilityChangeListener { visibility ->
|
||||
val fullscreen = visibility and View.SYSTEM_UI_FLAG_FULLSCREEN != 0
|
||||
mIsFullscreen = fullscreen
|
||||
mIsFullscreen = visibility and View.SYSTEM_UI_FLAG_FULLSCREEN != 0
|
||||
checkFullscreen()
|
||||
listener?.systemUiVisibilityChanged(visibility)
|
||||
}
|
||||
checkFullscreen()
|
||||
|
||||
return mView
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user