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

Commit d92cb04a authored by Alex Shabalin's avatar Alex Shabalin Committed by Alexandr Shabalin
Browse files

Run InfoMediaManager callbacks on a single thread.

- Creates an `Executor` and a `Handler` that run on the same thread.
- Terminates the handler thread when the last callback is unregistered.

Before this change `InfoMediaManager` used to have 2 threads for
 callbacks from 2 classes:
- For `MediaRouter2` it used a background thread executor.
- For `MediaController` it used a default handler which is a main thread
handler.

Fix: 425977951
Flag: EXEMPT bugfix
Test: on a physical device
Change-Id: I6bc89b54882b62fe876f055032392f8d72a9df67
parent cf894ee5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment