This commit is contained in:
Chumva 2018-07-16 14:05:41 +03:00
parent aa0e4ed073
commit 69fcd322ba
2 changed files with 8 additions and 2 deletions

View file

@ -245,9 +245,9 @@ public class TransportRouteController extends MenuController {
@Override @Override
public String getNameStr() { public String getNameStr() {
if (transportRoute.refStop != null && !TextUtils.isEmpty(transportRoute.refStop.getName())) { if (transportRoute.refStop != null && !TextUtils.isEmpty(transportRoute.refStop.getName())) {
return transportRoute.refStop.getName(); return transportRoute.refStop.getName(getPreferredMapLang(), isTransliterateNames());
} else if (transportRoute.stop != null && !TextUtils.isEmpty(transportRoute.stop.getName())) { } else if (transportRoute.stop != null && !TextUtils.isEmpty(transportRoute.stop.getName())) {
return transportRoute.stop.getName(); return transportRoute.stop.getName(getPreferredMapLang(), isTransliterateNames());
} else if (!TextUtils.isEmpty(getPointDescription().getTypeName())) { } else if (!TextUtils.isEmpty(getPointDescription().getTypeName())) {
return getPointDescription().getTypeName(); return getPointDescription().getTypeName();
} else { } else {

View file

@ -82,6 +82,12 @@ public class TransportStopController extends MenuController {
return true; return true;
} }
@NonNull
@Override
public String getNameStr() {
return transportStop.getName(getPreferredMapLang(), isTransliterateNames());
}
@NonNull @NonNull
@Override @Override
public String getTypeStr() { public String getTypeStr() {