StfalconImageViewer
StfalconImageViewer copied to clipboard
Viewer hangs when used withTransitionFrom(imageView)
Problem
When the opened image is deleted using the overlay view and if the targetImageView was passed using .withTransitionFrom(targetImageView)
, then on swiping up or down on the image (i.e Dismissing the view using the swipe gesture), the viewer hangs as the item was removed from the original list.
To Reproduce Steps to reproduce the behavior:
- Make sure the targetImageView is passed to
.withTransitionFrom(targetImageView)
- Click on any image to open it in full screen.
- Delete the image using the delete icon from the overlay view
- Remove the deleted item from the original list
imagesList.removeAt(itemPos)
- Remove the deleted item from the adapter list
adapter.onItemDeleted(itemPos)
- Pass the updated original list to StfalconImageViewer
stfalconImageViewer.updateImages(imagesList)
- Swipe Up or Down to dismiss the viewer.
Expected behavior The view should be dismissed normally without getting hanged.
Screenshots
Attached below in order
Additional context I am using RecyclerView to show the list of the images. On clicking an image, the image is opened using StfalconImageViewer where the user has two options - Share and Delete.
Hey @mehul4795 Did you try to follow this part of the doc? Please let me know if it's resolved your problem