Update method
This commit is contained in:
parent
532762b735
commit
bc0bcbe999
1 changed files with 2 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue