ImagePicker: It's not loading the images after updating to 1.4.1 or 1.4.0
Hi @nguyenhoanglam, Thanks for this awesome library it is very useful for me, but recently after I update the module to the latest version it stops working, it opens but it keeps loading without showing the folders.
and here how I am implementing the ImagePicker:
`
ImagePicker.with(myFragment!!) .setToolbarColor(“#3F51B5”) .setStatusBarColor(“#000000”) .setToolbarTextColor(“#FFFFFF”) .setToolbarIconColor(“#FFFFFF”) .setProgressBarColor(“#4CAF50”) .setBackgroundColor(“#FFFFFF”) .setCameraOnly(false) .setMultipleMode(true) .setFolderMode(true) .setShowCamera(false) .setFolderTitle(“Folder title”) .setImageTitle(“Image title”) .setDoneTitle(getString(R.string.submitText)) .setLimitMessage(getString(R.string.reachImagesLimitErrorMessage)) .setMaxSize(100) .setAlwaysShowDoneButton(true) .start()
`
And to be noted I am using android and Kotlin v.1.3.72.
And thanks in advance, Regards.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 37 (14 by maintainers)
@ma7moudAziz @robiky I followed your debug guide, made some changes in the loop block. But I still not sure that it’ll fix the issue.
So I built an example apk and hope you will install it to check if the issue is gone! Please download the file in the link below: https://drive.google.com/file/d/1V-XAAIRcfxWuFICO2PKeCuWTTbuO4wrz/view?usp=sharing
Hi, Just tested the apk. This works for me too. This is Xiaomi redmi phone. Thanks for the great work.
Sorry couldn’t test/reply earlier because was busy with a major update on my app.
On Mon, 29 Jun, 2020, 9:43 PM Nguyen Hoang Lam, notifications@github.com wrote:
Hi @nguyenhoanglam, I debugged it again to make sure, I notice that all the images returned are the same, for ex: all images in the array had the same name, the same id which means it’s stuck on the first image as it seems “cursor.moveToPrevious()” it’s not really getting the previous image
To be noted the function returns true.
Regards.
Hi @nguyenhoanglam, yes here there are 2 points drove me to this conclusion as follows:
At first glance, I never reach the breaking point set on this listener.onImageLoaded(images).
And second, the device had only 114 images, and if you check the image I’ve sent I was already at the iteration number 140, which exceeds the maximum number of the images in the device.
The weird thing here that if I use Samsung or HTC or Sony devices even if the OS version was 9 the gallery opens normally with no issues but this only occurs for Huawei devices in my case and Asus as the case of @shanzeehashmi.
I know it’s hard for you to fix such an issue, especially that it’s not replicable locally for you (I’ve been there) but I’ll try to help you as much as I can.
Best Regards.
i had tested in android 9.0 in asus. The issue is occuring in this device as far my concern, else i have tested in other version with real device, their it is fine
On Tue, 16 Jun 2020 at 12:50, Mahmoud Aziz notifications@github.com wrote:
Hi @nguyenhoanglam, Thanks for the shared APK, I’ve tried it but the issue keeps occurring.
To be noted I’ve tried this on multiple phones it’s working just fine the issue is only occurring on Huawei devices whatever the OS version, @shanzeehashmi, and @vjjustin can you please confirm the devices used for testing.
Also to be noted version 1.3.2 it’s working fine even on the Huawei devices if this might help.
Best Regards.
i have checked first time of this version works fine @nguyenhoanglam
same here please has this been fixed