mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 12:53:55 +01:00
fix IndexOutOfBounds error when removing thumbnails
This commit is contained in:
parent
fdfd7781e9
commit
6f75927432
1 changed files with 4 additions and 1 deletions
|
|
@ -797,7 +797,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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue