Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 0b1e4696 authored by Atneya Nair's avatar Atneya Nair Committed by Cherrypicker Worker
Browse files

Move AudioService recv off of main thread

Some of the calls in the AudioService broadcast receiver are expensive,
and posting them to the main thread can lead to slow-down/ANR.
Additionally, there is no need to handle these events on the main
thread.

Move the receiver to a dedicated handler thread. Eventually, this should
be combined with the handler we already have for events.

Test: Smoke test (bt connect)
Fixes: 335457435
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:b7c3f0488a0943a832a49b070b95f93deeff402b)
Merged-In: Ibc6b95f7bd628a63c565adfa7f5d52cdcda9fb1b
Change-Id: Ibc6b95f7bd628a63c565adfa7f5d52cdcda9fb1b
parent 7e5c107f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment