Closed HenryGaoGH closed 7 months ago
@HenryGaoGH Thank you for your PR. I think you will need throw error, because if you return empty array, you will not be able to know if you are unchecking the previous images or canceling the picker.
mediaPickerResult?.error("CANCELED", "User has canceled the picker", null)
Similar to the iOS handling: https://github.com/howljs/hl_image_picker/blob/464dc1e70e757b8f2e2ccb7efd1c14d4dc0d877f/hl_image_picker_ios/ios/Classes/HLImagePickerPlugin.swift#L331
I will check again and help you fix this issue right now
@HenryGaoGH Thank you for your PR. I think you will need throw error, because if you return empty array, you will not be able to know if you are unchecking the previous images or canceling the picker.
mediaPickerResult?.error("CANCELED", "User has canceled the picker", null)
Similar to the iOS handling:
You are right! Returning an exception is better than successfully returning an empty array
@HenryGaoGH I checked and it's working fine. Please help me update PR and test it again. Thanks
@HenryGaoGH I checked and it's working fine. Please help me update PR and test it again. Thanks
yeap! I have also dealt with it
sorry. I forgot, we also need to update openCamera too. Don't need update openCropper. Let me know when you updated the PR, I will merge it. Thanks
sorry. I forgot, we also need to update openCamera too. Don't need update openCropper. Let me know when you updated the PR, I will merge it. Thanks
OK, I'll deal with it after lunch. 😄
@howljs Pls. check it and approved
The new version is available 🎉
20 Cancel button cause the function holding infinitely is fixed
fix can't back images when touch cancel button.