Fix #5588
This commit is contained in:
parent
aa0e4ed073
commit
69fcd322ba
2 changed files with 8 additions and 2 deletions
|
@ -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 {
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
Loading…
Reference in a new issue