Skip to content

Commit

Permalink
Fix onuserlocationupdated (#14)
Browse files Browse the repository at this point in the history
* Fix onUserLocationUpdated not firing on android (see flutter-mapbox-gl/maps#444)

* FIX SIGABRT when location permission is missing

Co-authored-by: Vincent Berthet <vincent@web-74.com>
  • Loading branch information
vberthet and Vincent Berthet committed Oct 5, 2021
1 parent 3f94c6e commit 16424a0
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,9 @@ public void onStyleLoaded(@NonNull Style style) {
}

if (myLocationEnabled) {
enableLocationComponent(style);
if (hasLocationPermission()) {
updateMyLocationEnabled();
}
}
// needs to be placed after SymbolManager#addClickListener,
// is fixed with 0.6.0 of annotations plugin
Expand Down

0 comments on commit 16424a0

Please sign in to comment.