diff --git a/runtimepermission/src/main/java/com/runtimepermissions/PermissionsManager.kt b/runtimepermission/src/main/java/com/runtimepermissions/PermissionsManager.kt index 6a0bbac..dab2866 100644 --- a/runtimepermission/src/main/java/com/runtimepermissions/PermissionsManager.kt +++ b/runtimepermission/src/main/java/com/runtimepermissions/PermissionsManager.kt @@ -21,6 +21,10 @@ object PermissionsManager { validatePermissions(context, permissions, callBack) } + fun askPermissions(context: Context, permissions: ArrayList, callBack: PermissionCallBack) { + validatePermissions(context, permissions.toArray() as Array, callBack) + } + private fun validatePermissions(context: Context, permissions: Array, callBack: PermissionCallBack) { if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) { callBack.onAccepted(permissions.toCollection(ArrayList()))