diff options
| author | Bananeweizen <bananeweizen@gmx.de> | 2013-06-26 21:58:20 +0200 |
|---|---|---|
| committer | Bananeweizen <bananeweizen@gmx.de> | 2013-06-26 21:58:20 +0200 |
| commit | 296d80ac6564a277dc382432fb1a90cff227b20a (patch) | |
| tree | c7de8e50f70ea733705d05f26de319be770b9bd2 /main/src/cgeo/geocaching/speech | |
| parent | 1e8cd7b935af405e07181b03302afe01ea3c7500 (diff) | |
| download | cgeo-296d80ac6564a277dc382432fb1a90cff227b20a.zip cgeo-296d80ac6564a277dc382432fb1a90cff227b20a.tar.gz cgeo-296d80ac6564a277dc382432fb1a90cff227b20a.tar.bz2 | |
fix #2926: no speech output with "Use GPS only"
Diffstat (limited to 'main/src/cgeo/geocaching/speech')
| -rw-r--r-- | main/src/cgeo/geocaching/speech/SpeechService.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/speech/SpeechService.java b/main/src/cgeo/geocaching/speech/SpeechService.java index 7226014..7bc948d 100644 --- a/main/src/cgeo/geocaching/speech/SpeechService.java +++ b/main/src/cgeo/geocaching/speech/SpeechService.java @@ -1,6 +1,7 @@ package cgeo.geocaching.speech; import cgeo.geocaching.DirectionProvider; +import cgeo.geocaching.Settings; import cgeo.geocaching.geopoint.Geopoint; import cgeo.geocaching.utils.GeoDirHandler; import cgeo.geocaching.utils.Log; @@ -37,8 +38,8 @@ public class SpeechService extends Service implements OnInitListener { private boolean initialized = false; protected float direction; protected Geopoint position; - protected boolean directionInitialized; - protected boolean positionInitialized; + protected boolean directionInitialized = !Settings.isUseCompass(); // don't wait for magnetometer, if it shall not be used + protected boolean positionInitialized = false; GeoDirHandler geoHandler = new GeoDirHandler() { @Override |
