Skip to content

Instantly share code, notes, and snippets.

@illuzor
Created September 28, 2018 20:20
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 illuzor/4f56949f15ad4aab2d5b758d319b2696 to your computer and use it in GitHub Desktop.
Save illuzor/4f56949f15ad4aab2d5b758d319b2696 to your computer and use it in GitHub Desktop.
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
if (requestCode == SHARING_REQUEST_CODE || requestCode == SETTING_REQUEST_CODE) {
activity!!.revokeUriPermission(imageFileUri, Intent.FLAG_GRANT_READ_URI_PERMISSION)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment