Skip to content

Commit 549ca38

Browse files
committed
fix: indexOutOfBoundsException when removing last two images
1 parent 78666cc commit 549ca38

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/src/main/java/fr/free/nrw/commons/upload/UploadActivity.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -784,6 +784,7 @@ public void onPreviousButtonClicked(final int index) {
784784
@Override
785785
public void onThumbnailDeleted(final int position) {
786786
presenter.deletePictureAtIndex(position);
787+
thumbnailsAdapter.notifyItemRemoved(position);
787788
}
788789

789790
/**

0 commit comments

Comments
 (0)