hide the video seekbar too if initial system ui hiding is enabled

This commit is contained in:
tibbi 2017-06-26 23:56:48 +02:00
parent 49df8130cf
commit 3a4f05ba91

View file

@ -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
}