-
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
Initial stale logic added #264
Conversation
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.
looking good, just one question about the singleton setup
private Handler handler; | ||
private long delayTime = DEFAULT_DELAY_TIME_TILL_STALE; | ||
|
||
static StaleStateRunnable getInstance() { |
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.
is there are reason why this class is a singleton? can't we get away with using a final field in the plugin instead?
|
||
private StaleStateRunnable() { | ||
onLocationStaleListeners = new ArrayList<>(); | ||
handler = new Handler(); |
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.
these can be directly initialised as part of the field declaration + they can be made final
* adds location layer options class * Fixed memory leak in manual location update activity * Remove stale state listener in onStop * add elevation attribute * fix accuracy showing during nav mode * added documentation to location options * added some test for the class * fixed test * set locationlayermode at beginning of method * remove toggleCameraListener param
Closes #58