mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
make bundle nullable at saving state
This commit is contained in:
@@ -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
|
||||
override fun saveState(): Parcelable? {
|
||||
val bundle = super.saveState() as Bundle?
|
||||
bundle!!.putParcelableArray("states", null)
|
||||
bundle?.putParcelableArray("states", null)
|
||||
return bundle
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user