diff --git a/commons/src/main/java/org/dhis2/commons/locationprovider/LocationProviderImpl.kt b/commons/src/main/java/org/dhis2/commons/locationprovider/LocationProviderImpl.kt index 562237618a..1583e3b54a 100644 --- a/commons/src/main/java/org/dhis2/commons/locationprovider/LocationProviderImpl.kt +++ b/commons/src/main/java/org/dhis2/commons/locationprovider/LocationProviderImpl.kt @@ -75,7 +75,8 @@ class LocationProviderImpl(val context: Context) : LocationProvider { } override fun hasLocationEnabled(): Boolean { - return locationManager.isProviderEnabled(locationProvider) + return locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER) || + locationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER) } override fun stopLocationUpdates() {