commit | 11f83882f2a4448b5a2bbbb9e23b700096ed7536 | [log] [tgz] |
---|---|---|
author | Nitin Arora <niarora@codeaurora.org> | Thu May 07 18:45:44 2015 -0700 |
committer | Andre Eisenbach <eisenbach@google.com> | Tue May 19 22:38:46 2015 -0700 |
tree | fb8ed228d86139c44293d6ea1b2f3bbbd0dffbe4 | |
parent | cf4f3d5c4cacd0cb350ad8fc7cbbe8b1df30feaa [diff] |
Bluetooth: Clear BLE always ON apps at Airplane mode This patch clears the container managing the Ble Always On apps while switching on, the airplane mode. The airplane mode will completely turn Off the Bleutooth Adapter from any state it is in. Change-Id: Ib28d39d85efe3aac37e3a53a4fb892099568c702
diff --git a/services/core/java/com/android/server/BluetoothManagerService.java b/services/core/java/com/android/server/BluetoothManagerService.java index c46fa76..66fd36f 100644 --- a/services/core/java/com/android/server/BluetoothManagerService.java +++ b/services/core/java/com/android/server/BluetoothManagerService.java
@@ -205,6 +205,7 @@ // Clear registered LE apps to force shut-off synchronized (this) { mBleAppCount = 0; + mBleApps.clear(); } if (st == BluetoothAdapter.STATE_BLE_ON) { //if state is BLE_ON make sure you trigger disableBLE part