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

Commit 1a99d557 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

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

parents 88826dce 73a16514
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;