fix typos

This commit is contained in:
sonora 2015-01-03 14:36:41 +01:00
parent 1aa0a026f8
commit d1b390288b
2 changed files with 4 additions and 7 deletions

View file

@ -508,11 +508,8 @@ public class SearchPOIActivity extends OsmandListActivity implements OsmAndCompa
public void updateCompassValue(float value) {
float lastHeading = heading;
heading = value;
if(heading != null && lastHeading != null && Math.abs(MapUtils.degreesDiff(lastHeading, heading)) > 3) {
@Override
public void run() {
amenityAdapter.notifyDataSetChanged();
}
if (heading != null && lastHeading != null && Math.abs(MapUtils.degreesDiff(lastHeading, heading)) > 5) {
amenityAdapter.notifyDataSetChanged();
} else {
heading = lastHeading;
}

View file

@ -184,10 +184,10 @@ public class DashFavoritesFragment extends DashBaseFragment {
//updateArrows();
float lastHeading = heading;
heading = value;
if (heading != null && lastHeading != null && Math.abs(MapUtils.degreesDiff(lastHeading, heading)) > 3) {
if (heading != null && lastHeading != null && Math.abs(MapUtils.degreesDiff(lastHeading, heading)) > 5) {
updateArrows();
} else {
heading = lastHeading
heading = lastHeading;
}
}