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

Commit 97a2dc68 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Bluetooth: Send the state change before cleanup"

parents 43c2d83c b6039fd6
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -214,6 +214,13 @@ final class A2dpStateMachine extends StateMachine {
    }

    public void cleanup() {
        int deviceSize = mConnectedDevicesList.size();
        log("cleanup: mConnectedDevicesList size is " + deviceSize);
        for (int i = 0; i < deviceSize; i++) {
             mCurrentDevice = mConnectedDevicesList.get(i);
             broadcastConnectionState(mCurrentDevice, BluetoothProfile.STATE_DISCONNECTED,
                                      BluetoothProfile.STATE_CONNECTED);
        }
        cleanupNative();
    }