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 97d1195832
commit 0dac8c0f7e

View File

@@ -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.