Skip to content
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

Fix crash during navigation to fragment #357

Merged
merged 2 commits into from
Dec 9, 2023
Merged

Conversation

Jean-BaptisteC
Copy link
Contributor

@Jean-BaptisteC Jean-BaptisteC commented Nov 26, 2023

Fixes #334

This PR adds a condition to be sure the app do not try to navigate to fragment if currentDestination = 0 and implement a new Navigation Class
Currently, theses changes fix the most crash appears on devices

To reproduce bug:

  • Open app
  • Open report with tracker
  • Go back to main page and access to trackers in same time

Or:

  • Try to open to items in same time (two reports or two trackers)

https://nezspencer.medium.com/navigation-components-a-fix-for-navigation-action-cannot-be-found-in-the-current-destination-95b63e16152e

@Jean-BaptisteC Jean-BaptisteC requested a review from a user November 26, 2023 12:40
@Jean-BaptisteC Jean-BaptisteC force-pushed the fix_navigate_crash branch 2 times, most recently from 46a860e to 5e065ab Compare November 27, 2023 20:48
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to be fixing the bug, unable to reproduce on my side while testing the PR.

@Jean-BaptisteC Jean-BaptisteC merged commit 1579260 into master Dec 9, 2023
1 check passed
@Jean-BaptisteC Jean-BaptisteC deleted the fix_navigate_crash branch December 9, 2023 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash - java.lang.IllegalArgumentException
1 participant