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

Commit 42550091 authored by Mike Lockwood's avatar Mike Lockwood Committed by Android (Google) Code Review
Browse files

Merge "LocationManagerService: Fix bug removing proximity alerts."

parents 0a2d8709 0dac8c0f
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -1203,12 +1203,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.