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()) {
|
if (!isAllowed()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
String provider = LocationManager.GPS_PROVIDER;
|
return locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER);
|
||||||
if (locationManager.getProvider(provider) == null) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return locationManager.isProviderEnabled(provider);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user