Bluetooth: persist state when turning on from BLE
Test: in BLE_ON state, turn to full on, reboot phone Bug: 33777496 Change-Id: I246d6ff0dcb81d66aa915ef443040d6fc3c98310
This commit is contained in:
@@ -1244,8 +1244,9 @@ class BluetoothManagerService extends IBluetoothManager.Stub {
|
|||||||
if (mBluetooth != null) {
|
if (mBluetooth != null) {
|
||||||
int state = mBluetooth.getState();
|
int state = mBluetooth.getState();
|
||||||
if (state == BluetoothAdapter.STATE_BLE_ON) {
|
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();
|
mBluetooth.onLeServiceUp();
|
||||||
|
persistBluetoothSetting(BLUETOOTH_ON_BLUETOOTH);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user