diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2014-04-05 18:42:45 +0200 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2014-04-05 18:42:45 +0200 |
| commit | 1b6176191c99afb78a7f7f540866c1e3d686df4c (patch) | |
| tree | 7b0c18dd48da6a0fd436535485d8d9bc14441853 /main/src | |
| parent | c0791b28e5f4cc392151d62bfb284c0159cdfcc6 (diff) | |
| download | cgeo-1b6176191c99afb78a7f7f540866c1e3d686df4c.zip cgeo-1b6176191c99afb78a7f7f540866c1e3d686df4c.tar.gz cgeo-1b6176191c99afb78a7f7f540866c1e3d686df4c.tar.bz2 | |
fix #3729: compass deviation -90° in landscape mode
Diffstat (limited to 'main/src')
| -rw-r--r-- | main/src/cgeo/geocaching/maps/CGeoMap.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/maps/CGeoMap.java b/main/src/cgeo/geocaching/maps/CGeoMap.java index b0124eb..cab961a 100644 --- a/main/src/cgeo/geocaching/maps/CGeoMap.java +++ b/main/src/cgeo/geocaching/maps/CGeoMap.java @@ -29,6 +29,7 @@ import cgeo.geocaching.maps.interfaces.MapProvider; import cgeo.geocaching.maps.interfaces.MapSource; import cgeo.geocaching.maps.interfaces.MapViewImpl; import cgeo.geocaching.maps.interfaces.OnMapDragListener; +import cgeo.geocaching.sensors.DirectionProvider; import cgeo.geocaching.sensors.GeoDirHandler; import cgeo.geocaching.sensors.IGeoData; import cgeo.geocaching.settings.Settings; @@ -894,7 +895,7 @@ public class CGeoMap extends AbstractMap implements OnMapDragListener, ViewFacto locationValid = true; currentLocation = geo.getLocation(); - currentHeading = dir; + currentHeading = DirectionProvider.getDirectionNow(activity, dir); repaintPositionOverlay(); } } |
