if (position != 0) {
if (position == POSITION_CURRENT_LOCATION) {
net.osmand.Location loc = getLocationProvider().getLastKnownLocation();
if(loc != null && System.currentTimeMillis() - loc.getTime() < 10000) {
updateLocation(loc);
<BUG>} else {
startSearchCurrentLocation();
searchAroundCurrentLocation = true;</BUG>
}
} else {

if (position != 0) {
if (position == POSITION_CURRENT_LOCATION) {
net.osmand.Location loc = getLocationProvider().getLastKnownLocation();
if(loc != null && System.currentTimeMillis() - loc.getTime() < 10000) {
updateLocation(loc);
} else {
searchAroundCurrentLocation = true;
startSearchCurrentLocation();
}
} else {
