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

Processing PowerInfo broadcast async #1229

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Conversation

ajadusum
Copy link

@ajadusum ajadusum commented Jan 4, 2024

Issue: PowerInfoReceiver in HttpClient is processing broadcast on main thread. Android guideline is to avoid working on main thread on broadcast.

Fix: HttpClient already has a executor, processing the broadcast message async on the executor.

@ajadusum ajadusum requested a review from a team as a code owner January 4, 2024 22:05
Copy link
Contributor

@mkoscumb mkoscumb left a comment

Choose a reason for hiding this comment

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

LGTM

@lalitb
Copy link
Contributor

lalitb commented Jan 16, 2024

@ajadusum The android build is failing. Can you check if this is related to your changes ?

@ajadusum
Copy link
Author

@ajadusum The android build is failing. Can you check if this is related to your changes ?

Yes, a test is failing. I will fix the mocks tomorrow.

Copy link
Contributor

@lalitb lalitb left a comment

Choose a reason for hiding this comment

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

The CI is breaking. Needs to be fixed before merge.

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.

4 participants