Correctly handle location result on initial update() call
This commit is contained in:
parent
97b01d50d4
commit
abfc98df46
|
@ -69,7 +69,7 @@ class BackendHelper extends AbstractBackendHelper {
|
||||||
updateWaiting = false;
|
updateWaiting = false;
|
||||||
try {
|
try {
|
||||||
result = backend.update();
|
result = backend.update();
|
||||||
if ((result != null) && (result.getTime() > lastLocation.getTime())) {
|
if (result != null && (lastLocation == null || result.getTime() > lastLocation.getTime())) {
|
||||||
setLastLocation(result);
|
setLastLocation(result);
|
||||||
backendFuser.reportLocation();
|
backendFuser.reportLocation();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue