Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ final class GoogleMapController
private final MethodChannel methodChannel;
private final GoogleMapOptions options;
@Nullable private MapView mapView;
private GoogleMap googleMap;
@Nullable private GoogleMap googleMap;
private boolean trackCameraPosition = false;
private boolean myLocationEnabled = false;
private boolean myLocationButtonEnabled = false;
Expand Down Expand Up @@ -508,6 +508,10 @@ public void dispose() {
}

private void setGoogleMapListener(@Nullable GoogleMapListener listener) {
if (disposed && googleMap == null) {
Comment thread
bparrishMines marked this conversation as resolved.
Outdated
Log.v(TAG, "Controller was disposed before maps was ready.");
return;
}
googleMap.setOnCameraMoveStartedListener(listener);
googleMap.setOnCameraMoveListener(listener);
googleMap.setOnCameraIdleListener(listener);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@

import androidx.test.core.app.ActivityScenario;
import io.flutter.plugins.googlemaps.GoogleMapsPlugin;
import org.junit.Ignore;
import org.junit.Test;

public class GoogleMapsTest {
@Ignore("Currently failing: https://github.com/flutter/flutter/issues/87566")
@Test
public void googleMapsPluginIsAdded() {
final ActivityScenario<GoogleMapsTestActivity> scenario =
Expand Down