-
-
Save parzibyte/f7d3fe6cb363647ddbba11bf3f471ef4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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