Skip to content

Commit

Permalink
Fix disabling the toolbar and my location button (#2317)
Browse files Browse the repository at this point in the history
  • Loading branch information
BasitAli authored and rborn committed Jul 18, 2018
1 parent 79c7bab commit a125488
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -439,13 +439,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 a125488

Please sign in to comment.