-
Notifications
You must be signed in to change notification settings - Fork 590
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
Make minimum accuracy user configurable #890
Conversation
Oops, it seems that I broke geocode sensor. Location sensor works fine though. Any ideas? I've copied the code from LocationSensorManager. What I've missed?
|
01e40bd
to
43b93c3
Compare
Sorry for me being a newbie :-) Seems like I've missed to add some code. Fixed. Seems to work fine now. |
I thougth about this feature like setting per sensor but not like integretionUsecase settng. It is not so global to be defined there as for me. We could store setting required for particular sensor manager in the daabase and show them in sensor details fragment. In sensor manager we will be able to get it by existing sensorDao object. |
It affects 2 sensors - location sensor and geocoded sensor. And the setting should be the same for both. |
I also wonder if we should remove doubling minimum accuracy for the last attempt after making it configurable to avoid user confusion. |
It does use 2 sensors but it's a little odd having it here because not all users will grant the app location permissions and if they don't we shouldn't show this option to them. I believe the logic for geocoded is not the same as location because we don't do the retry attempts in geocoded like we do for the device tracker. We also need to hide it from minimal users too.
I think we may want to let users keep things as the current default if they are happy with the current implementation but if a user changes this then yes we we should not double it. Not sure what the others think about this. |
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.
Just a general comment on the input field itself, may need to discuss whats best for its behavior.
43b93c3
to
1b7813a
Compare
Implemented this. |
194bc2d
to
6ec284f
Compare
Rebased after #895. |
6ec284f
to
90e490f
Compare
Fixed a small copy-paste error. :-) |
After thinking about this for a while I think we want this to be a per location update type setting, not just a global one if we are going to make it adjustable. Take for example if you request an accurate location, I might want an accurate location vs a zone change I might be ok with less accurate. |
So are you going to leave it global and unconfigurable until someone comes up with a better PR? |
Closing in favor of #964 |
Make minimum accuracy user configurable.
It's a long awaited feature and also fixes #868