Fix #4494
This commit is contained in:
parent
5deebe2d8a
commit
9dc47fe3ff
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue