declare viewpager as nullable
This commit is contained in:
parent
60cc462c6e
commit
a17e0f7a39
1 changed files with 1 additions and 1 deletions
|
@ -147,7 +147,7 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
|
|||
|
||||
private fun updatePagerItems() {
|
||||
val pagerAdapter = MyPagerAdapter(this, supportFragmentManager, mMedia)
|
||||
view_pager.apply {
|
||||
view_pager?.apply {
|
||||
adapter = pagerAdapter
|
||||
currentItem = mPos
|
||||
addOnPageChangeListener(this@ViewPagerActivity)
|
||||
|
|
Loading…
Reference in a new issue