Created
April 27, 2017 01:27
-
-
Save tonyjs/82e248cab0bf3739a7f42f767db79074 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
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