We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No description provided.
The text was updated successfully, but these errors were encountered:
private val mActivityEventListener: ActivityEventListener = object : BaseActivityEventListener() { override fun onActivityResult(activity: Activity, requestCode: Int, resultCode: Int, intent: Intent?) { if (requestCode == EDIT_SUCCESSFUL) { when (resultCode) { ResponseCode.RESULT_OK -> { val path = intent?.getStringExtra("path") promise?.resolve("file://$path") } ResponseCode.RESULT_CANCELED -> { promise?.reject("USER_CANCELLED", "User has cancelled", null) } ResponseCode.LOAD_IMAGE_FAILED -> { val path = intent?.getStringExtra("path") promise?.reject("LOAD_IMAGE_FAILED", "Load image failed: $path", null) }
} } }
}
Sorry, something went wrong.
Thanks for the suggestion @huynhuchuy2001, i made a pull request to add these changes to the repo.
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: