Made small refactoring

This commit is contained in:
Alexander Sytnyk 2018-01-29 16:03:02 +02:00
parent 9806f189dd
commit 4a130c30ac

View file

@ -227,10 +227,9 @@ public class PointNavigationLayer extends OsmandMapLayer implements
@Override
public boolean isObjectMovable(Object o) {
TargetPointsHelper targetPointsHelper = map.getMyApplication().getTargetPointsHelper();
if (o != null && o instanceof TargetPoint) {
TargetPoint tp = (TargetPoint) o;
return targetPointsHelper.getAllPoints().contains(tp);
TargetPointsHelper targetPointsHelper = map.getMyApplication().getTargetPointsHelper();
return targetPointsHelper.getAllPoints().contains(o);
}
return false;
}