fix #668, properly handle Instant media change with Aspect Ratio rotation

This commit is contained in:
tibbi 2018-02-23 23:16:17 +01:00
parent 7289d0a8ea
commit 72ffa243a5

View file

@ -859,10 +859,12 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
override fun goToPrevItem() { override fun goToPrevItem() {
view_pager.setCurrentItem(view_pager.currentItem - 1, false) view_pager.setCurrentItem(view_pager.currentItem - 1, false)
checkOrientation()
} }
override fun goToNextItem() { override fun goToNextItem() {
view_pager.setCurrentItem(view_pager.currentItem + 1, false) view_pager.setCurrentItem(view_pager.currentItem + 1, false)
checkOrientation()
} }
private fun checkSystemUI() { private fun checkSystemUI() {