-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Fixed the order of events when location tracking is enabled #5744
Conversation
6355692
to
15b301b
Compare
15b301b
to
9e017ab
Compare
We're testing the PR with the CircleCI apk and there is only OSM available. Do you think there might be any differences for other sources of maps in background location? Or testing OSM is enough? |
testing one provider will be enough. |
This should be fixed now. |
9e017ab
to
b244129
Compare
yes. |
Tested with Success! Verified on device with Android 12,13 Verified cases:
|
Tested with Success! Verified on device with Android 10 |
Closes #5262
What has been done to verify that this works as intended?
I've tested the fix manually and added automated tests.
Why is this the best possible solution? Were any other approaches considered?
Enabling background recording takes place when we call
activityDisplayed()
when we navigate back from the hierarchy view we need to do that earlier than inonResume()
because it's after refreshing the screen and logging the question event.How does this change affect users? Describe intentional changes to behavior and behavior that could have accidentally been affected by code changes. In other words, what are the regression risks?
Apart from verifying that the issue has been fixed, it would be good to play a little bit with background location recording to make sure there is no regression.
Do we need any specific form for testing your changes? If so, please attach one.
No.
Does this change require updates to documentation? If so, please file an issue here and include the link below.
No.
Before submitting this PR, please make sure you have:
./gradlew checkAll
and confirmed all checks still pass OR confirm CircleCI build passes and run./gradlew connectedDebugAndroidTest
locally.