I'm facing an issue with registerforActivityResult...
# compose
d
I'm facing an issue with registerforActivityResult for jetpack compose below is my composable function that i have build for getting the pdf files. On the button click the file explorer launches and i'm able to select files. But when i try this for first time. The
ActivityResultContracts.OpenMultipleDocuments()
returns a blank list and on the second try it actually work and returns the List<URI> for the files selected. Below is the entire code for Composable. Is there something that i'm missing