title: PlaceAutocompleteFragment disappears on click
body: <p>I wanted to implement AutocompleteTextView (google places) but when I click to searchView in a fragment, the fragment disappears (fell down).</p>
  
  <p>My code:</p>
  
  <pre><code> @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_autocomplete);
  
          PlaceAutocompleteFragment autocompleteFragment = (PlaceAutocompleteFragment) getFragmentManager().findFragmentById(R.id.place_autocomplete_fragment);
  
          AutocompleteFilter typeFilter = new AutocompleteFilter.Builder()
                  .setTypeFilter(AutocompleteFilter.TYPE_FILTER_CITIES)
                  .build();
  
          autocompleteFragment.setFilter(typeFilter);
  
          autocompleteFragment.setOnPlaceSelectedListener(new PlaceSelectionListener() {
  
              @Override
              public void onPlaceSelected(com.google.android.gms.location.places.Place place) {
                  // TODO: handle click
              }
  
              @Override
              public void onError(Status status) {
                  // TODO: Handle the error.
              }
          });
  
      }
  </code></pre>
  
  <p>xml:</p>
  
  <pre><code>&lt;RelativeLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical"
      tools:context="ui.screen.activity.AutocompleteActivity"&gt;
  
      &lt;fragment
          android:id="@+id/place_autocomplete_fragment"
          android:name="com.google.android.gms.location.places.ui.PlaceAutocompleteFragment"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"/&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>Thanks for any advice</p>