Made small refactoring
This commit is contained in:
parent
9806f189dd
commit
4a130c30ac
1 changed files with 2 additions and 3 deletions
|
@ -227,10 +227,9 @@ public class PointNavigationLayer extends OsmandMapLayer implements
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isObjectMovable(Object o) {
|
public boolean isObjectMovable(Object o) {
|
||||||
TargetPointsHelper targetPointsHelper = map.getMyApplication().getTargetPointsHelper();
|
|
||||||
if (o != null && o instanceof TargetPoint) {
|
if (o != null && o instanceof TargetPoint) {
|
||||||
TargetPoint tp = (TargetPoint) o;
|
TargetPointsHelper targetPointsHelper = map.getMyApplication().getTargetPointsHelper();
|
||||||
return targetPointsHelper.getAllPoints().contains(tp);
|
return targetPointsHelper.getAllPoints().contains(o);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue