StfalconImageViewer icon indicating copy to clipboard operation
StfalconImageViewer copied to clipboard

Viewer hangs when used withTransitionFrom(imageView)

Open mehul4795 opened this issue 5 years ago • 1 comments

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:

  1. Make sure the targetImageView is passed to .withTransitionFrom(targetImageView)
  2. Click on any image to open it in full screen.
  3. Delete the image using the delete icon from the overlay view
  4. Remove the deleted item from the original list imagesList.removeAt(itemPos)
  5. Remove the deleted item from the adapter list adapter.onItemDeleted(itemPos)
  6. Pass the updated original list to StfalconImageViewer stfalconImageViewer.updateImages(imagesList)
  7. Swipe Up or Down to dismiss the viewer.

Expected behavior The view should be dismissed normally without getting hanged.

Screenshots Attached below in order sc1 sc2 sc3 sc4

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.

mehul4795 avatar Jun 02 '19 07:06 mehul4795

Hey @mehul4795 Did you try to follow this part of the doc? Please let me know if it's resolved your problem

troy379 avatar Nov 15 '19 16:11 troy379