-
Notifications
You must be signed in to change notification settings - Fork 326
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
[Dynamic feature] Crash when navigate back to fragment #39
Comments
Thanks for reporting this. It seems like this is not an issue with the sample itself but one you're encountering in your own application. Can you please give me some more information on your Activity / Fragment / Module setup & stacktrace over at StackOverflow and link it here? |
We need your input to act on this issue. |
Hi @keyboardsurfer @georgious1 , I am also facing this when navigating back to fragment. I have added this in activity. But I am getting crash in API response. |
Any Standard way to fix this ? |
Is there a way for you to reproduce the issue within this sample or a clone of it? |
Hi @keyboardsurfer, Not in this sample but in our application we are facing this after following all the steps to turn on Dynamic Delivery. |
I understand this. What I'm asking you is to try and reproduce the issue on the sample at hand. If it's reproducible here we can take a closer look. |
Okay, let me check and get back to you. |
@Rishabh-sx i added workaround to fix this issue. BUT
AND
Actually i think just number (2) did all the trick, and enabling SplitCompat in fragments looks like redundant, but wont create any issues. |
Ah, and small update here, rechecked docs. Maybe its new addition, but it describes step (2) from example above : So having next code should be enough :
|
Hi @georgious1 , Thanks for sharing this information. Let me share this with my team and ask them to check if we are missing something. |
I am using fragment in dynamic feature module.
In fragment have these lines of code:
override fun onAttach(context: Context?) { super.onAttach(context) SplitCompat.install(context) }
Everything works fine. But when i am trying to navigate back to this fragment i am getting ResourceNotFoundException. It looks like my dynamic module wasnt even initialized.
Issue was solved using next lines
override fun onResume() { super.onResume() SplitCompat.install(context) }
What is the proper way to fix it ?
The text was updated successfully, but these errors were encountered: