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

Commit 19703c51 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Global settings for Bluetooth (Settings.Global.BLUETOOTH_ON) must be...

Merge "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." am: 28c8ad15

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1919033

Change-Id: I911506f3f9ec5344f7a28ffe5cfa46327e988ba6
parents 2f095ae4 28c8ad15
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1850,6 +1850,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();
@@ -1863,7 +1867,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: