HBiSoft / PickiT

An Android library that returns real paths from Uri's
MIT License
292 stars 54 forks source link

Inconsistency when Getting Multiple Paths from clipData #60

Closed habibicodz closed 1 year ago

habibicodz commented 1 year ago

Hi engineers, There is a problem when returning multiple paths at once. If clipData has 23 items then calling pickiT.getMultiplePaths(clipData) call pickiTonCompleteListener 2 times with single path each and pickiTonMultipleComplete 1 time with 21 paths

What i wanted is that calling pickiT.getMultiplePaths(clipData) should only called pickiTonMultipleCompleteListener() with returning to all data at once and not calling pickiTonCompleteListener() which contains single item.

Statistically report: What i want > Input: pickiT.getMultiplePaths(clipData) //contains 23 items

Output: PickiTonMultipleCompleteListener() return 23 paths

What is happening: pickiT.getMultiplePaths(clipData) //contains 23 items

Output: PickiTonCompleteListener() return 1 item PickiTonCompleteListener() return 1 item again PickiTonMultipleCompleteListener() return 21 paths

Sorry for my bad english.