mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
Add TODO
This commit is contained in:
parent
a6e8b1d68a
commit
1b8e841a62
1 changed files with 1 additions and 0 deletions
|
|
@ -81,6 +81,7 @@ public class LocationServiceManager implements LocationListener {
|
|||
|
||||
public LatLng getLKN() {
|
||||
if (ContextCompat.checkSelfPermission(context, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED) {
|
||||
//TODO: Check for network provider as well?
|
||||
Location lastKN = locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);
|
||||
LatLng lastLatLng = LatLng.from(lastKN);
|
||||
return lastLatLng;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue