@Override
 public void onActivityCreated(Bundle savedInstanceState) {
   super.onActivityCreated(savedInstanceState);
   getComponent(MapSearchComponent.class).inject(this);
   mapSearchPresenter.setView(this);
   getUserLocationManager().connect();
 }
 public void getNearbyStops(String centerAddress, double lat, double lon, String radiusInMiles) {
   // Hide the initial user prompt as soon as a search is mad
   if (layoutPrompt != null && layoutPrompt.getVisibility() == View.VISIBLE) {
     layoutPrompt.setVisibility(View.GONE);
   }
   if (mapSearchPresenter != null && adapter != null) {
     adapter.setCenterLocation(new LatLng(lat, lon));
     mapSearchPresenter.initialize(centerAddress, lat, lon, radiusInMiles);
   }
 }
 @Override
 public void onDestroy() {
   super.onDestroy();
   if (mapSearchPresenter != null) {
     mapSearchPresenter.destroy();
   }
   if (userLocationManager != null) {
     userLocationManager.disconnect();
   }
 }
 @OnClick(R.id.layout_map_search_retry)
 void onRetryClicked() {
   if (mapSearchPresenter != null) {
     mapSearchPresenter.initializePreviousRequest();
   }
 }
 @Override
 public void onPause() {
   super.onPause();
   mapSearchPresenter.pause();
 }
 @Override
 public void onResume() {
   super.onResume();
   mapSearchPresenter.resume();
 }