android-multipicker-library
android-multipicker-library copied to clipboard
onActivityResult is deprecated
Using onActivityResult for permission response in a fragment, but now it's deprecated.
Trying to using
registerForActivityResult<Intent, ActivityResult>( ActivityResultContracts.StartActivityForResult() ) { result -> if (result.resultCode == Activity.RESULT_OK) { } }
but it does not give requestCode to identify Picker.PICK_IMAGE_DEVICE or Picker.PICK_IMAGE_CAMERA
if you could have added extra while doing startActivityForResult then it would help to identify them