Skip to content

Commit

Permalink
Fixes #3371 (#3372)
Browse files Browse the repository at this point in the history
* Is UserBrowsing should first check if last known location is non-null before checkig if last location and current locations are close
  • Loading branch information
ashishkumar468 authored Feb 4, 2020
1 parent 05e9830 commit fdbe53d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,7 @@ private void handleLocationUpdate(fr.free.nrw.commons.location.LatLng latLng, Lo
}

private boolean isUserBrowsing() {
boolean isUserBrowsing = !presenter.areLocationsClose(getCameraTarget(), lastKnownLocation);
boolean isUserBrowsing = lastKnownLocation!=null && !presenter.areLocationsClose(getCameraTarget(), lastKnownLocation);
return isUserBrowsing;
}

Expand Down

0 comments on commit fdbe53d

Please sign in to comment.