Clean empty
This commit is contained in:
parent
a88aa6336e
commit
72fe281232
1 changed files with 5 additions and 2 deletions
|
@ -780,14 +780,17 @@ public class OsmandRegions {
|
|||
|
||||
|
||||
|
||||
public List<String> getRegions(double lat, double lon, List<String> keyNames) throws IOException {
|
||||
public List<String> getRegionsToDownload(double lat, double lon, List<String> keyNames) throws IOException {
|
||||
keyNames.clear();
|
||||
int x31 = MapUtils.get31TileNumberX(lon);
|
||||
int y31 = MapUtils.get31TileNumberY(lat);
|
||||
List<BinaryMapDataObject> cs = query(x31, y31);
|
||||
for (BinaryMapDataObject b : cs) {
|
||||
if (contain(b, x31, y31)) {
|
||||
keyNames.add(getDownloadName(b));
|
||||
String downloadName = getDownloadName(b);
|
||||
if(!Algorithms.isEmpty(downloadName)) {
|
||||
keyNames.add(downloadName);
|
||||
}
|
||||
}
|
||||
}
|
||||
return keyNames;
|
||||
|
|
Loading…
Reference in a new issue