Implemented composite translation of poi additional type when inside category

This commit is contained in:
Alexey Kulish 2016-10-16 13:36:40 +03:00
parent 7a3c28c12f
commit f6c89282ff

View file

@ -282,7 +282,11 @@ public class AmenityMenuBuilder extends MenuBuilder {
icon = getRowIcon(view.getContext(), ((PoiType) pType.getParentType()).getOsmTag() + "_" + pType.getOsmTag().replace(':', '_') + "_" + pType.getOsmValue());
}
if (!pType.isText()) {
vl = pType.getTranslation();
if (!Algorithms.isEmpty(pType.getPoiAdditionalCategory())) {
vl = pType.getPoiAdditionalCategoryTranslation() + ": " + pType.getTranslation();
} else {
vl = pType.getTranslation();
}
} else {
isText = true;
isDescription = iconId == R.drawable.ic_action_note_dark;