Justify compass tremor

This commit is contained in:
Victor Shcherb 2012-07-01 17:00:43 +02:00
parent 14f0bf55a7
commit 01589d9729

View file

@ -1116,7 +1116,7 @@ public class MapActivity extends AccessibleActivity implements IMapLocationListe
}
previousSensorValue = val;
if (settings.ROTATE_MAP.get() == OsmandSettings.ROTATE_MAP_COMPASS) {
if(Math.abs(MapUtils.degreesDiff(mapView.getRotate(), -val)) > 5) {
if(Math.abs(MapUtils.degreesDiff(mapView.getRotate(), -val)) > 15) {
mapView.setRotate(-val);
}
}