diff options
| author | Bananeweizen <bananeweizen@gmx.de> | 2013-09-20 19:40:29 +0200 |
|---|---|---|
| committer | Bananeweizen <bananeweizen@gmx.de> | 2013-09-20 19:40:29 +0200 |
| commit | 4ab13733226b584b20fba276f88338044c623029 (patch) | |
| tree | 1714145c3b366da29bbed0e1a243b92191b32e90 /main/src | |
| parent | 27b827d382646796955007c2eb83a09016e16562 (diff) | |
| download | cgeo-4ab13733226b584b20fba276f88338044c623029.zip cgeo-4ab13733226b584b20fba276f88338044c623029.tar.gz cgeo-4ab13733226b584b20fba276f88338044c623029.tar.bz2 | |
make cache list compass views update every 5 degrees
* previously used 10 degrees steps, leading to notable jumps
Diffstat (limited to 'main/src')
| -rw-r--r-- | main/src/cgeo/geocaching/ui/CacheListAdapter.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/ui/CacheListAdapter.java b/main/src/cgeo/geocaching/ui/CacheListAdapter.java index f4d5936..be02eab 100644 --- a/main/src/cgeo/geocaching/ui/CacheListAdapter.java +++ b/main/src/cgeo/geocaching/ui/CacheListAdapter.java @@ -3,10 +3,10 @@ package cgeo.geocaching.ui; import butterknife.InjectView; import cgeo.geocaching.CacheDetailActivity; +import cgeo.geocaching.CgeoApplication; import cgeo.geocaching.Geocache; import cgeo.geocaching.IGeoData; import cgeo.geocaching.R; -import cgeo.geocaching.CgeoApplication; import cgeo.geocaching.enumerations.CacheListType; import cgeo.geocaching.enumerations.CacheType; import cgeo.geocaching.filter.IFilter; @@ -328,7 +328,7 @@ public class CacheListAdapter extends ArrayAdapter<Geocache> { } public void setActualHeading(final float direction) { - if (Math.abs(AngleUtils.difference(azimuth, direction)) < 10) { + if (Math.abs(AngleUtils.difference(azimuth, direction)) < 5) { return; } |
