From 3a4f05ba912c2f17c336273b1bba315c3a67e594 Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 26 Jun 2017 23:56:48 +0200 Subject: [PATCH] hide the video seekbar too if initial system ui hiding is enabled --- .../com/simplemobiletools/gallery/fragments/VideoFragment.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/VideoFragment.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/VideoFragment.kt index 93a050fe0..fa60bfa53 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/VideoFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/VideoFragment.kt @@ -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 }