Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e391b136 authored by Nitin Arora's avatar Nitin Arora Committed by Andre Eisenbach
Browse files

DO NOT MERGE 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
parent 4f7606eb
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -204,6 +204,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