forked from upstream-mirrors/OpenTracks
Fixed check if GPS is enabled.
This commit is contained in:
+1
-5
@@ -174,11 +174,7 @@ public class MyTracksLocationManager {
|
||||
if (!isAllowed()) {
|
||||
return false;
|
||||
}
|
||||
String provider = LocationManager.GPS_PROVIDER;
|
||||
if (locationManager.getProvider(provider) == null) {
|
||||
return false;
|
||||
}
|
||||
return locationManager.isProviderEnabled(provider);
|
||||
return locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user