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 a5bf59c61..c6ffb4ab0 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt @@ -218,7 +218,11 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View } if (config.hideSystemUI) { - fragmentClicked() + view_pager.onGlobalLayout { + Handler().postDelayed({ + fragmentClicked() + }, 500) + } } window.decorView.setOnSystemUiVisibilityChangeListener { visibility ->