mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
Bug 1211435: Cleanup AVRCP interfaces when Bluetooth adapter gets switched off, r=shuang
Cleaning up AVRCP was forgotten in bug 1199110.
This commit is contained in:
parent
5db5ee8b4c
commit
bc620fb2b2
@ -1890,9 +1890,11 @@ BluetoothServiceBluedroid::AdapterStateChangedNotification(bool aState)
|
||||
|
||||
if (!mEnabled) {
|
||||
static void (* const sDeinitManager[])(BluetoothProfileResultHandler*) = {
|
||||
BluetoothHfpManager::DeinitHfpInterface,
|
||||
// Cleanup interfaces in opposite order to initialization.
|
||||
BluetoothGattManager::DeinitGattInterface,
|
||||
BluetoothAvrcpManager::DeinitAvrcpInterface,
|
||||
BluetoothA2dpManager::DeinitA2dpInterface,
|
||||
BluetoothGattManager::DeinitGattInterface
|
||||
BluetoothHfpManager::DeinitHfpInterface
|
||||
};
|
||||
|
||||
// Return error if BluetoothService is unavailable
|
||||
|
Loading…
Reference in New Issue
Block a user