2
0
Fork 1
mirror of https://github.com/FossifyOrg/Gallery.git synced 2025-04-21 18:59:48 +02:00

fix , delay automatic fullscreen animation a bit to make it smoother

This commit is contained in:
tibbi 2018-04-08 21:00:27 +02:00
parent ac3e79c15b
commit b1c6006e18

View file

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