-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat(Android): hide maps #621
base: main
Are you sure you want to change the base?
Conversation
a1c8fb7
to
a2b667c
Compare
} | ||
) | ||
LaunchedEffect(nearbyTransit.hideMaps) { | ||
if (nearbyTransit.hideMaps) { |
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.
Shouldn't this be !nearbyTransit.hideMaps
?
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.
I don't think so - if we show maps, the map will be the connection between the LocationDataManager
and the ViewportProvider
, but if we hide maps, we need to manually wire those together, like we do on iOS.
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.
Ahh, okay yes, got it.
} | ||
) | ||
LaunchedEffect(nearbyTransit.hideMaps) { | ||
if (nearbyTransit.hideMaps) { |
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.
Ahh, okay yes, got it.
Summary
Ticket: 🤖 | Map | Hide maps functionality
Stacked on #618 since the acceptance criteria specify that the location services button is in-scope for this ticket.
iOS
android
withContext(Dispatchers.Default)
where possibleTesting
Manually validated that everything looks correct with hide maps turned on, except for the stop details page, which looks wrong and needs to be fixed before this PR is actually ready for review. Added a unit test to check that maps are correctly hidden and shown.