sangcomz / FishBun

:blowfish:FishBun is Image Picker for android.
Apache License 2.0
671 stars 144 forks source link

setSelectedImages paths result in incorrect data. #215

Closed neobie closed 4 years ago

neobie commented 4 years ago

Version: 0.11.4 setSelectedImages paths result in incorrect data. Even if no image is selected due to cancel, the paths add the selected image.

To Reproduce

  1. Enable option to setSelectedImages(paths).
  2. Go in album, select 1 image, but do not tap on tick button.
  3. Instead, exit album with back button, so the resultCode is not "RESULT_OK" (no image selected as being cancelled)
  4. Notice the "paths" data still increase by 1, adding the selected image paths.
sangcomz commented 4 years ago

@neobie I succeeded in reproducing. Thank you for a detailed description. I will fix it.

sangcomz commented 4 years ago

You can check it in version 0.11.5 or version 1.0.0-alpha03. thanks @neobie.

Please tell me again if any issues arise.