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

Commit 7462ed07 authored by Stanley Tng's avatar Stanley Tng Committed by android-build-merger
Browse files

Merge "Remove BLE App entry from mBleApps list when App died"

am: 53442483

Change-Id: I85bd3a4c0bd1ef0fe91341b7193941bef24b2013
parents da943b33 53442483
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -632,6 +632,16 @@ class BluetoothManagerService extends IBluetoothManager.Stub {
            if (DBG) {
                Slog.d(TAG, "Binder is dead - unregister " + mPackageName);
            }

            for (Map.Entry<IBinder, ClientDeathRecipient> entry : mBleApps.entrySet()) {
                IBinder token = entry.getKey();
                ClientDeathRecipient deathRec = entry.getValue();
                if (deathRec.equals(this)) {
                    mBleApps.remove(token);
                    break;
                }
            }

            if (isBleAppPresent()) {
                // Nothing to do, another app is here.
                return;