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

Commit da58f393 authored by Nick Pelly's avatar Nick Pelly Committed by Android Git Automerger
Browse files

am bfd125a0: Merge "Fix NPE when public API removeProximityAlert() used before...

am bfd125a0: Merge "Fix NPE when public API removeProximityAlert() used before addProximityAlert()." into jb-dev

* commit 'bfd125a0':
  Fix NPE when public API removeProximityAlert() used before addProximityAlert().
parents 544a0fc1 bfd125a0
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1702,7 +1702,9 @@ public class LocationManagerService extends ILocationManager.Stub implements Run

        mProximityAlerts.remove(intent);
        if (mProximityAlerts.size() == 0) {
            if (mProximityReceiver != null) {
                removeUpdatesLocked(mProximityReceiver);
            }
            mProximityReceiver = null;
            mProximityListener = null;
        }