mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 22:47:59 +01:00
make bundle nullable at saving state
This commit is contained in:
parent
abaa1f2e08
commit
d5c7a5a8ca
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ class MyPagerAdapter(val activity: ViewPagerActivity, fm: FragmentManager, val m
|
||||||
// try fixing TransactionTooLargeException crash on Android Nougat, tip from https://stackoverflow.com/a/43193425/1967672
|
// try fixing TransactionTooLargeException crash on Android Nougat, tip from https://stackoverflow.com/a/43193425/1967672
|
||||||
override fun saveState(): Parcelable? {
|
override fun saveState(): Parcelable? {
|
||||||
val bundle = super.saveState() as Bundle?
|
val bundle = super.saveState() as Bundle?
|
||||||
bundle!!.putParcelableArray("states", null)
|
bundle?.putParcelableArray("states", null)
|
||||||
return bundle
|
return bundle
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue