Reduce noise by removing metadata from no gps location

This commit is contained in:
Marvin W 2016-03-14 19:23:13 +01:00
parent 6d48f8f714
commit bcf1cff35e

View file

@ -90,8 +90,9 @@ class BackendHelper extends AbstractBackendHelper {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
updateElapsedRealtimeNanos(location);
}
location.getExtras()
.putParcelable(LocationProviderBase.EXTRA_NO_GPS_LOCATION, new Location(location));
Location noGpsLocation = new Location(location);
noGpsLocation.setExtras(null);
location.getExtras().putParcelable(LocationProviderBase.EXTRA_NO_GPS_LOCATION, noGpsLocation);
lastLocation = location;
}