LocationManagerService: Fix bug removing proximity alerts.

Alerts were not being removed from the mProximitiesEntered array.

Signed-off-by: Mike Lockwood <lockwood@android.com>
This commit is contained in:
Mike Lockwood
2010-01-19 11:48:14 -05:00
parent 8ca2f47e0d
commit 19563cc278

View File

@@ -1204,12 +1204,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.