fix #732, delay automatic fullscreen animation a bit to make it smoother
This commit is contained in:
parent
ac3e79c15b
commit
b1c6006e18
1 changed files with 5 additions and 1 deletions
|
@ -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 ->
|
||||
|
|
Loading…
Reference in a new issue