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

Commit 380f0dbc authored by Mallikarjuna GB's avatar Mallikarjuna GB Committed by Andre Eisenbach
Browse files

Handle multiple BLDN commands from headset

When multiple AT+BLDN commands are received
from headset, return ERROR if dialling process
is started for the first AT+BLDN.

Change-Id: I603eb5c5ccdd5f8606a355e5d464e6493d1e7fd9
parent f34fce97
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -2537,6 +2537,12 @@ final class HeadsetStateMachine extends StateMachine {
        }

        String dialNumber;
        if (mDialingOut) {
            if (DBG) log("processDialCall, already dialling");
            atResponseCodeNative(HeadsetHalConstants.AT_RESPONSE_ERROR, 0,
                                       getByteAddress(device));
            return;
        }
        if ((number == null) || (number.length() == 0)) {
            dialNumber = mPhonebook.getLastDialledNumber();
            if (dialNumber == null) {