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
This commit is contained in:
committed by
Andre Eisenbach
parent
cf4f3d5c4c
commit
11f83882f2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user