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().
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().