vmadalin / easypermissions-ktx

🔓 Kotlin version of the popular google/easypermissions wrapper library to simplify basic system permissions logic on Android M or higher.
https://firebaseopensource.com/projects/googlesamples/easypermissions/
Apache License 2.0
382 stars 38 forks source link

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

Open 24suixinsuoyu opened 2 years ago

24suixinsuoyu commented 2 years ago

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)