We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53c3efa commit edab35aCopy full SHA for edab35a
android/src/main/java/com/mapbox/mapboxgl/MapboxMapController.java
@@ -1771,15 +1771,17 @@ private void destroyMapViewIfNecessary() {
1771
if (mapView == null) {
1772
return;
1773
}
1774
- mapViewContainer.removeView(mapView);
1775
- mapView.onStop();
1776
- mapView.onDestroy();
1777
1778
if (locationComponent != null) {
1779
locationComponent.setLocationComponentEnabled(false);
1780
1781
stopListeningForLocationUpdates();
1782
+ mapViewContainer.removeView(mapView);
+
+ mapView.onStop();
1783
+ mapView.onDestroy();
1784
1785
mapView = null;
1786
1787
0 commit comments