-
Notifications
You must be signed in to change notification settings - Fork 120
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
Removed Navigator from TermsOfServiceFragment, SurveySelectorFragment and OfflineAreasFragment #2889
Removed Navigator from TermsOfServiceFragment, SurveySelectorFragment and OfflineAreasFragment #2889
Conversation
What would be the side-effect of this fix? The navigation won't happen so the screen won't be moved to the next destination? Can you please try and replicate one scenario forcefully to understand what the user will see? |
The user will remain on the screen. However, this type of condition comes to the user in a worst case where the naviations instance are having are issue. |
I'm not sure if we should silently let the app fail. @gino-m Thoughts? |
@anandwana001 Can you look into options on how to resolve this problem? |
It might be ok if this is a degenerate case, but given the Crashlytics logs, it seems it's not @anandwana001 Why is this failing in the first place? |
@gino-m @shobhitagarwal1612 I did take a look at all the logs again: (updated issue #2776) logs
Not reproable, but as per the understanding the |
@anandwana001 In this PR, the lifecycle is still bound to the Activity, which is the wrong scope, since the fragment requesting the navigation may already be gone by the time the Activity receives the requests. Can we instead remove |
.../main/java/com/google/android/ground/ui/offlineareas/selector/OfflineAreaSelectorFragment.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In many cases case UiState
isn't actually modeling states, but actually actions/events. Can we rename those to NavEvent
in a fast-follow?
Also, in cases UiState
classes are used in a SharedStateFlow
, could we please switch those over the a SharedFlow
if it makes sense?
Filed google/ground-platform#2105 to track.
Fixes #2776
@shobhitagarwal1612 PTAL?
Removed Navigator from TermsOfServiceFragment, SurveySelectorFragment and OfflineAreasFragment
Part 2 - #2896