This change fixes a crash caused when mock routing was enabled. Previously, calls to connect an already connected client created an infinite loop in MainActivity#checkPermissionAndEnableLocation. LostApiClient#connect invoked ConnectionCallbacks#onConnected. This would trigger queued runnables to run in LostClientManager which would start the loop again...now the underlying client will not be called if it is already connected.
This change fixes a crash caused when mock routing was enabled. Previously, calls to connect an already connected client created an infinite loop in
MainActivity#checkPermissionAndEnableLocation
.LostApiClient#connect
invokedConnectionCallbacks#onConnected
. This would trigger queued runnables to run inLostClientManager
which would start the loop again...now the underlying client will not be called if it is already connected.Closes #751