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

Commit 26abeae7 authored by Sean Foy's avatar Sean Foy Committed by Jean-Baptiste Queru
Browse files

Remove ProximityAlerts Receiver when last ProximityAlert expires.

Remove the ProximityAlerts update Receiver when the last ProximityAlert expires.
Fixes issue 6900.

Change-Id: Ida1970c084e71df47b204c64986a065cb75d0c13
parent 80131e4b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1202,8 +1202,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);
                }
            }
        }