Upgrade support library. Switch gradle build tools and AS to 2.0. Adapt code to new support lib
This commit is contained in:
@@ -110,7 +110,7 @@ class WebtoonReader : BaseReader() {
|
||||
}
|
||||
|
||||
override fun onSaveInstanceState(outState: Bundle) {
|
||||
val savedPosition = pages[layoutManager.findFirstVisibleItemPosition()].pageNumber
|
||||
val savedPosition = pages.getOrNull(layoutManager.findFirstVisibleItemPosition())?.pageNumber ?: 0
|
||||
outState.putInt(SAVED_POSITION, savedPosition)
|
||||
super.onSaveInstanceState(outState)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user