Fix finding name for marker
This commit is contained in:
parent
343ca3ee11
commit
b2a7723ae3
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue