Make context menu marker non-movable
This commit is contained in:
parent
c61f0ef63d
commit
48ef9256e2
1 changed files with 1 additions and 3 deletions
|
@ -300,9 +300,7 @@ public class ContextMenuLayer extends OsmandMapLayer {
|
|||
}
|
||||
|
||||
public boolean isObjectMoveable(Object o) {
|
||||
if (o == null) {
|
||||
return true;
|
||||
} else if (selectedObjectContextMenuProvider != null
|
||||
if (o != null && selectedObjectContextMenuProvider != null
|
||||
&& selectedObjectContextMenuProvider instanceof ContextMenuLayer.IMoveObjectProvider) {
|
||||
final IMoveObjectProvider l = (ContextMenuLayer.IMoveObjectProvider) selectedObjectContextMenuProvider;
|
||||
if (l.isObjectMovable(o)) {
|
||||
|
|
Loading…
Reference in a new issue