-
Notifications
You must be signed in to change notification settings - Fork 842
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change BackstackAccessor.isInBackStackAndroidX() implementation #338
Conversation
@sockeqwe Please merge & release it Also kindly please let me know if you're planning to stop supporting / deprecate Mosby, I'd really appreciate knowing if I'm in trouble. |
Thanks for your PR, however, I don't think that this will work:
as android has some internal white / black listing and would at runtime not allow to use reflection on androidx classes (usually)... Did that work for you? Can you provide a working unit test? |
I knew that but do the support libraries also have grey or blacklist APIs?
|
c2bee5b
to
c0d2c08
Compare
I added utils-fragment-androidx-integration-test module. To use jetifier, I had to create new module and copy 'utils-fragment.aar' to its libs directory not use 'utils-fragment' module directly. |
Any update on this? |
@sockeqwe Could you please release any temporary workaround version? It seems really, really critical in current circumstances. To be honest I don't really care how it works (if it works at least a bit better), I just badly need to buy myself some time to find a new solution. |
I'm so sorry for the late reply. |
I guess it's not needed anymore since fragment-1.2.1 returned toString in it's previous form |
Yep, Google fixed it.
|
Confirm that this issue was fixed by google by add these lines to build.gradle in app as Document : implementation 'androidx.appcompat:appcompat:1.3.0-alpha01' https://developer.android.com/jetpack/androidx/releases/fragment |
FragmentManager.toString() occurs NPE when mHost is null since androidx.fragment:fragment:1.2.0-beta01.
So this PR uses reflection instead of Fragment.dump().