Update method

This commit is contained in:
Victor Shcherb 2015-10-25 13:39:30 +01:00
parent 532762b735
commit bc0bcbe999

View file

@ -518,7 +518,7 @@ public class OsmandRegions {
} }
public void cacheAllCountries() throws IOException { public Map<String, LinkedList<BinaryMapDataObject>> cacheAllCountries() throws IOException {
quadTree = new QuadTree<String>(new QuadRect(0, 0, Integer.MAX_VALUE, Integer.MAX_VALUE), quadTree = new QuadTree<String>(new QuadRect(0, 0, Integer.MAX_VALUE, Integer.MAX_VALUE),
8, 0.55f); 8, 0.55f);
final ResultMatcher<BinaryMapDataObject> resultMatcher = new ResultMatcher<BinaryMapDataObject>() { final ResultMatcher<BinaryMapDataObject> resultMatcher = new ResultMatcher<BinaryMapDataObject>() {
@ -568,6 +568,7 @@ public class OsmandRegions {
} }
}; };
iterateOverAllObjects(resultMatcher); iterateOverAllObjects(resultMatcher);
return countriesByDownloadName;
} }
private synchronized void iterateOverAllObjects(final ResultMatcher<BinaryMapDataObject> resultMatcher) throws IOException { private synchronized void iterateOverAllObjects(final ResultMatcher<BinaryMapDataObject> resultMatcher) throws IOException {