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

Added Dispatchers.Main coroutine scope when invoking listener.onDownloadStart() #134

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nishant-sbnri
Copy link

  • In the function download(_: String, _: String) of PdfDownloader.kt, listener.onDownloadStart() was being invoked in the Dispatchers.IO coroutine context.

  • This is resulting in Exception if the observer of this callback wants to make some UI change on main thread.

  • Added Dispatchers.Main coroutine scope when invoking onDownloadStart() callback.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Thank you for contributing to this project. This is your first pull request and we are so glad to have you onboard. We will review the request and get back to you soon. We love your contributions! Join our Discord community here to discuss this PR or ask questions.

Copy link

This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.

@github-actions github-actions bot added Stale and removed Stale labels Jun 17, 2024
Copy link

This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.

@github-actions github-actions bot added the Stale label Jul 18, 2024
@afreakyelf afreakyelf self-requested a review August 10, 2024 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants