Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8fff6451 authored by Sean Foy's avatar Sean Foy Committed by Mike Lockwood
Browse files

Remove the ProximityAlerts update Receiver when the last ProximityAlert expires.


Fixes issue 6900.

Change-Id: Ifcd3fa9c34cfca02ed5e7a94aded33984ac81c60
Signed-off-by: default avatarMike Lockwood <lockwood@android.com>
parent 1a31ae34
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);
                }
            }
        }