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

Commit dba34c5d authored by Pulkit Bhuwalka's avatar Pulkit Bhuwalka
Browse files

Persist Bluetooth CoD config value across reboot

Create new Settings key for storage and update the API doc.

Bug: 36015415
Test: Verified by storing a value through a test app and restarting the
machine to ensure it's picked up.

Change-Id: I94aa054e525c4656bb3a824a29cae9c88f8904e0
parent bb67ea63
Loading
Loading
Loading
Loading
+4 −2
Original line number Original line Diff line number Diff line
@@ -1134,8 +1134,10 @@ public final class BluetoothAdapter {
    }
    }


    /**
    /**
     * Sets the {@link BluetoothClass} Bluetooth Class of Device (CoD) of
     * Sets the {@link BluetoothClass} Bluetooth Class of Device (CoD) of the local Bluetooth
     * the local Bluetooth adapter.
     * adapter.
     *
     * <p>Note: This value persists across system reboot.
     *
     *
     * @param bluetoothClass {@link BluetoothClass} to set the local Bluetooth adapter to.
     * @param bluetoothClass {@link BluetoothClass} to set the local Bluetooth adapter to.
     * @return true if successful, false if unsuccessful.
     * @return true if successful, false if unsuccessful.