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

Android location issues #794

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

JackVCurtis
Copy link
Contributor

@JackVCurtis JackVCurtis commented Feb 27, 2025

Summary

Ticket: Fix: Android location issues

What is this PR for?

This PR fixes the issue in the second bullet of the linked ticket. The issue in the first bullet did not reproduce, but Paul found another bug with the recenter button which this PR corrects.

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 in alphabetical order
  • Expensive calculations are run in withContext(Dispatchers.Default) where possible

Testing

What testing have you done?

Manual testing since we don't have a good way of testing location behavior

@JackVCurtis JackVCurtis requested a review from a team as a code owner February 27, 2025 17:02
Copy link
Contributor

@EmmaSimon EmmaSimon left a comment

Choose a reason for hiding this comment

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

I think the location changing after backgrounding the app is working, but I'm still seeing the recenter button stay visible even after you go back from stop details.

I also noticed that there was previously a flicker of the vehicle position button underneath the recenter button when you navigated to stop details, but after this change, it flickers in first, then switches to the recenter button. Maybe it makes sense to hide both of them until the page is done loading?

Before After
Screen_recording_20250227_153941.webm Screen_recording_20250227_154124.webm

@JackVCurtis
Copy link
Contributor Author

Yeah, I think hiding both makes sense. I'm going to try to factor more of this boolean logic into the view model or something, it's getting hard to keep the state straight.

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.

2 participants