fix #732, 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) { if (config.hideSystemUI) {
view_pager.onGlobalLayout {
Handler().postDelayed({
fragmentClicked() fragmentClicked()
}, 500)
}
} }
window.decorView.setOnSystemUiVisibilityChangeListener { visibility -> window.decorView.setOnSystemUiVisibilityChangeListener { visibility ->