Closed fernandoperez0330 closed 1 year ago
For what it's worth, this code stops the crashing and im able now to get the photo but don't know if this it's a integral solution here.
I'm facing the same issue on Samsung S21 Ultra, recently upgraded to Android 13, up to android 12 still works
I had to downgrade from ACTION_GET_CONTENT
to ACTION_OPEN_DOCUMENT
due to these:
https://github.com/Yalantis/uCrop/issues/857 & https://github.com/Drjacky/ImagePicker/issues/77
But anyway, please try this new version: 2.3.21
Related to #88.
I actually fixed this issue, but my changes to the GalleryProvider were not included. See: https://github.com/Catlandor/ImagePicker/commit/2af4c3d11d8103505c1dfa5acdceeeec48705700#diff-b2b473b09e781f64ffe811773512b42c506a13e8c77f8bc6f0ddf97c4bbb89f2
The URI from callback in the gallery launcher is returning null when it's picking the image from Google Photos. Making the app crashing after the image being cropped. To be more specific, it's the line to get the URI (it.data?.data!!) in the code below:
How to Reproduce? 1- Pick the photo from gallery. 2- Select Google Photos
3- Pick a photo from the google photo gallery.
4- Crop the image and tap the tick icon at the right top.
Here's the configuration that the app is using for the imagePicker:
Devices affected (6)
Device Brand:Google Model:Pixel 7 Operating System Version:Android 13 File Permission: Yes
=========================
Device Brand:FIH Model:AT&T Motivate™ 2 Operating System Version:Android 11 File Permission: Yes
=========================
Device Brand:HUAWEI Model:P20 Pro Operating System Version: Android 10 File Permission: Yes