diff --git a/OsmAnd-java/src/net/osmand/router/RoutePlannerFrontEnd.java b/OsmAnd-java/src/net/osmand/router/RoutePlannerFrontEnd.java index 3ee2a1acb3..bead0d1782 100644 --- a/OsmAnd-java/src/net/osmand/router/RoutePlannerFrontEnd.java +++ b/OsmAnd-java/src/net/osmand/router/RoutePlannerFrontEnd.java @@ -89,7 +89,7 @@ public class RoutePlannerFrontEnd { @Override public int compare(RouteSegmentPoint o1, RouteSegmentPoint o2) { - return Double.compare(o1.dist, o2.dist); + return Double.compare(o1.distSquare, o2.distSquare); } }); if(list.size() > 0) { diff --git a/OsmAnd/AndroidManifest.xml b/OsmAnd/AndroidManifest.xml index 92a2855a77..50beb09926 100644 --- a/OsmAnd/AndroidManifest.xml +++ b/OsmAnd/AndroidManifest.xml @@ -1,479 +1,292 @@ - + - + - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + - - - + + + + + + + + + + + + - - - - - - - - - - - - + + + + + + + + + + + + + + + + + android:grantUriPermissions="true" > + android:resource="@xml/paths" /> - - - - + + + + + + + + - + + + + + - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - + + + + + + + + + + + + + + + + - + + + + + + + + - - - - - - - - - - - + + + + + + - + + + + + + - - - - - - - + + + + - - - - + + + + + + + + - - - - - - - - - - - - + + + + + + + + + - - - + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - + --> + - - - - - - + + - + + + + + + - + + + + + - - - - - - - - - - - - - - + + + + + + + \ No newline at end of file