diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2014-01-02 22:59:06 +0100 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2014-01-08 19:42:40 +0100 |
| commit | f1f732bda8b8ddab26d7d716d124cb39a4e38a6b (patch) | |
| tree | 3d7b3ed1050a0ca9069d646accb87122561842b0 /main/src/cgeo/geocaching/speech | |
| parent | 4cd64cd4c060d5f99afdf6908b00111ac98b9399 (diff) | |
| download | cgeo-f1f732bda8b8ddab26d7d716d124cb39a4e38a6b.zip cgeo-f1f732bda8b8ddab26d7d716d124cb39a4e38a6b.tar.gz cgeo-f1f732bda8b8ddab26d7d716d124cb39a4e38a6b.tar.bz2 | |
Use RxJava for direction and geodata updates rather than own observers
Diffstat (limited to 'main/src/cgeo/geocaching/speech')
| -rw-r--r-- | main/src/cgeo/geocaching/speech/SpeechService.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/speech/SpeechService.java b/main/src/cgeo/geocaching/speech/SpeechService.java index 2a72bbf..8c650c3 100644 --- a/main/src/cgeo/geocaching/speech/SpeechService.java +++ b/main/src/cgeo/geocaching/speech/SpeechService.java @@ -47,7 +47,7 @@ public class SpeechService extends Service implements OnInitListener { GeoDirHandler geoHandler = new GeoDirHandler() { @Override - protected void updateDirection(float newDirection) { + public void updateDirection(float newDirection) { if (CgeoApplication.getInstance().currentGeo().getSpeed() <= 5) { direction = DirectionProvider.getDirectionNow(startingActivity, newDirection); directionInitialized = true; @@ -56,7 +56,7 @@ public class SpeechService extends Service implements OnInitListener { } @Override - protected void updateGeoData(cgeo.geocaching.IGeoData newGeo) { + public void updateGeoData(cgeo.geocaching.IGeoData newGeo) { position = newGeo.getCoords(); positionInitialized = true; if (!Settings.isUseCompass() || newGeo.getSpeed() > 5) { |
