diff options
| author | 2015-05-07 18:45:44 -0700 | |
|---|---|---|
| committer | 2015-05-19 22:38:46 -0700 | |
| commit | 11f83882f2a4448b5a2bbbb9e23b700096ed7536 (patch) | |
| 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
| -rw-r--r-- | services/core/java/com/android/server/BluetoothManagerService.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/BluetoothManagerService.java b/services/core/java/com/android/server/BluetoothManagerService.java index c46fa76e8970..66fd36fb0f1e 100644 --- a/services/core/java/com/android/server/BluetoothManagerService.java +++ b/services/core/java/com/android/server/BluetoothManagerService.java @@ -205,6 +205,7 @@ class BluetoothManagerService extends IBluetoothManager.Stub { // 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 |