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

Commit 7a2974c8 authored by Eric Laurent's avatar Eric Laurent
Browse files

AudioManager: fix device callbacks when native audio server restarts

Fix device comparison when creating the list of added or removed devices
in broadcastDeviceListChange_sync(): compare only type and address as
the port ID changes when the native audio server restarts.

Also reload the device port cache when the native audio server death
notification is received in the AudioPortEventHandler instead of doing
it later n the OnAmPortUpdateListener callback.

This avoids sending spurious audio device removed/added callbacks to
clients.

Bug: 378032953
Test: restart audioserver multiple times
Flag: EXEMPT bug fix
Change-Id: I8a36c240be0ab8d5e78e8ae4566412d850cf361e
parent d9f8adde
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