Android-Custom-Gallery icon indicating copy to clipboard operation
Android-Custom-Gallery copied to clipboard

Getting CursorIndexOutOfBoundsException when media file less than 10

Open vikas-markk opened this issue 4 years ago • 6 comments

vikas-markk avatar Apr 29 '21 13:04 vikas-markk

@vikas-markk please add details to it with recreation steps else this issue will be closed asap.

mmobin789 avatar May 01 '21 20:05 mmobin789

Below steps to create above issue.

  1. Clear gallery media.
  2. Add 2 or 4 photos set page size to 20.
  3. Unable to see anything in list, its will throw above exception.

vikas-markk avatar May 02 '21 17:05 vikas-markk

@vikas-markk A fix for this will be up on master in a few days !

Keep watching this repo.

Thanks.

mmobin789 avatar May 04 '21 10:05 mmobin789

@vikas-markk I just launched both modules on an emulator with empty gallery.

This exception was only logged in rx/flow not thrown.

If you are passing any invalid value as page size then this behaviour may occur.

I don't see any correction to be made in the gallery itself.

If you think there is something wrong with the gallery fetch logic itself please do share debug screenshots or stack traces. else there is not much to go on and close this issue.

Thanks.

mmobin789 avatar May 05 '21 17:05 mmobin789

@mmobin789 with gallery <20, how can you resolve fetch image with that.

dangminh589178 avatar Dec 20 '21 07:12 dangminh589178

Please test this branch out with the fix fix/6 and update here. @dangminh589178 @vikas-markk

If it works we can close this issue and I will merge this into master.

Thanks.

mmobin789 avatar Dec 23 '21 13:12 mmobin789