Fix finding name for marker

This commit is contained in:
PavelRatushny 2017-09-29 16:53:46 +03:00
parent 343ca3ee11
commit b2a7723ae3

View file

@ -881,10 +881,11 @@ public class MapContextMenu extends MenuTitleController implements StateChangedL
}
public PointDescription getPointDescriptionForMarker() {
if (Algorithms.isEmpty(pointDescription.getName()) && !nameStr.equals(PointDescription.getAddressNotFoundStr(mapActivity))) {
PointDescription pd = getPointDescriptionForTarget();
if (Algorithms.isEmpty(pd.getName()) && !nameStr.equals(PointDescription.getAddressNotFoundStr(mapActivity))) {
return new PointDescription(PointDescription.POINT_TYPE_MAP_MARKER, nameStr);
} else {
return getPointDescriptionForTarget();
return pd;
}
}