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
d4a9bacd91
commit
50096cc433
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
* The adapter used to show image upload intermediate fragments
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue