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