mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
* 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:
parent
05e98307be
commit
fdbe53d1e5
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue