This commit is contained in:
sonora 2015-06-13 15:23:21 +02:00
parent 90eefe8ad6
commit d031108590

View file

@ -392,11 +392,12 @@ public class POIMapLayer extends OsmandMapLayer implements ContextMenuLayer.ICon
} }
if(Algorithms.isEmpty(lng)) { if(Algorithms.isEmpty(lng)) {
//TODO: Third choice to display wiki article in if it does not exist in the OsmAnd locale or "en" should be the longest article (most information, usually the on in the region's local language) //TODO: Third choice to display wiki article in if it does not exist in the OsmAnd locale or "en" should be the longest article (most information, usually the on in the region's local language)
lng = a.getNameSelected(); lng = a.getNameSelected(null);
} }
// This should not occur // This should not occur
if(Algorithms.isEmpty(lng)) { if(Algorithms.isEmpty(lng)) {
lng = "EN"; //lng = "EN";
lng = "XX";
} }
final String langSelected = lng; final String langSelected = lng;