mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 12:53:55 +01:00
Minor change
This commit is contained in:
parent
2742184489
commit
1ecaafa3de
1 changed files with 2 additions and 1 deletions
|
|
@ -39,10 +39,11 @@ public class GPSExtractor {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void registerLocationManager() {
|
protected void registerLocationManager() {
|
||||||
|
locationManager = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE);
|
||||||
criteria = new Criteria();
|
criteria = new Criteria();
|
||||||
provider = locationManager.getBestProvider(criteria, true);
|
provider = locationManager.getBestProvider(criteria, true);
|
||||||
myLocationListener = new MyLocationListener();
|
myLocationListener = new MyLocationListener();
|
||||||
locationManager = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE);
|
|
||||||
locationManager.requestLocationUpdates(provider, 400, 1, myLocationListener);
|
locationManager.requestLocationUpdates(provider, 400, 1, myLocationListener);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue