Fix france/britain
This commit is contained in:
parent
0dfe356a53
commit
d5b00ccc84
1 changed files with 6 additions and 1 deletions
|
@ -104,7 +104,8 @@ public class DownloadResourceGroup {
|
||||||
public void createHillshadeSRTMGroups() {
|
public void createHillshadeSRTMGroups() {
|
||||||
if(getType().isScreen()) {
|
if(getType().isScreen()) {
|
||||||
DownloadResourceGroup regionMaps = getSubGroupById(DownloadResourceGroupType.REGION_MAPS.getDefaultId());
|
DownloadResourceGroup regionMaps = getSubGroupById(DownloadResourceGroupType.REGION_MAPS.getDefaultId());
|
||||||
if(regionMaps != null && regionMaps.size() == 1 && parentGroup != null && parentGroup.getParentGroup() != null) {
|
if(regionMaps != null && regionMaps.size() == 1 && parentGroup != null && parentGroup.getParentGroup() != null &&
|
||||||
|
isEmpty(getSubGroupById(DownloadResourceGroupType.SUBREGIONS.getDefaultId()))) {
|
||||||
IndexItem item = regionMaps.individualResources.get(0);
|
IndexItem item = regionMaps.individualResources.get(0);
|
||||||
DownloadResourceGroup screenParent = parentGroup.getParentGroup();
|
DownloadResourceGroup screenParent = parentGroup.getParentGroup();
|
||||||
if(item.getType() == DownloadActivityType.HILLSHADE_FILE) {
|
if(item.getType() == DownloadActivityType.HILLSHADE_FILE) {
|
||||||
|
@ -137,6 +138,10 @@ public class DownloadResourceGroup {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private boolean isEmpty(DownloadResourceGroup subGroupById) {
|
||||||
|
return subGroupById == null || subGroupById.isEmpty();
|
||||||
|
}
|
||||||
|
|
||||||
public void addGroup(DownloadResourceGroup g) {
|
public void addGroup(DownloadResourceGroup g) {
|
||||||
if(type.isScreen()) {
|
if(type.isScreen()) {
|
||||||
if(!g.type.isHeader()) {
|
if(!g.type.isHeader()) {
|
||||||
|
|
Loading…
Reference in a new issue