Resolves #5444 & #5455 updating nearest item distance and direction as user moves #5459
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description (required)
This PR aims to add the feature of updating the distance from the nearest item as the user moves, which would aid the users while travelling towards it. Also, the bug of the compass not updating directions after walking past the place will be solved.
Fixes #5444 and #5455
What changes did you make and why?
Updated nearby banner whenever the location is changed slightly and fine-tuned the minimum distance and minimum time parameters to request for location updates. This will not only update the distance from the nearest item, but also update the direction of it, even after walking past the place.
Tests performed (required)
Tested prodDebug on OnePlusNord CE 2 Lite with API level 31.
Screenshots (for UI changes only)
Screencast showing updation of distance from nearest item as user moves:
https://drive.google.com/file/d/1_8RayBnvMDGLfYpSiwWTXui2PkgjO3iT/view?usp=share_link