Maybe fixing IllegalStateException.
This commit is contained in:
parent
5e7897bcf4
commit
a11007113a
@ -93,6 +93,7 @@ class ReaderActivity : AppCompatActivity() {
|
|||||||
var adapter = ScreenSlidePagerAdapter(supportFragmentManager)
|
var adapter = ScreenSlidePagerAdapter(supportFragmentManager)
|
||||||
pager.adapter = adapter
|
pager.adapter = adapter
|
||||||
pager.currentItem = currentItem
|
pager.currentItem = currentItem
|
||||||
|
(pager.adapter as ScreenSlidePagerAdapter).notifyDataSetChanged()
|
||||||
|
|
||||||
pager.setPageTransformer(true, DepthPageTransformer())
|
pager.setPageTransformer(true, DepthPageTransformer())
|
||||||
(indicator as CircleIndicator).setViewPager(pager)
|
(indicator as CircleIndicator).setViewPager(pager)
|
||||||
|
Loading…
Reference in New Issue
Block a user