Merge pull request #8990 from osmandapp/create_custom_poi
fix subCategories
This commit is contained in:
commit
de9ff6760f
1 changed files with 5 additions and 7 deletions
|
@ -82,14 +82,12 @@ public class AmenityIndexRepositoryBinary implements AmenityIndexRepository {
|
|||
|
||||
PoiCategory poiCategory = poiTypes.getPoiCategoryByName(categoryName);
|
||||
List<String> deltaSubCategories = null;
|
||||
for (List<String> subList : subCategories) {
|
||||
for (String subCategory : subList) {
|
||||
if (poiCategory.getPoiTypeByKeyName(subCategory) != null) {
|
||||
if (deltaSubCategories == null) {
|
||||
deltaSubCategories = new ArrayList<>();
|
||||
}
|
||||
deltaSubCategories.add(subCategory);
|
||||
for (String subCategory : subCategories.get(i)) {
|
||||
if (poiCategory.getPoiTypeByKeyName(subCategory) == null) {
|
||||
if (deltaSubCategories == null) {
|
||||
deltaSubCategories = new ArrayList<>();
|
||||
}
|
||||
deltaSubCategories.add(subCategory);
|
||||
}
|
||||
}
|
||||
if (deltaSubCategories != null) {
|
||||
|
|
Loading…
Reference in a new issue