Improve cahcing for osmand regions

This commit is contained in:
Victor Shcherb 2019-08-04 01:38:29 +02:00
parent f2c6e08fb3
commit cbbea56cf0

View file

@ -333,8 +333,8 @@ public class OsmandRegions {
private synchronized List<BinaryMapDataObject> queryBboxNoInit(int lx, int rx, int ty, int by) throws IOException {
final List<BinaryMapDataObject> result = new ArrayList<BinaryMapDataObject>();
int mx = lx / 2 + rx / 2;
int my = ty / 2 + by / 2;
final int mx = lx / 2 + rx / 2;
final int my = ty / 2 + by / 2;
BinaryMapIndexReader.SearchRequest<BinaryMapDataObject> sr = BinaryMapIndexReader.buildSearchRequest(lx, rx, ty, by,
5, new BinaryMapIndexReader.SearchFilter() {
@Override