-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IndexOutOfBoundsException crash when removing last two images of multiupload #6122
Comments
I'll take this issue 😀 |
Hey @nicolas-raoul, I've solved the issue and also found a strange behavior that you can see in the screencast below. Removing the last image removes all images except the first one. Screen_recording_20250113_140703.mp4 |
I should fix the above issue as well, right @nicolas-raoul? |
Sorry I had forgotten about your comment above. Feel free to either fix it or leave it as a separate issue, like you want. 🙂 |
No problem, I am fixing this issue as well. |
I found that the image was not deleted but the top card was closed when deleting the last image due to this if-condition: apps-android-commons/app/src/main/java/fr/free/nrw/commons/upload/UploadPresenter.kt Lines 149 to 153 in 3032270
I don't understand the purpose of the above check but it seems like intended or maybe a mistake. What do you think @nicolas-raoul? Removing above check fixed the issue: Fix.mp4 |
I am not sure why the comment mentions MediaDetailsFragment, I believe MediaDetailsFragment was unrelated to upload. Did you notice any bad side effect after removing it? If not, would you mind updating the pull request? Thanks! |
No, I didn't get any side-effects after removing that if-condition. I'm updating the pull-request :) |
@nicolas-raoul, do we have the same |
No, I am sure this top carousel is only used in the upload wizard. |
Alright @nicolas-raoul, I've pushed the changes. Please feel free to test the latest changes : |
screen-20250112-142958.mp4
The text was updated successfully, but these errors were encountered: