auto
always yields the Android location provider, not Play Services
#266
Labels
bug
Something isn't working
Reviewing the code, it appears that the default location provider configuration setting,
auto
, always yields the Android location provider.mLocationManager
is set toAndroidLocationManager
.onConfigurationChange
checks for the valuesandroid
andplayServices
, butauto
is a no-op. As a consequence, the location manager remainsandroid
by default.On line 54:
else if (Objects.equals(config.locationProvider, "playServices") && mLocationManager instanceof AndroidLocationManager)
… should probably read …
else if ((Objects.equals(config.locationProvider, "playServices") || Objects.equals(config.locationProvider, "auto")) && mLocationManager instanceof AndroidLocationManager)
The text was updated successfully, but these errors were encountered: