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

Commit ae52acb0 authored by Pavlin Radoslavov's avatar Pavlin Radoslavov Committed by Android Git Automerger
Browse files

am 9cd1c83e: am dd0edf4d: am 9724d4d1: Set the Bluetooth state to OFF if there...

am 9cd1c83e: am dd0edf4d: am 9724d4d1: Set the Bluetooth state to OFF if there is disable timeout error

* commit '9cd1c83e':
  Set the Bluetooth state to OFF if there is disable timeout error
parents 69b6eee2 9cd1c83e
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -462,9 +462,14 @@ final class AdapterState extends StateMachine {

                case DISABLE_TIMEOUT:
                    errorLog("Error disabling Bluetooth (disable timeout)");
                    if (isTurningOn)
                        mPendingCommandState.setTurningOn(false);
                    adapterService.stopProfileServices();
                    adapterService.stopGattProfileService();
                    mPendingCommandState.setTurningOff(false);
                    transitionTo(mOnState);
                    notifyAdapterStateChange(BluetoothAdapter.STATE_ON);
                    setBleTurningOff(false);
                    transitionTo(mOffState);
                    notifyAdapterStateChange(BluetoothAdapter.STATE_OFF);
                    break;

                default: