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

Commit 7b91e753 authored by William Escande's avatar William Escande Committed by Gerrit Code Review
Browse files

Merge "AdapterService: Not dumping before BLE_ON" into main

parents b831bd25 708a9221
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -7266,10 +7266,13 @@ public class AdapterService extends Service {

        final int currentState = mAdapterProperties.getState();
        if (currentState == BluetoothAdapter.STATE_OFF
                || currentState == BluetoothAdapter.STATE_BLE_TURNING_ON
                || currentState == BluetoothAdapter.STATE_TURNING_OFF
                || currentState == BluetoothAdapter.STATE_BLE_TURNING_OFF) {
            writer.println();
            writer.println("Not dumping, since Bluetooth is turning off");
            writer.println(
                    "Impossible to dump native stack. state="
                            + BluetoothAdapter.nameForState(currentState));
            writer.println();
        } else {
            mNativeInterface.dump(fd, args);