Fix condition
This commit is contained in:
parent
a6a7a98184
commit
cfbf0f3136
1 changed files with 2 additions and 1 deletions
|
@ -898,7 +898,8 @@ public class MapContextMenu extends MenuTitleController implements StateChangedL
|
|||
|
||||
public PointDescription getPointDescriptionForMarker() {
|
||||
PointDescription pd = getPointDescriptionForTarget();
|
||||
if (Algorithms.isEmpty(pd.getName()) && !nameStr.equals(PointDescription.getAddressNotFoundStr(mapActivity))) {
|
||||
if (Algorithms.isEmpty(pd.getName()) && !Algorithms.isEmpty(nameStr)
|
||||
&& !nameStr.equals(PointDescription.getAddressNotFoundStr(mapActivity))) {
|
||||
return new PointDescription(PointDescription.POINT_TYPE_MAP_MARKER, nameStr);
|
||||
} else {
|
||||
return pd;
|
||||
|
|
Loading…
Reference in a new issue