Skip to content

Instantly share code, notes, and snippets.

@ralphpina
Created March 15, 2019 20:27
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 ralphpina/1a067c2dabaa4e442b06049ad654a2df to your computer and use it in GitHub Desktop.
Save ralphpina/1a067c2dabaa4e442b06049ad654a2df to your computer and use it in GitHub Desktop.
permissionsManager.request(Permission.Location.Fine)
.doOnSuccess {
Toast.makeText(
dataBinding.root.context,
"Permission result for ${it[0].permission.value}, given: ${it[0].isGranted()}",
Toast.LENGTH_SHORT
).show()
}
.subscribe()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment