зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
5db5ee8b4c
Коммит
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
|
||||
|
|
Загрузка…
Ссылка в новой задаче