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

Revert back to MainScope for database and ui updates #5914

Merged
merged 2 commits into from
Nov 4, 2024

Conversation

rohit9625
Copy link
Contributor

Description (required)

Fixes #5898

What changes did you make and why?
Revert back to MainScope() in the ImageLoader.kt file because that code block contains both UI and database operations.

Tests performed (required)

Tested prodDebug on Samsung A14 with API level 34.

Screenshots (for UI changes only)
None

@nicolas-raoul
Copy link
Member

Would you mind linking to the commit that this is reverting? Thanks a lot! 🙂

@rohit9625
Copy link
Contributor Author

How to do that? 😅

@nicolas-raoul
Copy link
Member

Don't worry I found it: cdc4f89#diff-2f6019450f14d4da6fa575a7edebd478f4dc0828fc14b95a2ec0b9d83104da8cL68 :-)

It gives context on the revert.

@rohit9625
Copy link
Contributor Author

Thank you @nicolas-raoul
Should I fix the failing tests or someone is working on it?

@nicolas-raoul
Copy link
Member

Testing this now, it indeed fixes #5919 :-)

I don't think anyone is working on the unit tests, feel free to work on them, thanks a lot! #5921

@nicolas-raoul nicolas-raoul merged commit 091ddb5 into commons-app:main Nov 4, 2024
1 check failed
@sivaraam sivaraam mentioned this pull request Nov 10, 2024
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants