* Is UserBrowsing should first check if last known location is non-null before checkig if last location and current locations are close
This commit is contained in:
Ashish Kumar 2020-02-04 20:30:57 +05:30 committed by GitHub
parent 05e98307be
commit fdbe53d1e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -894,7 +894,7 @@ public class NearbyParentFragment extends CommonsDaggerSupportFragment
}
private boolean isUserBrowsing() {
boolean isUserBrowsing = !presenter.areLocationsClose(getCameraTarget(), lastKnownLocation);
boolean isUserBrowsing = lastKnownLocation!=null && !presenter.areLocationsClose(getCameraTarget(), lastKnownLocation);
return isUserBrowsing;
}