sockeqwe / mosby

A Model-View-Presenter / Model-View-Intent library for modern Android apps
http://hannesdorfmann.com/mosby/
Apache License 2.0
5.49k stars 841 forks source link

Support AndroidX #321

Closed guyca closed 5 years ago

guyca commented 5 years ago

As of version 1.0 of AndroidX, fragment.isInBackStack() is package private and attempting to use is leads to an IllegalAccessError exception.

This commit introduces a temporary workaround for this issue by determining if the fragment is in the backstack from the information returned by fragment.dump().