fix typos
This commit is contained in:
parent
1aa0a026f8
commit
d1b390288b
2 changed files with 4 additions and 7 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue