-
Notifications
You must be signed in to change notification settings - Fork 12
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 reselect poi #127
base: main
Are you sure you want to change the base?
Fix reselect poi #127
Conversation
fix(map): Test fix (when scrolling down the bottom sheet, it was impossible to re select the boulder selected previously)
@joxad Can you add a short description of the problem in the PR description, as well as a two screen recordings demonstrating the issue and the fixed behavior please? 🙏 |
Version Prod with the bug https://photos.app.goo.gl/tcxDyKGD5XB64yY77 |
Version dev with the fix |
Bug is : When you select a poi, swipe down the bottom sheet, and then reselect the poi, the bottom sheet doesn't expand properly. |
@@ -118,6 +118,7 @@ class MapFragment : Fragment(), BoolderMapListener { | |||
when (newState) { | |||
STATE_EXPANDED -> mapViewModel.onProblemTopoVisibilityChanged(isVisible = true) | |||
STATE_HIDDEN -> { | |||
mapViewModel.onTopoUnselected() |
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.
Looks like a call to mapView.unselectProblem()
is missing, as the boulder problem stays selected when dismissing the topo bottom sheet from a back press or dragging it down (the unselectProblem()
function's scope can be changed from private to public)
No description provided.