-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
downgrade LOST to v1.1.1 #493
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@Override | ||
public boolean isConnected() { | ||
return lostApiClient.isConnected(); | ||
} | ||
|
||
/** | ||
* Returns the Last known location is the location provider is connected and location permissions are granted. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor typo if
instead of is
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great catch
bfa42bf
to
c48f520
Compare
@@ -88,7 +87,7 @@ public void onConnectionFailed(@NonNull ConnectionResult connectionResult) { | |||
|
|||
@Override | |||
public Location getLastLocation() { | |||
if (googleApiClient.isConnected() && PermissionsManager.areLocationPermissionsGranted(context.get())) { | |||
if (googleApiClient.isConnected()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PermissionsManager.areLocationPermissionsGranted(context.get()
is broken for pre Marshmallow devices
Copied from downstream ticket in mapbox/mapbox-gl-native#9394:
This PR requires a newer version of the SDK first to pass CI, excluding lost from the maps sdk makes the test application crash at startup.