mapzen / eraser-map

Privacy-focused mapping application for Android
GNU General Public License v3.0
74 stars 24 forks source link

Fix location running in bg #741

Closed sarahsnow1 closed 7 years ago

sarahsnow1 commented 8 years ago

Two LostApiClient objects are connected when the app launches. One is via the Mapzen SDK and another via the LostClientManager in EM. We were properly disconnecting the one created in the Mapzen SDK via mapzenMap?.isMyLocationEnabled = false but not the one in LostClientManager. This PR disconnects EM's LostApiClient which removes all of the clients from Lost's underlying client manager and allows the FusedLocationProviderApi to disconnect.

Closes #731