From bbdf72b52ed31e9d73eaf31509f85467fbbb8c03 Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 26 Jun 2017 23:03:10 +0200 Subject: [PATCH] hide system ui at opening fullscreen media if set so --- .../simplemobiletools/gallery/activities/ViewPagerActivity.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt index 315bc8c41..330259f6c 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt @@ -115,6 +115,9 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View if (config.darkBackground) view_pager.background = ColorDrawable(Color.BLACK) + + if (config.hideSystemUI) + fragmentClicked() } override fun onDestroy() {