Skip to content
New issue

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

PermissionRequest.Builder.perms() -> the param: REQUEST_CODE_LOCATION_AND_CONTACTS_PERMISSION is mismatched. #12

Open
24suixinsuoyu opened this issue Mar 25, 2022 · 0 comments

Comments

@24suixinsuoyu
Copy link

24suixinsuoyu commented Mar 25, 2022

Code and logs

val request = PermissionRequest.Builder(spyActivity)
.code(REQUEST_CODE)
.perms(REQUEST_CODE_LOCATION_AND_CONTACTS_PERMISSION)
.theme(R.style.my_fancy_style)
.rationale(R.string.camera_and_location_rationale)
.positiveButtonText(R.string.rationale_ask_ok)
.negativeButtonText(R.string.rationale_ask_cancel)
.build()
EasyPermissions.requestPermissions(spyActivity, request)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant