Remove the ProximityAlerts update Receiver when the last ProximityAlert expires.

Fixes issue 6900.

Change-Id: Ifcd3fa9c34cfca02ed5e7a94aded33984ac81c60
Signed-off-by: Mike Lockwood <lockwood@android.com>
This commit is contained in:
Sean Foy
2010-03-04 12:17:54 -06:00
committed by Mike Lockwood
parent 1a31ae34a0
commit 8fff645147

View File

@@ -1205,8 +1205,9 @@ public class LocationManagerService extends ILocationManager.Stub implements Run
// Remove expired alerts
if (intentsToRemove != null) {
for (PendingIntent i : intentsToRemove) {
ProximityAlert alert = mProximityAlerts.remove(i);
ProximityAlert alert = mProximityAlerts.get(i);
mProximitiesEntered.remove(alert);
removeProximityAlertLocked(i);
}
}
}