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;
|
||||
try {
|
||||
result = backend.update();
|
||||
if ((result != null) && (result.getTime() > lastLocation.getTime())) {
|
||||
if (result != null && (lastLocation == null || result.getTime() > lastLocation.getTime())) {
|
||||
setLastLocation(result);
|
||||
backendFuser.reportLocation();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue