Merge "Bluetooth: persist state when turning on from BLE" into nyc-mr2-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
f77ca5fa18
@@ -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