Commit b3348b48 by Maurits van Beusekom Committed by GitHub

Merge pull request #270 from sososdk/patch-1

Fix #267
parents ac1147d0 0ccc71b3
......@@ -36,11 +36,12 @@ final class ServiceManager {
if (permission == PermissionConstants.PERMISSION_GROUP_LOCATION ||
permission == PermissionConstants.PERMISSION_GROUP_LOCATION_ALWAYS ||
permission == PermissionConstants.PERMISSION_GROUP_LOCATION_WHEN_IN_USE) {
final int serviceStatus = isLocationServiceEnabled(context)
? PermissionConstants.SERVICE_STATUS_ENABLED
: PermissionConstants.SERVICE_STATUS_DISABLED;
final int serviceStatus = isLocationServiceEnabled(context)
? PermissionConstants.SERVICE_STATUS_ENABLED
: PermissionConstants.SERVICE_STATUS_DISABLED;
successCallback.onSuccess(serviceStatus);
successCallback.onSuccess(serviceStatus);
return;
}
if (permission == PermissionConstants.PERMISSION_GROUP_PHONE) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment