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

feat(Android): draw crosshair at selected location #573

Merged
merged 3 commits into from
Dec 11, 2024

Conversation

boringcactus
Copy link
Member

Summary

Ticket: 🤖 | Map | Crosshairs when map dragged

Adds the crosshair on the map.

iOS

  • If you added any user-facing strings on iOS, are they included in Localizable.xcstrings?
    • Add temporary machine translations, marked "Needs Review"
      android
  • All user-facing strings added to strings resource

Testing

Validated that the crosshair is being shown while panning, after panning, and during the momentum of a fling. The crosshair briefly flickers when it crosses over from outside the map to inside the map, but that's also the case on iOS.

@boringcactus boringcactus requested a review from a team as a code owner December 6, 2024 23:36
)
if (
isNearbyNotFollowing &&
lastNearbyTransitLocation != null &&
Copy link
Contributor

Choose a reason for hiding this comment

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

🎱 (stylistic) hasStableNearbyTransitLocation would be help me here, I blame Ruby for my dislike of long booleans.

Copy link
Member Author

Choose a reason for hiding this comment

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

I can't actually refactor this out because I'm relying on the lastNearbyTransitLocation != null to do smart casting within the if body.

Copy link
Contributor

@JackVCurtis JackVCurtis left a comment

Choose a reason for hiding this comment

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

Looks good! It would be good at some point to address the question of testing things that show up on the map, but way out of scope here.

Copy link
Contributor

@BrandonTR BrandonTR left a comment

Choose a reason for hiding this comment

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

nice!

@boringcactus boringcactus merged commit 4adebca into main Dec 11, 2024
5 checks passed
@boringcactus boringcactus deleted the mth-android-crosshair branch December 11, 2024 16:45
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.

3 participants