diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2014-03-26 23:26:53 +0100 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2014-03-26 23:29:01 +0100 |
| commit | 492bff3e024d5475f7cd1da921800e5d531d87e9 (patch) | |
| tree | b23d024a08c3659b9439bb6b0f2e6c6931a8bf68 /main/src/cgeo/geocaching/speech | |
| parent | 4b693e9beb39d2043b76e6eeb09e91e4059ef7aa (diff) | |
| download | cgeo-492bff3e024d5475f7cd1da921800e5d531d87e9.zip cgeo-492bff3e024d5475f7cd1da921800e5d531d87e9.tar.gz cgeo-492bff3e024d5475f7cd1da921800e5d531d87e9.tar.bz2 | |
Allow subscription to either location or direction data
The forced union of both information is not appropriate in several
activities where only GPS data is needed, or where direction data
update less components than location data (such as cache lists).
This is part of work on #3680.
Diffstat (limited to 'main/src/cgeo/geocaching/speech')
| -rw-r--r-- | main/src/cgeo/geocaching/speech/SpeechService.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main/src/cgeo/geocaching/speech/SpeechService.java b/main/src/cgeo/geocaching/speech/SpeechService.java index 086227d..5cf732c 100644 --- a/main/src/cgeo/geocaching/speech/SpeechService.java +++ b/main/src/cgeo/geocaching/speech/SpeechService.java @@ -3,12 +3,13 @@ package cgeo.geocaching.speech; import cgeo.geocaching.R; import cgeo.geocaching.activity.ActivityMixin; import cgeo.geocaching.geopoint.Geopoint; +import cgeo.geocaching.sensors.GeoDirHandler; import cgeo.geocaching.sensors.IGeoData; import cgeo.geocaching.settings.Settings; -import cgeo.geocaching.sensors.GeoDirHandler; import cgeo.geocaching.utils.Log; import org.apache.commons.lang3.StringUtils; +import rx.Subscription; import android.app.Activity; import android.app.Service; @@ -17,7 +18,6 @@ import android.os.IBinder; import android.speech.tts.TextToSpeech; import android.speech.tts.TextToSpeech.Engine; import android.speech.tts.TextToSpeech.OnInitListener; -import rx.Subscription; import java.util.Locale; @@ -143,7 +143,7 @@ public class SpeechService extends Service implements OnInitListener { initialized = true; - initSubscription = geoDirHandler.start(); + initSubscription = geoDirHandler.start(GeoDirHandler.UPDATE_GEODIR); } @Override |
