commit | e0bfa2efa24ad273d8b23061cad9b3b7dcdbf5b0 | [log] [tgz] |
---|---|---|
author | Marie Janssen <jamuraa@google.com> | Tue Dec 20 11:21:12 2016 -0800 |
committer | Andre Eisenbach <eisenbach@google.com> | Tue Dec 20 21:11:35 2016 +0000 |
tree | 4443f0ba19bd83ee334ffab0caf1217b8a0d52f0 | |
parent | edb8982c31aa19d7c15a23962784b3fa0ca92e46 [diff] [blame] |
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 1035ac8..86bbca7 100644 --- a/services/core/java/com/android/server/BluetoothManagerService.java +++ b/services/core/java/com/android/server/BluetoothManagerService.java
@@ -1282,8 +1282,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; } }