-
Notifications
You must be signed in to change notification settings - Fork 119
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
Showing accuracy for forced location #572
Conversation
I initially misinterpreted #469 - it points out that accuracy circle doesn't animate when the new location (with different accuracy than previous) is provided, it just jumps to the required value. #469 (comment) still stands and is fixed by this PR. |
be99028
to
597afe5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@LukasPaczos just a clarifying comment. Per #572 (comment), you're saying the animation from different accuracies is fixed, but animate when the new location (with different accuracy than previous) is provided
is still an issue? Thanks for running with this!
return locationEngine != null ? locationEngine.getLastLocation() : null; | ||
Location location = locationEngine != null ? locationEngine.getLastLocation() : null; | ||
if (location == null) { | ||
location = lastLocation; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@LukasPaczos Per javadoc above - here we are trying to get the last known location from the location engine and if nothing is found, using lastLocation
which could also possibly be null? Just clarifying here, I think it makes sense to add the extra check in case a developer was forcing Location
updates.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, lastLocation
can also be null if no updates have been pushed to the plugin yet. This is our last resort if locationEngine
is null
or fails to provide non-null
location, like a scenario when we are only forcing location updates.
The idea here is, that LocationEngine
can be in a position to provide last location (or just more recent location) even if no location updates have been pushed to the plugin itself.
Unfortunately, no. This is something I'm working on right now. This PR fixes an issue which occurred when you didn't use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@LukasPaczos got it, thanks for clarifying - 🚢 ✅
4bad0d6
to
d11b44f
Compare
…ing additional last location value
597afe5
to
56ea346
Compare
Refs #469.