AndroidX doesn’t allow calling of package private methods, like Fragment#isInBackstack. As a temporary workaround we can get the same information via the public dump() method.
The performance is fine and in my test scenarios always below <2ms.
fixes #149
How to test
Testing is harder this time.
I released this PR to mavenLocal()
I cloned Ti again, migrated the sample to AndroidX with Android Studio 3.2 beta4, disabled all other modules and included the new dependencies. (I pushed it here)
Converting Ti completely to AndroidX is no alternative. We want to test with android.enableJetifier.
AndroidX doesn’t allow calling of package private methods, like Fragment#isInBackstack. As a temporary workaround we can get the same information via the public dump() method.
The performance is fine and in my test scenarios always below <2ms.
fixes #149
How to test
Testing is harder this time.
mavenLocal()
sample
to AndroidX with Android Studio 3.2 beta4, disabled all other modules and included the new dependencies. (I pushed it here)Converting Ti completely to AndroidX is no alternative. We want to test with
android.enableJetifier
.