Reduce noise by removing metadata from no gps location
This commit is contained in:
parent
6d48f8f714
commit
bcf1cff35e
|
@ -90,8 +90,9 @@ class BackendHelper extends AbstractBackendHelper {
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
|
||||||
updateElapsedRealtimeNanos(location);
|
updateElapsedRealtimeNanos(location);
|
||||||
}
|
}
|
||||||
location.getExtras()
|
Location noGpsLocation = new Location(location);
|
||||||
.putParcelable(LocationProviderBase.EXTRA_NO_GPS_LOCATION, new Location(location));
|
noGpsLocation.setExtras(null);
|
||||||
|
location.getExtras().putParcelable(LocationProviderBase.EXTRA_NO_GPS_LOCATION, noGpsLocation);
|
||||||
lastLocation = location;
|
lastLocation = location;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue