From b1c6006e183838df1067dc161b6eeeb890c31e65 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 8 Apr 2018 21:00:27 +0200 Subject: [PATCH] fix #732, delay automatic fullscreen animation a bit to make it smoother --- .../gallery/activities/ViewPagerActivity.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 ->