This commit is contained in:
PavelRatushny 2017-09-29 14:09:33 +03:00
parent 5deebe2d8a
commit 9dc47fe3ff

View file

@ -50,6 +50,7 @@ import net.osmand.plus.views.ContextMenuLayer;
import net.osmand.plus.views.OsmandMapLayer;
import net.osmand.plus.views.mapwidgets.MapInfoWidgetsFactory.TopToolbarController;
import net.osmand.plus.views.mapwidgets.MapInfoWidgetsFactory.TopToolbarControllerType;
import net.osmand.util.Algorithms;
import net.osmand.util.MapUtils;
import java.lang.ref.WeakReference;
@ -875,6 +876,9 @@ public class MapContextMenu extends MenuTitleController implements StateChangedL
&& pointDescription.getName().equals(PointDescription.getAddressNotFoundStr(mapActivity))) {
return new PointDescription(PointDescription.POINT_TYPE_LOCATION, "");
} else {
if (Algorithms.isEmpty(pointDescription.getName())) {
pointDescription.setName(nameStr);
}
return pointDescription;
}
}