Skip to content

Commit

Permalink
Fix disabling the toolbar and my location button (react-native-maps#2317
Browse files Browse the repository at this point in the history
)
  • Loading branch information
BasitAli authored and Renan Lazarini Gil committed Aug 13, 2018
1 parent c451310 commit 9b9cff5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -402,13 +402,13 @@ public void setShowsUserLocation(boolean showUserLocation) {
}

public void setShowsMyLocationButton(boolean showMyLocationButton) {
if (hasPermissions()) {
if (hasPermissions() || !showMyLocationButton) {
map.getUiSettings().setMyLocationButtonEnabled(showMyLocationButton);
}
}

public void setToolbarEnabled(boolean toolbarEnabled) {
if (hasPermissions()) {
if (hasPermissions() || !toolbarEnabled) {
map.getUiSettings().setMapToolbarEnabled(toolbarEnabled);
}
}
Expand Down

0 comments on commit 9b9cff5

Please sign in to comment.