lostzen / lost

A drop-in replacement for Google Play services location APIs for Android
http://mapzen.github.io/lost/
Other
352 stars 70 forks source link

Better callback invocation #136

Closed sarahsnow1 closed 8 years ago

sarahsnow1 commented 8 years ago

Overview

This PR fixes bugs that occur when checking LostApiClient connection state in callbacks.

Proposed Changes

This changes FusedLocationServiceConnectionManager and LostApiClientImpl to update their internal state before invoking external callbacks. It also migrates LostApiClientImpl to have its ClientManager injected and cleans up related tests.