Merge pull request #5678 from osmandapp/Fix_5588

Fix_5588
This commit is contained in:
Alexander Sytnyk 2018-07-16 14:38:31 +03:00 committed by GitHub
commit 4afafde131
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View file

@ -245,9 +245,9 @@ public class TransportRouteController extends MenuController {
@Override
public String getNameStr() {
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())) {
return transportRoute.stop.getName();
return transportRoute.stop.getName(getPreferredMapLang(), isTransliterateNames());
} else if (!TextUtils.isEmpty(getPointDescription().getTypeName())) {
return getPointDescription().getTypeName();
} else {

View file

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