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

Commit 25213da1 authored by Marie Janssen's avatar Marie Janssen
Browse files

Bluetooth: persist state when turning on from BLE

Test: in BLE_ON state, turn to full on, reboot phone
Bug: 33777496
Change-Id: I246d6ff0dcb81d66aa915ef443040d6fc3c98310
parent b5776f14
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1244,8 +1244,9 @@ class BluetoothManagerService extends IBluetoothManager.Stub {
                        if (mBluetooth != null) {
                            int state = mBluetooth.getState();
                            if (state == BluetoothAdapter.STATE_BLE_ON) {
                                Slog.w(TAG, "BT is in BLE_ON State");
                                Slog.w(TAG, "BT Enable in BLE_ON State, going to ON");
                                mBluetooth.onLeServiceUp();
                                persistBluetoothSetting(BLUETOOTH_ON_BLUETOOTH);
                                break;
                            }
                        }