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

Commit 8e164dcc authored by Ted Wang's avatar Ted Wang
Browse files

Move out handling of BONDING_STATE_CHANGE in StableState

Move out handling of message BONDING_STATE_CHANGE when new state is
BOND_BONDING from StableState to PendingCommandState. This can make sure
device been added into mDevices of PendingCommandState if it should be.

Bug: 213365279
Test: Manully
Change-Id: I337791fa62c1b21949e693a75112c319c449a4a4
parent b4e5a976
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -148,7 +148,7 @@ final class BondStateMachine extends StateMachine {
                    int newState = msg.arg1;
                /* if incoming pairing, transition to pending state */
                    if (newState == BluetoothDevice.BOND_BONDING) {
                        sendIntent(dev, newState, 0);
                        deferMessage(msg);
                        transitionTo(mPendingCommandState);
                    } else if (newState == BluetoothDevice.BOND_NONE) {
                    /* if the link key was deleted by the stack */