mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-29 05:43:55 +01:00
Fixes leaks in contribution and nearby activity
This commit is contained in:
parent
e429667f3a
commit
d4bafd94e0
5 changed files with 84 additions and 106 deletions
|
|
@ -21,6 +21,10 @@ public class LocationServiceManager implements LocationListener {
|
|||
provider = locationManager.getBestProvider(new Criteria(), true);
|
||||
}
|
||||
|
||||
public boolean isProviderEnabled() {
|
||||
return locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER);
|
||||
}
|
||||
|
||||
public LatLng getLatestLocation() {
|
||||
return latestLocation;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue