mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
* Prevent dialog from appearing if location is enabled * Update Javadoc
This commit is contained in:
parent
31c688860d
commit
38dc0c3fc8
1 changed files with 3 additions and 3 deletions
|
|
@ -45,12 +45,12 @@ public class LocationServiceManager implements LocationListener {
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns the current status of the GPS provider.
|
||||
* Returns the current status of the location provider.
|
||||
*
|
||||
* @return true if the GPS provider is enabled
|
||||
* @return true if the location provider is enabled
|
||||
*/
|
||||
public boolean isProviderEnabled() {
|
||||
return locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER);
|
||||
return (locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER) || locationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue