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

Commit 38e5adff authored by Kiran Kelageri's avatar Kiran Kelageri Committed by Gerrit - the friendly Code Review server
Browse files

Bluetooth: Enable peripheral & mutli-adv in BLE-Always-on mode

This change modifies the conditional logic to allow the usage
of multi advertisements and peripheral mode when the adapter
state is either BLUETOOTH_ON or BLE_ON.

Change-Id: Ic118c1f7fe184e9c7bd0515c7200ee30693eb180
CRs-Fixed: 1079101
parent 58fca030
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1310,7 +1310,7 @@ public final class BluetoothAdapter {
     * @return true if Multiple Advertisement feature is supported
     */
    public boolean isMultipleAdvertisementSupported() {
        if (getState() != STATE_ON) return false;
        if (!getLeAccess()) return false;
        try {
            mServiceLock.readLock().lock();
            if (mService != null) return mService.isMultiAdvertisementSupported();
@@ -1348,7 +1348,7 @@ public final class BluetoothAdapter {
     * @hide
     */
    public boolean isPeripheralModeSupported() {
        if (getState() != STATE_ON) return false;
        if (!getLeAccess()) return false;
        try {
            mServiceLock.readLock().lock();
            if (mService != null) return mService.isPeripheralModeSupported();