Skip to content

Commit

Permalink
Make sure that sub-locations are also network locations
Browse files Browse the repository at this point in the history
  • Loading branch information
mar-v-in committed Feb 17, 2015
1 parent 545c1e3 commit 0161311
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/org/microg/nlp/location/BackendHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ private void setLastLocation(Location location) {
location.getExtras().putString(LOCATION_EXTRA_BACKEND_PROVIDER, location.getProvider());
location.getExtras().putString(LOCATION_EXTRA_BACKEND_COMPONENT,
serviceIntent.getComponent().flattenToShortString());
location.setProvider("network");
if (!location.hasAccuracy()) {
location.setAccuracy(50000);
}
Expand Down

0 comments on commit 0161311

Please sign in to comment.