GCX-HCI / ThirtyInch

a MVP library for Android favoring a stateful Presenter
Apache License 2.0
1.03k stars 101 forks source link

workaround for AndroidX Fragment 1.2.0 isInBackStack bug #205

Closed lukaszkalnik closed 4 years ago

lukaszkalnik commented 4 years ago

There is a bug in AndroidX Fragment 1.2.0 dump() which caused our isInBackStack() hack to crash the app on configuration change in fragment or when switching fragments: https://github.com/sockeqwe/mosby/issues/318#issuecomment-577660091

The issue is supposed to be fixed in AndroidX Fragment 1.2.1 so we will have to remove the workaround and restore the old solution then: https://issuetracker.google.com/issues/148189412

Please test fragment configuration change and switching between fragments. App should not crash.

behi198 commented 4 years ago

Thanks! after 24 hours working on this issue, at last I found this comment and updated and it works now!