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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user