Skip to content

Commit

Permalink
Merge pull request #3866 from osmandapp/fix_show_cat
Browse files Browse the repository at this point in the history
Fix showing other categories
  • Loading branch information
alex-osm authored Jul 25, 2024
2 parents c24eeeb + 476928c commit 2280399
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Sources/Controllers/TargetMenu/POI/OAPOIViewController.mm
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ - (void) buildRows:(NSMutableArray<OARowInfo *> *)rows
|| [convertedKey isEqualToString:MAPILLARY_TAG]
|| [convertedKey isEqualToString:@"subway_region"]
|| ([convertedKey isEqualToString:@"note"] && !osmEditingEnabled)
|| [convertedKey hasPrefix:@"lang_yes"])
|| [convertedKey hasPrefix:@"lang_yes"]
|| [convertedKey hasPrefix:@"top_index_"])
continue;

NSString *textPrefix = @"";
Expand All @@ -202,7 +203,7 @@ - (void) buildRows:(NSMutableArray<OARowInfo *> *)rows
if (!pt && vl && vl.length > 0 && vl.length < 50)
pt = [_poiHelper getAnyPoiAdditionalTypeByKey:[NSString stringWithFormat:@"%@_%@", convertedKey, vl]];

if (poiType == nil && pt == nil && [key isEqualToString:vl])
if (poiType == nil && pt == nil)
{
poiType = [_poiHelper getPoiTypeByKey:key];
}
Expand Down

0 comments on commit 2280399

Please sign in to comment.