diff --git a/OsmAnd-java/src/net/osmand/osm/MapPoiTypes.java b/OsmAnd-java/src/net/osmand/osm/MapPoiTypes.java index 20d56acff6..4db2fa62f0 100644 --- a/OsmAnd-java/src/net/osmand/osm/MapPoiTypes.java +++ b/OsmAnd-java/src/net/osmand/osm/MapPoiTypes.java @@ -147,7 +147,13 @@ public class MapPoiTypes { Map translation = new HashMap(); for(PoiCategory pc : categories) { for(PoiType pt : pc.getPoiTypes()) { - if(pt.isReference() || pt.isNotEditableOsm()) { + if(pt.isReference() ) { + continue; + } + if(pt.getBaseLangType() != null) { + continue; + } + if(skipNonEditable && pt.isNotEditableOsm()) { continue; } translation.put(pt.getKeyName().replace('_', ' ').toLowerCase(), pt); diff --git a/OsmAnd/build.xml b/OsmAnd/build.xml index 42688a7f7b..3f6cde995d 100644 --- a/OsmAnd/build.xml +++ b/OsmAnd/build.xml @@ -100,9 +100,8 @@ - + - diff --git a/OsmAnd/res/values-bg/strings.xml b/OsmAnd/res/values-bg/strings.xml index 339464e5d0..c4b123d38d 100644 --- a/OsmAnd/res/values-bg/strings.xml +++ b/OsmAnd/res/values-bg/strings.xml @@ -1,4 +1,5 @@ - + + Моля, въведете потребителско име и парола за сайта на OSM Изчистване на междинните точки Запази междинните точки @@ -197,7 +198,7 @@ Покажи посоката към крайната цел Включете добавката за проследяване за да ползвате запис на GPX или онлайн проследяване Изчисляване на вероятно не най-оптималния маршрут при дълги разстояния - Моля, включете GPS в настройки + Моля, включете GPS-а в настройките Услуги за записи Няма маршрут @@ -1494,7 +1495,7 @@ OsmAnd е с отворен код и активно да се развива. Прекъсване на фоновия режим GPS? Записване на следата в GPX файл Интервал за запис - Интервал за събуждане на GPS + Интервал за задействане на GPS-a Предпочитан език за наименованията по картата (ако този език не е наличен, ще се имената ще се изписват на английски или на местния език) Предпочитан език за картата Онлайн следа (изисква се GPX) @@ -1596,7 +1597,7 @@ OsmAnd е с отворен код и активно да се развива. Търсене Покажи описанието Съобщение - A-GPS данни изтеглени преди: %1$s + A-GPS последно изтеглени в: %1$s Без ползване на алгоритми от v1.9 Да не се ползват алгоритми за маршрути въведени във версия 1.9 Скрий номерата на къщите @@ -1968,4 +1969,56 @@ OsmAnd е с отворен код и активно да се развива. Тип POI Работни дни Любими - \ No newline at end of file + македонски + фризки + албански + Прочети повече + Какво е новото в + Скрий предложените обекти + Актуализация + Качване + Създаден OSM POI + Създаден OSM бъг + Световната базова карта (покриваща целия свят в при малък мащаб) липсва или е остаряла. Моля, помислите за изтеглянето й . + QR код + Картата е изтеглена + Картата на %1$s беше изтеглена. Върнете се на картния изглед за да я ползвате. + Преминете към картата + Установява маркер, който показва първо стартиране на приложението; всички други настройки остават непроменени + Симулиране на първото стартиране на приложение + Гео: + Споделяне на местоположението + Изпрати + Съществува категория със същото име. Моля, посочете друго име. + Име на категория + Добавяне на нова категория + Региони + Карти на региони + Световни карти + Релефът на местността е изключен + Контурните линии са изключени + Добавяне на нов + Изберете категория + Определяне на системата за измерване на скоростта + Измерване скоростта + nm + Морски мили + Км в час + Мили в час + Метра в секунда + Минути на километър + Минути на миля + Морски мили в час (възли) + nmh + мин/м + Легенда на картата + Свържете се с нас + OSM редакции, споделени чрез OsmAnd + Долногермански езици + мин/км + м/сек + Записване на изминатия път + Навигация + Работи във фонов режим + Предпочитана информация + diff --git a/OsmAnd/res/values-da/strings.xml b/OsmAnd/res/values-da/strings.xml index 0bd5b7bbf8..d4f51f934e 100644 --- a/OsmAnd/res/values-da/strings.xml +++ b/OsmAnd/res/values-da/strings.xml @@ -2016,4 +2016,5 @@ Makedonisk Vestfrisisk Albansk (Tosk) + OSM redigeringer deles via OsmAnd diff --git a/OsmAnd/res/values-de/strings.xml b/OsmAnd/res/values-de/strings.xml index e2f4b84f75..6fa92edc5f 100644 --- a/OsmAnd/res/values-de/strings.xml +++ b/OsmAnd/res/values-de/strings.xml @@ -1,4 +1,5 @@ - + + Regionen Regionsweite Karten Weltweite Karten @@ -684,7 +685,7 @@ GPS Sekunden Min. - Art der Hintergrund-Standortbestimmung + Art der Standortbestimmung beim Hintergrunddienst Standortbestimmung Die Hintergrundnavigation erfordert aktiviertes GPS. Filter verstecken @@ -2078,4 +2079,60 @@ Afghanistan, Ägypten, Albanien, Algerien, Andorra, Angola, Anguilla, Antigua an Karte heruntergeladen Karte von %1$s wurde heruntergeladen. Gehen Sie zur Karte, um sie zu benutzen. Zur Karte gehen - \ No newline at end of file + Plattdeutsch + Mazedonisch + Weiter lesen + Neuerungen in + OSM POI erstellt + OSM Note erstellt + Die Basis-Weltkarte (Abdeckung für den ganzen Planeten bei kleinen Zoomstufen) ist nicht vorhanden oder veraltet. Für eine korrekte Darstellung sollte die Basis-Weltkarte heruntergeladen werden. + Setzt das Flag zum erstmaligen App-Start. Alle anderen Einstellungen bleiben unverändert. + Simuliere den ersten App-Start + geo: + Position teilen + Senden + Der eingegebene Kategorie-Name existiert bereits. Bitte einen anderen Namen eingeben. + Kategorie-Name + Neue Kategorie hinzufügen + Höhenlinien deaktiviert + Kategorie auswählen + System zur Geschwindigkeitsmessung eingeben + Geschwindigkeitsmessung + nm + nmh + min/m + min/km + m/s + Streckenaufzeichnung + Hintergrundbetrieb + Favoriten-Information + Stoppen der Positions-Simulation + Simulieren durch eine berechnete Route oder einer aufgezeichneten GPX-Spur + Letzte Orte + Erfolgreich gespeichert unter: %1$s + Anzahl der Reihen + ERWERBEN + Später + Downloads + Bitte den Speicherort für heruntergeladene Karten wählen. + Neue Version + Erste Schritte in Osmand + Merkmale + Hilf uns, Osmand weiter zu verbessern + Weitere + Plugins + Erste Benutzung + Wie Karten heruntergeladen und erste Einstellungen gewählt werden + Navigation einstellen + Eine Reise planen + FAQ + Häufige Fragen + Kartenansicht + Karten-Suche + Installation und Problembehebung + Technische Themen + Versionen + Feedback + Kontakt + Kartenlegende + diff --git a/OsmAnd/res/values-es-rAR/phrases.xml b/OsmAnd/res/values-es-rAR/phrases.xml index feb98302d1..8b368eb12c 100644 --- a/OsmAnd/res/values-es-rAR/phrases.xml +++ b/OsmAnd/res/values-es-rAR/phrases.xml @@ -2416,4 +2416,8 @@ Cargamento: Contenedores Cargamento: Vehículos pesados +Gimnasio exterior + + Encuentro de hackers + diff --git a/OsmAnd/res/values-es-rAR/strings.xml b/OsmAnd/res/values-es-rAR/strings.xml index aaffebadf8..bb69c843f5 100644 --- a/OsmAnd/res/values-es-rAR/strings.xml +++ b/OsmAnd/res/values-es-rAR/strings.xml @@ -1,4 +1,5 @@ - + + Ocultar números de casa Falló al copiar archivos @@ -1831,7 +1832,7 @@ Evite tomar trenes de enlace Complementos Básico - Extendido + Avanzado Número de edificio Siguiente Abren a las @@ -1945,4 +1946,9 @@ Leer más Novedades en - \ No newline at end of file + Compartir ediciones OSM mediante OsmAnd + Bajo Alemán + Macedonio + Frisón + Albano (Tosk) + diff --git a/OsmAnd/res/values-es/strings.xml b/OsmAnd/res/values-es/strings.xml index 96e4793b49..39c475e3f0 100644 --- a/OsmAnd/res/values-es/strings.xml +++ b/OsmAnd/res/values-es/strings.xml @@ -1535,7 +1535,7 @@ Señal de detención Radar de velocidad Pulsa cualquier objeto para ver más detalles, mantén pulsado para desactivar o borrar. Datos en el dispositivo actualmente (%1$s libre): - Reductores de velocidad + Reductor de velocidad Aviso de tráfico Establece el tamaño del texto en el mapa. Tamaño de texto @@ -1844,7 +1844,7 @@ Evite tomar trenes de enlace Complementos Básico - Extendido + Avanzado Número de edificio Siguiente Abren a las @@ -1962,4 +1962,5 @@ Macedonio Frisón Albano (Tosk) + Ediciones OSM compartidas vía OsmAnd diff --git a/OsmAnd/res/values-fr/strings.xml b/OsmAnd/res/values-fr/strings.xml index d3cc0fdcb6..fd69d284e4 100644 --- a/OsmAnd/res/values-fr/strings.xml +++ b/OsmAnd/res/values-fr/strings.xml @@ -1223,7 +1223,7 @@ Afghanistan, Albanie, Algérie, Allemagne, Andorre, Angola, Anguilla, Antigua-et Données de tuile : %1$s Le fournisseur de tuiles %1$s a été enregistré avec succès. Mercator elliptique - Choisir existant… + Sélectionner existant… Définir/Éditer… Points de passage GPX Annoncer les noms de rue, les avertissements (stops, ralentisseurs, radars), les limitations de vitesse @@ -2089,5 +2089,5 @@ Afghanistan, Albanie, Algérie, Allemagne, Andorre, Angola, Anguilla, Antigua-et Frison occidental Tosque Bas allemand - Editions OSM partagées avec OsmAnd + Éditions OSM partagées grâce à OsmAnd diff --git a/OsmAnd/res/values-hu/phrases.xml b/OsmAnd/res/values-hu/phrases.xml index 1f88b8d755..a806edf9af 100644 --- a/OsmAnd/res/values-hu/phrases.xml +++ b/OsmAnd/res/values-hu/phrases.xml @@ -948,4 +948,76 @@ Volapük wiki Kínai wiki + Nemzetközi kerékpáros hálózati csomópont + Országos kerékpáros hálózati csomópont + Regionális kerékpáros hálózati csomópont + Helyi kerékpáros hálózati csomópont + Nemzetközi turistaút-hálózati csomópont + Országos turistaút-hálózati csomópont + Regionális turistaút-hálózati csomópont + Helyi turistaút-hálózati csomópont + + Nemzetközi turistaút + Országos turistaút + Regionális turistaút + Helyi turistaút + Turistaút azonosító + + Nyitvatartás + Ürítési idő + Leírás + Telefon + Weboldal + Email + Fax + Facebook + Twitter + Skype + YouTube + Instagram + VKontakte + Google+ + Mobiltelefon + Szolgáltatási idő + Maximális magasság + Maximális súly + Magasság + Tengerszint feletti magasság + Elhagyott + Elhagyott objektum + Használaton kívüli + + Üzemeltető + Márka + Fizetős + Ingyenes + Ivóvíz + Nem ivóvíz + Felügyelt + Felügyelet nélküli + Időszakos + Állandó + Száraz évszak + Nedves évszak + forrás + nyár + eső + tél + Jelzőlámpás + Szabályozatlan + Jelzetlen + Kezdő dátum + Kerekesszék + Kerekesszék: nem lehetséges + Kerekesszék: korlátozott + Nagykereskedés + + Privát bemenet + Bemenni tilos + Célforgalom + Engedélyköteles bemenet + Vásárlók mehetnek be + Áruszállításra használható + Mezőgazdasági bemenet + diff --git a/OsmAnd/res/values-hu/strings.xml b/OsmAnd/res/values-hu/strings.xml index aef3e4dda1..11e2135335 100644 --- a/OsmAnd/res/values-hu/strings.xml +++ b/OsmAnd/res/values-hu/strings.xml @@ -1,4 +1,5 @@ - + + GPX fájl küldése OSM-re? Láthatóság Címkék @@ -1992,4 +1993,9 @@ Létrehozott OSM bug Térkép jelkulcs Kedvenc információk - \ No newline at end of file + OSM szerkesztés OsmAndból megosztva + Alnémet + Macedón + Fríz + Albán (toszk) + diff --git a/OsmAnd/res/values-nl/strings.xml b/OsmAnd/res/values-nl/strings.xml index c9210006c4..f494e1008f 100644 --- a/OsmAnd/res/values-nl/strings.xml +++ b/OsmAnd/res/values-nl/strings.xml @@ -2194,4 +2194,9 @@ Afghanistan, Albanie, Algerije, Andorra, Angola, Anguilla, Antigua en Barbuda, A Meer lezen Wat is nieuw in Verberg voorgestelde objecten + Via OsmAnd gedeelde OSM-bewerkingen + Nederduits + Macedonisch + Fries + Toskisch (Albanees) diff --git a/OsmAnd/res/values-sc/strings.xml b/OsmAnd/res/values-sc/strings.xml index b8b081ba6b..9604aab379 100644 --- a/OsmAnd/res/values-sc/strings.xml +++ b/OsmAnd/res/values-sc/strings.xml @@ -1988,4 +1988,5 @@ Matzèdone Frisone otzidentale Albanesu (Tosk) + Modìficas Osm cumpartzidas pro mèdiu de OsmAnd diff --git a/OsmAnd/res/values-zh-rTW/strings.xml b/OsmAnd/res/values-zh-rTW/strings.xml index c3bc87ed56..47ed2406ca 100644 --- a/OsmAnd/res/values-zh-rTW/strings.xml +++ b/OsmAnd/res/values-zh-rTW/strings.xml @@ -1974,4 +1974,5 @@ 馬其頓 菲士蘭 阿爾巴尼亞 (Tosk) + 透過 OsmAnd 共用編輯 Osm diff --git a/OsmAnd/src/net/osmand/plus/GPXUtilities.java b/OsmAnd/src/net/osmand/plus/GPXUtilities.java index 626d7161d6..4902e9f043 100644 --- a/OsmAnd/src/net/osmand/plus/GPXUtilities.java +++ b/OsmAnd/src/net/osmand/plus/GPXUtilities.java @@ -1,6 +1,8 @@ package net.osmand.plus; +import gnu.trove.list.array.TIntArrayList; + import java.io.BufferedInputStream; import java.io.File; import java.io.FileInputStream; @@ -553,6 +555,7 @@ public class GPXUtilities { public List tracks = new ArrayList(); public List points = new ArrayList(); public List routes = new ArrayList(); + public String warning = null; public String path = ""; public boolean showCurrentTrack; diff --git a/OsmAnd/src/net/osmand/plus/activities/IntermediatePointsDialog.java b/OsmAnd/src/net/osmand/plus/activities/IntermediatePointsDialog.java index 24e4ce0f62..dd7da97335 100644 --- a/OsmAnd/src/net/osmand/plus/activities/IntermediatePointsDialog.java +++ b/OsmAnd/src/net/osmand/plus/activities/IntermediatePointsDialog.java @@ -296,10 +296,6 @@ public class IntermediatePointsDialog { app.getTargetPointsHelper().removeWayPoint(cnt == 0, i); } } - // FIXME delete location when point is removed - // if(mapActivity instanceof MapActivity) { - // ((MapActivity) mapActivity).getMapLayers().getContextMenuLayer().setLocation(null, ""); - // } } } } diff --git a/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java b/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java index 5f72eba459..b67d30051e 100644 --- a/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java +++ b/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java @@ -144,22 +144,29 @@ public class MapActivityActions implements DialogProvider { builder.create().show(); } - public void directionTo(double latitude, double longitude) { + public void directionTo(double latitude, double longitude, PointDescription pd) { final TargetPointsHelper targets = getMyApplication().getTargetPointsHelper(); - targets.navigateToPoint(new LatLon(latitude, longitude), true, -1, null); + targets.navigateToPoint(new LatLon(latitude, longitude), true, -1, pd); enterRoutePlanningMode(null, null, false); } - public void addAsWaypoint(double latitude, double longitude) { + public void addAsWaypoint(double latitude, double longitude, PointDescription pd) { TargetPointsHelper targets = getMyApplication().getTargetPointsHelper(); boolean destination = (targets.getPointToNavigate() == null); targets.navigateToPoint(new LatLon(latitude, longitude), true, destination ? -1 : targets.getIntermediatePoints().size(), - mapActivity.getContextMenu().getPointDescription()); + pd); openIntermediateEditPointsDialog(); } + + public void addAsTarget(double latitude, double longitude, PointDescription pd) { + TargetPointsHelper targets = getMyApplication().getTargetPointsHelper(); + targets.navigateToPoint(new LatLon(latitude, longitude), true, -1, + pd); + openIntermediateEditPointsDialog(); + } public void editWaypoints() { openIntermediateEditPointsDialog(); diff --git a/OsmAnd/src/net/osmand/plus/mapcontextmenu/MapContextMenu.java b/OsmAnd/src/net/osmand/plus/mapcontextmenu/MapContextMenu.java index af620089f4..3adad7fed0 100644 --- a/OsmAnd/src/net/osmand/plus/mapcontextmenu/MapContextMenu.java +++ b/OsmAnd/src/net/osmand/plus/mapcontextmenu/MapContextMenu.java @@ -351,7 +351,8 @@ public class MapContextMenu extends MenuTitleController { if (pointDescription.isDestination()) { mapActivity.getMapActions().editWaypoints(); } else { - mapActivity.getMapActions().addAsWaypoint(latLon.getLatitude(), latLon.getLongitude()); + mapActivity.getMapActions().addAsTarget(latLon.getLatitude(), latLon.getLongitude(), + pointDescription); } close(); } diff --git a/OsmAnd/src/net/osmand/plus/osmedit/EditPoiData.java b/OsmAnd/src/net/osmand/plus/osmedit/EditPoiData.java index 81c27aefbc..2057c00765 100644 --- a/OsmAnd/src/net/osmand/plus/osmedit/EditPoiData.java +++ b/OsmAnd/src/net/osmand/plus/osmedit/EditPoiData.java @@ -5,6 +5,7 @@ import net.osmand.data.Amenity; import net.osmand.osm.PoiType; import net.osmand.osm.edit.Node; import net.osmand.osm.edit.OSMSettings; +import net.osmand.osm.edit.OSMSettings.OSMTagKey; import net.osmand.util.Algorithms; import org.apache.commons.logging.Log; @@ -20,20 +21,31 @@ public class EditPoiData { private Set mListeners = new HashSet<>(); private LinkedHashMap tagValues = new LinkedHashMap(); private boolean isInEdit = false; + private Node entity; public final Amenity amenity; public static final String POI_TYPE_TAG = "poi_type_tag"; private boolean hasChangesBeenMade = false; public EditPoiData(Amenity amenity, Node node, Map allTranslatedSubTypes) { this.amenity = amenity; + entity = node; initTags(node, allTranslatedSubTypes); } + + public Node getEntity() { + return entity; + } + + public String getTag(String key) { + return tagValues.get(key); + } public void updateTags(Map mp) { this.tagValues.clear(); this.tagValues.putAll(mp); } + private void tryAddTag(String key, String value) { if (!Algorithms.isEmpty(value)) { tagValues.put(key, value); @@ -42,18 +54,6 @@ public class EditPoiData { private void initTags(Node node, Map allTranslatedSubTypes) { checkNotInEdit(); -// tryAddTag(OSMSettings.OSMTagKey.ADDR_STREET.getValue(), -// node.getTag(OSMSettings.OSMTagKey.ADDR_STREET)); -// tryAddTag(OSMSettings.OSMTagKey.ADDR_HOUSE_NUMBER.getValue(), -// node.getTag(OSMSettings.OSMTagKey.ADDR_HOUSE_NUMBER)); - // should not be used here should be done in public Node loadNode(Amenity n) { -// tryAddTag(OSMSettings.OSMTagKey.PHONE.getValue(), -// amenity.getPhone()); -// tryAddTag(OSMSettings.OSMTagKey.WEBSITE.getValue(), -// amenity.getSite()); -// for (String tag : amenity.getAdditionalInfo().keySet()) { -// tryAddTag(tag, amenity.getAdditionalInfo(tag)); -// } for (String s : node.getTagKeySet()) { tryAddTag(s, node.getTag(s)); } @@ -146,4 +146,5 @@ public class EditPoiData { public boolean hasChangesBeenMade() { return hasChangesBeenMade; } + } \ No newline at end of file diff --git a/OsmAnd/src/net/osmand/plus/osmedit/EditPoiDialogFragment.java b/OsmAnd/src/net/osmand/plus/osmedit/EditPoiDialogFragment.java index 7619bc2cd2..01bca6fda0 100644 --- a/OsmAnd/src/net/osmand/plus/osmedit/EditPoiDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/osmedit/EditPoiDialogFragment.java @@ -94,7 +94,6 @@ public class EditPoiDialogFragment extends DialogFragment { private EditPoiData editPoiData; private ViewPager viewPager; private AutoCompleteTextView poiTypeEditText; - private Node node; private Map allTranslatedSubTypes; private OpenstreetmapUtil mOpenstreetmapUtil; @@ -111,7 +110,7 @@ public class EditPoiDialogFragment extends DialogFragment { mOpenstreetmapUtil = new OpenstreetmapRemoteUtil(activity); } - node = (Node) getArguments().getSerializable(KEY_AMENITY_NODE); + Node node = (Node) getArguments().getSerializable(KEY_AMENITY_NODE); allTranslatedSubTypes = getMyApplication().getPoiTypes().getAllTranslatedNames(true); Amenity amenity = (Amenity) getArguments().getSerializable(KEY_AMENITY); @@ -241,7 +240,7 @@ public class EditPoiDialogFragment extends DialogFragment { } } }); - poiNameEditText.setText(node.getTag(OSMSettings.OSMTagKey.NAME)); + poiNameEditText.setText(editPoiData.getTag(OSMSettings.OSMTagKey.NAME.getValue())); poiTypeTextInputLayout = (TextInputLayout) view.findViewById(R.id.poiTypeTextInputLayout); poiTypeEditText = (AutoCompleteTextView) view.findViewById(R.id.poiTypeEditText); poiTypeEditText.addTextChangedListener(new TextWatcher() { @@ -309,6 +308,8 @@ public class EditPoiDialogFragment extends DialogFragment { } private void save() { + Node original = editPoiData.getEntity(); + Node node = new Node(original.getLatitude(), original.getLongitude(), original.getId()); OsmPoint.Action action = node.getId() == -1 ? OsmPoint.Action.CREATE : OsmPoint.Action.MODIFY; for (Map.Entry tag : editPoiData.getTagValues().entrySet()) { if (tag.getKey().equals(EditPoiData.POI_TYPE_TAG)) { @@ -320,15 +321,10 @@ public class EditPoiDialogFragment extends DialogFragment { } } else { node.putTag(editPoiData.amenity.getType().getDefaultTag(), tag.getValue()); + } -// } else if (tag.tag.equals(OSMSettings.OSMTagKey.DESCRIPTION.getValue())) { -// description = tag.value; - } else { - if (tag.getKey().length() > 0) { - node.putTag(tag.getKey(), tag.getValue()); - } else { - node.removeTag(tag.getKey()); - } + } else if (!Algorithms.isEmpty(tag.getKey()) && !Algorithms.isEmpty(tag.getValue())) { + node.putTag(tag.getKey(), tag.getValue()); } } commitNode(action, node, mOpenstreetmapUtil.getEntityInfo(), diff --git a/OsmAnd/src/net/osmand/plus/osmedit/dialogs/PoiSubTypeDialogFragment.java b/OsmAnd/src/net/osmand/plus/osmedit/dialogs/PoiSubTypeDialogFragment.java index 538c16683b..9bd5ea3084 100644 --- a/OsmAnd/src/net/osmand/plus/osmedit/dialogs/PoiSubTypeDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/osmedit/dialogs/PoiSubTypeDialogFragment.java @@ -26,7 +26,6 @@ public class PoiSubTypeDialogFragment extends DialogFragment { AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()); final Amenity a = (Amenity) getArguments().getSerializable(KEY_AMENITY); final Map allTranslatedNames = poiTypes.getAllTranslatedNames(a.getType(), true); - // (=^.^=) Set strings = allTranslatedNames.keySet(); final String[] subCats = strings.toArray(new String[strings.size()]); builder.setItems(subCats, new DialogInterface.OnClickListener() {