aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2013-09-20 19:40:29 +0200
committerBananeweizen <bananeweizen@gmx.de>2013-09-20 19:40:29 +0200
commit4ab13733226b584b20fba276f88338044c623029 (patch)
tree1714145c3b366da29bbed0e1a243b92191b32e90
parent27b827d382646796955007c2eb83a09016e16562 (diff)
downloadcgeo-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
-rw-r--r--main/src/cgeo/geocaching/ui/CacheListAdapter.java4
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;
}