Skip to content
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

5282: Resume uploads that get stuck because of app being killed or device being rebooted #5399

Conversation

RitikaPahwa4444
Copy link
Collaborator

Description (required)

Fixes #5282

What changes did you make and why?

Added checkAndResumeStuckUploads() to check for any stuck uploads from the database and resume them.

Tests performed (required)

Tested prodDebug on Redmi 5A with API level 27.

Copy link
Member

@nicolas-raoul nicolas-raoul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks great.
Tested on 10 multiuploads of up to 15 pictures, cutting the Internet twice, rebooting once, closing the app via swipe 5 times: All pictures eventually uploaded well (included one queued which required a different upload to get unstuck), just one shown as non uploaded despite being uploaded.

Thanks Ritika!

@nicolas-raoul nicolas-raoul merged commit d9e41b9 into commons-app:main Dec 12, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upload gets stuck after the app has been closed/killed or the device has been rebooted
2 participants