ExploreMapFragment.java: remove redundant method call

Before this commit, performMapReadyActions() was called in both onViewCreated and onResume.
In effect, the method is called twice before the user can even see the map, leading to
performance issues.

After this commit, the call in onViewCreated is removed. The method is now called only once
when the user switches to the ExploreMapFragment.
This commit is contained in:
Jason Whitmore 2025-05-02 16:49:12 -07:00
parent c44a610db9
commit b31a01c3ee

View file

@ -221,7 +221,6 @@ public class ExploreMapFragment extends CommonsDaggerSupportFragment
binding.mapView.getController().setZoom(ZOOM_LEVEL);
}
performMapReadyActions();
binding.mapView.getOverlays().add(new MapEventsOverlay(new MapEventsReceiver() {
@Override