title: Unable to use two typeFilters in setTypeFilter() for Google Places 2019 update
body: <p>I have upgraded to the new Google Places using:</p>
  
  <pre><code>'com.google.android.libraries.places:places:2.0.0'
  </code></pre>
  
  <p>I have implemented a AutoCompleteSupportFragment in my layout and in that fragment is where the user will type in their location or destination.  Then the info will be put into the BottomSheetRiderFragment.</p>
  
  <p>I want to be able to filter with Addresses and Establishments but I can't do both on separate lines for it to work.  </p>
  
  <p>From researching (not a whole lot on this topic) there was a mention of using </p>
  
  <pre><code>TYPE_FILTER_ADDRESS|TYPE_FILTER_ESTABLISHMENT
  </code></pre>
  
  <p><strong>I tried putting:</strong></p>
  
  <pre><code>places_location.setTypeFilter(TYPE_FILTER_ADDRESS|TYPE_FILTER_ESTABLISHMENT);
  </code></pre>
  
  <p>but this <strong>error</strong> occurred:</p>
  
  <pre><code>setType Filter(com.google.android.libraries.places.api.model.Type Filter) in AutocompleteSupportFragment cannot be applied to (int)
  </code></pre>
  
  <p>How can I fix this?</p>
  
  <p><strong>layout</strong></p>
  
  <pre><code>&lt;fragment
                  android:id="@+id/places_location"
                  android:layout_weight="5"
                  android:layout_width="0dp"
                  android:layout_height="wrap_content"
                  android:name="com.google.android.libraries.places.widget.AutocompleteSupportFragment" /&gt;
  
  &lt;fragment
                  android:id="@+id/places_destination"
                  android:layout_weight="5"
                  android:layout_width="0dp"
                  android:layout_height="wrap_content"
                  android:name="com.google.android.libraries.places.widget.AutocompleteSupportFragment"/&gt;
  </code></pre>
  
  <p><strong>Activity</strong></p>
  
  <pre><code>places_location.setOnPlaceSelectedListener(new PlaceSelectionListener() {
          @Override
          public void onPlaceSelected(@NonNull Place place) {
              // Get info about the selected place.
              Log.e(TAG, "Place: " + place.getName() + ", " + place.getId());
  
              mPlaceLocation = place.getAddress();
          }
  
          @Override
          public void onError(@NonNull Status status) {
              // Handle the error.
              Log.e(TAG, "An error occurred: " + status);
          }
      });
  
  
  places_destination.setOnPlaceSelectedListener(new PlaceSelectionListener() {
          @Override
          public void onPlaceSelected(@NonNull Place place) {
              // Get info about the selected place.
              Log.e(TAG, "Place: " + place.getName() + ", " + place.getId());
  
              mPlaceDestination = place.getAddress(); // search bar destination
              Log.e(TAG, "mPlaceDestination = " + mPlaceDestination);
  
              // search_bar_destination ....
              search_bar_destination = mPlaceDestination;
  
              // Show information at bottom
              BottomSheetRiderFragment mBottomSheet = BottomSheetRiderFragment
                      .newInstance(mPlaceLocation, mPlaceDestination, false);
              RiderHome.super.onPostResume();
              mBottomSheet.show(getSupportFragmentManager(), mBottomSheet.getTag());
          }
  
          @Override
          public void onError(@NonNull Status status) {
              // Handle the error.
              Log.e(TAG, "An error occurred: " + status);
          }
      });
  </code></pre>
  
  <p><strong>Also</strong></p>
  
  <pre><code>// Create a RectangularBounds object.
  RectangularBounds bounds = RectangularBounds.newInstance(
      new LatLng(45.282785, -66.235011),
      new LatLng(45.333059, -65.842197));
  
  places_location.setCountry("ca");
  places_location.setLocationBias(bounds);
  places_location.setTypeFilter(TypeFilter.REGIONS);
  places_location.setTypeFilter(TypeFilter.CITIES);
  places_location.setTypeFilter(TYPE_FILTER_ADDRESS|TYPE_FILTER_ESTABLISHMENT);
  </code></pre>