summaryrefslogtreecommitdiff
path: root/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/telemetry/TelemetryLocationReceiver.java
diff options
context:
space:
mode:
authorBrad Leege <bleege@gmail.com>2016-02-11 10:39:00 -0800
committerBrad Leege <bleege@gmail.com>2016-02-11 10:39:00 -0800
commit7ca602b7394160a472f143a13f9ee2b725098e51 (patch)
tree9221ced9787131d1d855b711b1b27fbb372af024 /platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/telemetry/TelemetryLocationReceiver.java
parent43ed846a12d574a7a0465a54ded22507b706462a (diff)
downloadqtlocation-mapboxgl-7ca602b7394160a472f143a13f9ee2b725098e51.tar.gz
[android] #3908 - No more beep
Diffstat (limited to 'platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/telemetry/TelemetryLocationReceiver.java')
-rw-r--r--platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/telemetry/TelemetryLocationReceiver.java11
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");
}
-
}
}