Skip to content

Processing PowerInfo broadcast async - #1229

Open
ajadusum wants to merge 5 commits into
mainfrom
ajadusum/powbroadasync
Open

Processing PowerInfo broadcast async#1229
ajadusum wants to merge 5 commits into
mainfrom
ajadusum/powbroadasync

Conversation

@ajadusum

@ajadusum ajadusum commented Jan 4, 2024

Copy link
Copy Markdown

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
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@lalitb

Copy link
Copy Markdown
Contributor

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

@ajadusum

Copy link
Copy Markdown
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
Copy Markdown
Contributor

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