commit | fa9bec95a5909f75575758f093dedda753a2cfac | [log] [tgz] |
---|---|---|
author | Marie Janssen <jamuraa@google.com> | Tue Dec 20 11:21:12 2016 -0800 |
committer | Marie Janssen <jamuraa@google.com> | Tue Dec 20 13:09:47 2016 -0800 |
tree | f7839cb648a1ebebdeef855b7f16e258772a2958 | |
parent | 2f42cbcad5df693327295e46b84de04a8d12ecd2 [diff] |
Bluetooth: persist state when turning on from BLE Test: in BLE_ON state, turn to full on, reboot phone Bug: 33777496 Change-Id: I246d6ff0dcb81d66aa915ef443040d6fc3c98310
diff --git a/services/core/java/com/android/server/BluetoothManagerService.java b/services/core/java/com/android/server/BluetoothManagerService.java index 9b21208..7f42d1c 100644 --- a/services/core/java/com/android/server/BluetoothManagerService.java +++ b/services/core/java/com/android/server/BluetoothManagerService.java
@@ -1244,8 +1244,9 @@ 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; } }