Skip to content

Instantly share code, notes, and snippets.

@tonyjs
Created April 27, 2017 01:27
Show Gist options
  • Save tonyjs/82e248cab0bf3739a7f42f767db79074 to your computer and use it in GitHub Desktop.
Save tonyjs/82e248cab0bf3739a7f42f767db79074 to your computer and use it in GitHub Desktop.
var shouldShowRequestPermissionRational = false
for(permission in permissions) {
if (shouldShowRequestPermissionRationale(permission)) {
shouldShowRequestPermissionRational = true
break
}
}
->
val shouldShowRequestPermissionRational = permissions.any { shouldShowRequestPermissionRationale(it) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment