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

Commit 0cbc4474 authored by Himanshu Rawat's avatar Himanshu Rawat
Browse files

Global settings for Bluetooth (Settings.Global.BLUETOOTH_ON) must be set to...

Global settings for Bluetooth (Settings.Global.BLUETOOTH_ON) must be set to BLUETOOTH_ON_BLUETOOTH whenever non-BLE MESSAGE_ENABLE is handled irrespective of the state.

Bug: 208777033
Test: Manual
Change-Id: I92c58cd8f4510f91453bf77166af9d304030483f
(cherry picked from commit 465382bb)
parent 06328c7a
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1869,6 +1869,10 @@ class BluetoothManagerService extends IBluetoothManager.Stub {
                    mHandler.removeMessages(MESSAGE_RESTART_BLUETOOTH_SERVICE);
                    mEnable = true;

                    if (isBle == 0) {
                        persistBluetoothSetting(BLUETOOTH_ON_BLUETOOTH);
                    }

                    // Use service interface to get the exact state
                    try {
                        mBluetoothLock.readLock().lock();
@@ -1882,7 +1886,6 @@ class BluetoothManagerService extends IBluetoothManager.Stub {
                                    } else {
                                        Slog.w(TAG, "BT Enable in BLE_ON State, going to ON");
                                        mBluetooth.onLeServiceUp(mContext.getAttributionSource());
                                        persistBluetoothSetting(BLUETOOTH_ON_BLUETOOTH);
                                    }
                                    break;
                                case BluetoothAdapter.STATE_BLE_TURNING_ON: