We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31c6888 commit 38dc0c3Copy full SHA for 38dc0c3
app/src/main/java/fr/free/nrw/commons/location/LocationServiceManager.java
@@ -45,12 +45,12 @@ public LocationServiceManager(Context context) {
45
}
46
47
/**
48
- * Returns the current status of the GPS provider.
+ * Returns the current status of the location provider.
49
*
50
- * @return true if the GPS provider is enabled
+ * @return true if the location provider is enabled
51
*/
52
public boolean isProviderEnabled() {
53
- return locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER);
+ return (locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER) || locationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER));
54
55
56
0 commit comments