-
-
Save parzibyte/90cc8b7ce2a61528d5936a4e3c3eb805 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
override fun onRequestPermissionsResult( | |
requestCode: Int, | |
permissions: Array<out String>, | |
grantResults: IntArray | |
) { | |
if (requestCode == CODIGO_PERMISOS_UBICACION_SEGUNDO_PLANO) { | |
val todosLosPermisosConcedidos = | |
grantResults.all { it == PackageManager.PERMISSION_GRANTED } | |
if (grantResults.isNotEmpty() && todosLosPermisosConcedidos) { | |
haConcedidoPermisos = true; | |
//El usuario concedió todos los permisos | |
} else { | |
// Uno o más permisos fueron denegados | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment