From 0c4754b42f59e3bc421d041255fc22065cd25803 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Sun, 14 Jun 2015 16:57:43 +0200 Subject: [PATCH] Fix poi --- .../src/net/osmand/plus/osmedit/EditingPOIDialogProvider.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/osmedit/EditingPOIDialogProvider.java b/OsmAnd/src/net/osmand/plus/osmedit/EditingPOIDialogProvider.java index 308039535d..c025be53c7 100644 --- a/OsmAnd/src/net/osmand/plus/osmedit/EditingPOIDialogProvider.java +++ b/OsmAnd/src/net/osmand/plus/osmedit/EditingPOIDialogProvider.java @@ -46,6 +46,7 @@ import net.osmand.plus.R; import net.osmand.plus.activities.DialogProvider; import net.osmand.plus.activities.MapActivity; import net.osmand.plus.activities.OpeningHoursView; +import net.osmand.util.Algorithms; import net.osmand.util.OpeningHoursParser; import net.osmand.util.OpeningHoursParser.BasicOpeningHourRule; import net.osmand.util.OpeningHoursParser.OpeningHours; @@ -612,7 +613,7 @@ public class EditingPOIDialogProvider implements DialogProvider { Map subCategories = new LinkedHashMap<>(poiTypes.getAllTranslatedNames(poiCategory, false)); for (Map.Entry s : allTranslatedSubTypes.entrySet()) { if (!subCategories.containsKey(s.getKey())) { - subCategories.put(s.getKey(), s.getValue()); + subCategories.put(Algorithms.capitalizeFirstLetterAndLowercase(s.getKey()), s.getValue()); } } ArrayAdapter adapter = new ArrayAdapter(activity, R.layout.list_textview,