Stop using deprecated method

This commit is contained in:
ligi 2020-02-29 03:31:00 +01:00
parent ba931c787f
commit b5052184b2
No known key found for this signature in database
GPG key ID: 8E81894010ABF23D

View file

@ -55,7 +55,10 @@ class PassViewActivity : PassViewActivityBase() {
pagerAdapter.refresh()
}
inner class CollectionPagerAdapter(fm: FragmentManager, private var passStoreProjection: PassStoreProjection) : FragmentStatePagerAdapter(fm) {
inner class CollectionPagerAdapter(
fm: FragmentManager,
private var passStoreProjection: PassStoreProjection
) : FragmentStatePagerAdapter(fm, BEHAVIOR_RESUME_ONLY_CURRENT_FRAGMENT) {
override fun getCount(): Int = passStoreProjection.passList.count()
@ -115,8 +118,7 @@ class PassViewActivity : PassViewActivityBase() {
NavUtils.navigateUpTo(this, upIntent)
}
true
}
else false
} else false
}
else -> super.onOptionsItemSelected(item)