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

Android 10 issue #51

Open
Iftekhar29 opened this issue Apr 5, 2024 · 4 comments
Open

Android 10 issue #51

Iftekhar29 opened this issue Apr 5, 2024 · 4 comments

Comments

@Iftekhar29
Copy link

Hi
please check issue in android 10, image is not picking from picker

@ChochaNaresh
Copy link
Owner

Hi
Please run semple app first.

@Iftekhar29
Copy link
Author

Thanks for reply, I have run your sample app, and I'm getting same issue in there too.

image

i have changed "allowMultiple" to false

Screen_recording_20240408_144756.mp4

@islamYMansour
Copy link

I face the same issuse, did you find any solutions?

@islamYMansour
Copy link

islamYMansour commented Sep 7, 2024

Bug Report
Package: com.nareshchocha.filepickerlibrary.ui.activitys
Class: MediaFilePickerActivity

Description:
There is a bug in the following code where a null value is encountered:

image

Solution:
To handle the case where result.data?.data is null, the following fix was applied:

image

add this to the code
else if (result.data?.clipData != null) {
val data = result.data?.clipData?.getItemAt(0)?.uri
Timber.tag(Const.LogTag.FILE_RESULT).v("File Uri ::: ${data?.toString()}")
val filePath = data?.let { FileUtils.getRealPath(this, it) }
Timber.tag(Const.LogTag.FILE_RESULT).v("filePath ::: $filePath")
setSuccessResult(data, filePath)
}

@ChochaNaresh

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

3 participants