fix IndexOutOfBounds error when removing thumbnails

This commit is contained in:
Rohit Verma 2025-01-14 09:43:16 +05:30
parent d4a9bacd91
commit 50096cc433
No known key found for this signature in database

View file

@ -750,7 +750,10 @@ class UploadActivity : BaseActivity(), UploadContract.View, UploadBaseFragment.C
}
}
override fun onThumbnailDeleted(position: Int) = presenter!!.deletePictureAtIndex(position)
override fun onThumbnailDeleted(position: Int) {
presenter!!.deletePictureAtIndex(position)
thumbnailsAdapter?.notifyItemRemoved(position)
}
/**
* The adapter used to show image upload intermediate fragments