From cbbea56cf0bd16350fce8e8a4dbc363579e44fd1 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Sun, 4 Aug 2019 01:38:29 +0200 Subject: [PATCH] Improve cahcing for osmand regions --- OsmAnd-java/src/main/java/net/osmand/map/OsmandRegions.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OsmAnd-java/src/main/java/net/osmand/map/OsmandRegions.java b/OsmAnd-java/src/main/java/net/osmand/map/OsmandRegions.java index 76ead632c9..bfad41e678 100644 --- a/OsmAnd-java/src/main/java/net/osmand/map/OsmandRegions.java +++ b/OsmAnd-java/src/main/java/net/osmand/map/OsmandRegions.java @@ -333,8 +333,8 @@ public class OsmandRegions { private synchronized List queryBboxNoInit(int lx, int rx, int ty, int by) throws IOException { final List result = new ArrayList(); - 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 sr = BinaryMapIndexReader.buildSearchRequest(lx, rx, ty, by, 5, new BinaryMapIndexReader.SearchFilter() { @Override