Repository navigation
Vehicle location > UUID > fallback to lat/lng if no ID/label - #211
Conversation
mmathieum
commented
Oct 26, 2026
- Fix vehicle map marker disappearing & unselected... mtransit-for-android#475
- Use the vehicle's UUID as the key for the marker map, improving the performance of marker updates. - Simplify the logic for clearing POI markers. - Remove the fallback for generating a UUID for vehicles. - Fix an issue where deselecting a marker did not correctly exit the click handler.
📝 Summary
Merge Risk:
|
This comment was marked as outdated.
This comment was marked as outdated.
commented
Oct 26, 2026
|
/gemini review |
left a comment
There was a problem hiding this comment.
Code Review
This pull request updates the VehicleLocation model to improve UUID generation by introducing a fallback mechanism that includes GPS coordinates if identifiers are missing, and reformats the cursorRow property. The reviewer correctly identified a potential issue where blank or empty vehicle identifiers could lead to UUID collisions and suggested using takeIf { it.isNotBlank() } to ensure only valid identifiers are used.
