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
1 changed files with 5 additions and 1 deletions

View File

@ -218,7 +218,11 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
}
if (config.hideSystemUI) {
view_pager.onGlobalLayout {
Handler().postDelayed({
fragmentClicked()
}, 500)
}
}
window.decorView.setOnSystemUiVisibilityChangeListener { visibility ->