From 8b8770b4d9404403b44cc318dc7c602523faf57f Mon Sep 17 00:00:00 2001 From: sonora Date: Fri, 16 Jan 2015 19:51:10 +0100 Subject: [PATCH] reset all test code --- .../plus/resources/RegionAddressRepositoryBinary.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/resources/RegionAddressRepositoryBinary.java b/OsmAnd/src/net/osmand/plus/resources/RegionAddressRepositoryBinary.java index 4ecaacb856..d0bd945a9d 100644 --- a/OsmAnd/src/net/osmand/plus/resources/RegionAddressRepositoryBinary.java +++ b/OsmAnd/src/net/osmand/plus/resources/RegionAddressRepositoryBinary.java @@ -59,7 +59,7 @@ public class RegionAddressRepositoryBinary implements RegionAddressRepository { @Override public synchronized void preloadCities(ResultMatcher resultMatcher) { -// if (cities.isEmpty()) { + if (cities.isEmpty()) { try { List cs = file.getCities(region, BinaryMapIndexReader.buildAddressRequest(resultMatcher), BinaryMapAddressReaderAdapter.CITY_TOWN_TYPE); @@ -76,7 +76,7 @@ public class RegionAddressRepositoryBinary implements RegionAddressRepository { } catch (IOException e) { log.error("Disk operation failed", e); //$NON-NLS-1$ } -// } + } } public City getClosestCity(LatLon l, List cache) { @@ -163,7 +163,7 @@ public class RegionAddressRepositoryBinary implements RegionAddressRepository { if (cities.isEmpty()) { preloadCities(resultMatcher); citiesToFill.addAll(cities.values()); -// return citiesToFill; + return citiesToFill; } preloadCities(null);