revert, should work
This commit is contained in:
parent
d663b581c5
commit
3aa3c75422
1 changed files with 3 additions and 7 deletions
|
@ -383,14 +383,10 @@ public class POIMapLayer extends OsmandMapLayer implements ContextMenuLayer.ICon
|
||||||
topBar.setTitle(title);
|
topBar.setTitle(title);
|
||||||
topBar.setBackgroundColor(ctx.getResources().getColor(getResIdFromAttribute(ctx, R.attr.pstsTabBackground)));
|
topBar.setBackgroundColor(ctx.getResources().getColor(getResIdFromAttribute(ctx, R.attr.pstsTabBackground)));
|
||||||
topBar.setTitleTextColor(ctx.getResources().getColor(getResIdFromAttribute(ctx, R.attr.pstsTextColor)));
|
topBar.setTitleTextColor(ctx.getResources().getColor(getResIdFromAttribute(ctx, R.attr.pstsTextColor)));
|
||||||
String lng = "";
|
|
||||||
if(!Algorithms.isEmpty(a.getNameSelected(lang))) {
|
String lng = a.getNameSelected(lang);
|
||||||
lng = lang.toUpperCase();
|
if(Algorithms.isEmpty(lng)) {
|
||||||
} else if (!Algorithms.isEmpty(a.getNameSelected("en"))) {
|
|
||||||
lng = "EN";
|
lng = "EN";
|
||||||
} else {
|
|
||||||
//TODO: If no English article exists either, now pick the language for which the longest article exists for the Amenity
|
|
||||||
lng = "XX";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
final String langSelected = lng;
|
final String langSelected = lng;
|
||||||
|
|
Loading…
Reference in a new issue