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

Commit 04f87357 authored by Mike Lockwood's avatar Mike Lockwood Committed by Steve Kondik
Browse files

LocationManagerService: Fix bug removing proximity alerts.



Alerts were not being removed from the mProximitiesEntered array.

Signed-off-by: default avatarMike Lockwood <lockwood@android.com>
parent 685b28fc
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -1202,12 +1202,10 @@ public class LocationManagerService extends ILocationManager.Stub implements Run
            // Remove expired alerts
            if (intentsToRemove != null) {
                for (PendingIntent i : intentsToRemove) {
                    mProximityAlerts.remove(i);
                    ProximityAlert alert = mProximityAlerts.get(i);
                    ProximityAlert alert = mProximityAlerts.remove(i);
                    mProximitiesEntered.remove(alert);
                }
            }

        }

        // Note: this is called with the lock held.