Fix metrics fix

This commit is contained in:
Victor Shcherb 2012-09-07 15:14:42 +02:00
parent f411eaf2dd
commit 383c14aa6e
2 changed files with 2 additions and 2 deletions

View file

@ -409,7 +409,7 @@ public class ParkingPositionPlugin extends OsmandPlugin {
* @return
*/
private boolean distChanged(int oldDist, int dist){
if(oldDist != 0 && Math.abs(oldDist - dist) > 30){
if(oldDist != 0 && Math.abs(oldDist - dist) < 30){
return false;
}
return true;

View file

@ -603,7 +603,7 @@ public class RouteInfoControls {
public boolean distChanged(int oldDist, int dist){
if(oldDist != 0 && Math.abs(oldDist - dist) > 10){
if(oldDist != 0 && Math.abs(oldDist - dist) < 10){
return false;
}
return true;