Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created August 3, 2021 01:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/f7d3fe6cb363647ddbba11bf3f471ef4 to your computer and use it in GitHub Desktop.
Save parzibyte/f7d3fe6cb363647ddbba11bf3f471ef4 to your computer and use it in GitHub Desktop.
private fun tienePermisos(permisos: Array<String>): Boolean {
return permisos.all {
return ContextCompat.checkSelfPermission(
requireActivity(),
it
) == PackageManager.PERMISSION_GRANTED
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment