Add check for string is not address not found

This commit is contained in:
PavelRatushny 2017-09-29 16:50:47 +03:00
parent 2877f89d0e
commit 343ca3ee11

View file

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