diff options
author | Brad Leege <bleege@gmail.com> | 2016-02-11 10:39:00 -0800 |
---|---|---|
committer | Brad Leege <bleege@gmail.com> | 2016-02-11 10:39:00 -0800 |
commit | 7ca602b7394160a472f143a13f9ee2b725098e51 (patch) | |
tree | 9221ced9787131d1d855b711b1b27fbb372af024 | |
parent | 43ed846a12d574a7a0465a54ded22507b706462a (diff) | |
download | qtlocation-mapboxgl-7ca602b7394160a472f143a13f9ee2b725098e51.tar.gz |
[android] #3908 - No more beep
-rw-r--r-- | platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/telemetry/TelemetryLocationReceiver.java | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/telemetry/TelemetryLocationReceiver.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/telemetry/TelemetryLocationReceiver.java index 09310f9d69..088d41be54 100644 --- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/telemetry/TelemetryLocationReceiver.java +++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/telemetry/TelemetryLocationReceiver.java @@ -60,19 +60,12 @@ public class TelemetryLocationReceiver extends BroadcastReceiver { */ @Override public void onReceive(Context context, Intent intent) { - Location location = (Location)intent.getExtras().get(LocationManager.KEY_LOCATION_CHANGED); if (location != null) { - Log.i(TAG, "location received = " + location); + Log.d(TAG, "location received = " + location); MapboxEventManager.getMapboxEventManager(context).addLocationEvent(location); - - final ToneGenerator tg = new ToneGenerator(AudioManager.STREAM_NOTIFICATION, 100); - tg.startTone(ToneGenerator.TONE_PROP_BEEP); - tg.stopTone(); - tg.release(); } else { - Log.i(TAG, "location NOT received"); + Log.d(TAG, "location NOT received"); } - } } |