[android] #3908 - No more beep

This commit is contained in:
Brad Leege
2016-02-11 10:39:00 -08:00
parent 43ed846a12
commit 7ca602b739

View File

@@ -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");
}
}
}