@Override protected void onDestroy() { mMapView.onDestroy(); super.onDestroy(); }
@Override public void onDestroy() { if (mapView != null) { mapView.onDestroy(); } super.onDestroy(); }
@Override public void onDestroy() { super.onDestroy(); mMapView.onDestroy(); }
@Override public void onDestroy() { try { if (binding.mapView != null) binding.mapView.onDestroy(); } catch (Exception ignored) { isMapReady = false; } super.onDestroy(); }
@Override protected void onDestroy() { mapView.onDestroy(); super.onDestroy(); }
@Override protected void onDestroy() { mapView.onDestroy(); super.onDestroy(); }
@Override public void onDestroy() { MainActivity.info("NET: onDestroy"); networkActivity = null; if (mapView != null) { mapView.onDestroy(); } super.onDestroy(); }
@Override public void onDestroy() { if (map != null) { map.setMyLocationEnabled(false); } mapView.onDestroy(); }
@Override public void onDestroy() { if (this.mapView != null) { this.mapView.onDestroy(); } try { if (locationUpdateReceiver != null) { unregisterReceiver(locationUpdateReceiver); } if (predictedLocationReceiver != null) { unregisterReceiver(predictedLocationReceiver); } } catch (IllegalArgumentException ex) { ex.printStackTrace(); } super.onDestroy(); }
@Override public void onDestroy() { MainActivity.info( "MAP: destroy mapping." ); finishing.set(true); mapView.getMapAsync(new OnMapReadyCallback() { @Override public void onMapReady(final GoogleMap googleMap) { // save zoom final SharedPreferences prefs = getActivity().getSharedPreferences(ListFragment.SHARED_PREFS, 0); if (null != prefs) { final Editor edit = prefs.edit(); edit.putFloat(ListFragment.PREF_PREV_ZOOM, googleMap.getCameraPosition().zoom); edit.apply(); } else { MainActivity.warn("failed saving map state - unable to get preferences."); } // save center state.oldCenter = googleMap.getCameraPosition().target; } }); try { mapView.onDestroy(); } catch (NullPointerException ex) { // seen in the wild MainActivity.info("exception in mapView.onDestroy: " + ex, ex); } super.onDestroy(); }