Skip to content

Commit

Permalink
Reduce noise by removing metadata from no gps location
Browse files Browse the repository at this point in the history
  • Loading branch information
mar-v-in committed Mar 14, 2016
1 parent 6d48f8f commit bcf1cff
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,9 @@ private void setLastLocation(Location location) {
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;
}

Expand Down

0 comments on commit bcf1cff

Please sign in to comment.