Loading android/app/src/com/android/bluetooth/btservice/AdapterState.java +3 −0 Original line number Diff line number Diff line Loading @@ -437,6 +437,7 @@ final class AdapterState extends StateMachine { case BREDR_START_TIMEOUT: errorLog("Error enabling Bluetooth (start timeout)"); mPendingCommandState.setTurningOn(false); adapterService.stopProfileServices(); transitionTo(mBleOnState); notifyAdapterStateChange(BluetoothAdapter.STATE_BLE_ON); break; Loading @@ -445,6 +446,8 @@ final class AdapterState extends StateMachine { errorLog("Error enabling Bluetooth (enable timeout)"); mPendingCommandState.setBleTurningOn(false); transitionTo(mOffState); adapterService.stopProfileServices(); adapterService.stopGattProfileService(); notifyAdapterStateChange(BluetoothAdapter.STATE_OFF); break; Loading Loading
android/app/src/com/android/bluetooth/btservice/AdapterState.java +3 −0 Original line number Diff line number Diff line Loading @@ -437,6 +437,7 @@ final class AdapterState extends StateMachine { case BREDR_START_TIMEOUT: errorLog("Error enabling Bluetooth (start timeout)"); mPendingCommandState.setTurningOn(false); adapterService.stopProfileServices(); transitionTo(mBleOnState); notifyAdapterStateChange(BluetoothAdapter.STATE_BLE_ON); break; Loading @@ -445,6 +446,8 @@ final class AdapterState extends StateMachine { errorLog("Error enabling Bluetooth (enable timeout)"); mPendingCommandState.setBleTurningOn(false); transitionTo(mOffState); adapterService.stopProfileServices(); adapterService.stopGattProfileService(); notifyAdapterStateChange(BluetoothAdapter.STATE_OFF); break; Loading