test if language selector issue is properly identified
This commit is contained in:
parent
edb0ed0bdc
commit
d99b8a46cf
1 changed files with 8 additions and 2 deletions
|
@ -383,10 +383,16 @@ public class POIMapLayer extends OsmandMapLayer implements ContextMenuLayer.ICon
|
|||
topBar.setTitle(title);
|
||||
topBar.setBackgroundColor(ctx.getResources().getColor(getResIdFromAttribute(ctx, R.attr.pstsTabBackground)));
|
||||
topBar.setTitleTextColor(ctx.getResources().getColor(getResIdFromAttribute(ctx, R.attr.pstsTextColor)));
|
||||
String lng = a.getNameSelected(lang);
|
||||
if(Algorithms.isEmpty(lng)) {
|
||||
String lng = ""
|
||||
if(!Algorithms.isEmpty(a.getNameSelected(lang))) {
|
||||
lng = lang.toUpperCase();
|
||||
} else if (!Algorithms.isEmpty(a.getNameSelected("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 Button bottomBar = new Button(ctx);
|
||||
bottomBar.setText(R.string.read_full_article);
|
||||
|
|
Loading…
Reference in a new issue