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

Skip to content
Commit ef67156a authored by William Escande's avatar William Escande
Browse files

Restore devices volume after bluetooth restart

At AvrcpVolumeManager startup, we tried to read the sharedPref and to
save it in the memory. A clean is performed on this list to remove
non-bonded devices.
The issue here is that the getBondState was returning BOND_NONE for all
devices due to check perform on the adapter State.

We don't know why the adapter is not reported as STATE_ON at this point
but this check was added on all method to sanitize the shutdown process.
Because this is a cached value there is no risk from a crash at shutdown

Fix: 228415780
Ignore-AOSP-First: No caching done on AOSP
Test: Manual testing
Change-Id: I52362c3b511054abcb88e0cb83df95ba74c62ef4
parent b190025d
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