Skip to content

Commit

Permalink
Merge pull request #21 from seatgeek/fix-custom-adapter
Browse files Browse the repository at this point in the history
Make the AbstractPlacesAutocompleteAdapter constructor public
  • Loading branch information
sddamico committed Apr 18, 2016
2 parents dea8474 + adbe1f9 commit 9ced768
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:padding="16dp"
app:pacv_languageCode="ru"
app:pacv_languageCode="en"
app:pacv_googleMapsApiKey="@string/google_maps_api_key"
app:pacv_adapterClass="com.seatgeek.placesautocompletedemo.TestPlacesAutocompleteAdapter"/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ private AbstractPlacesAutocompleteAdapter adapterForClass(final Context context,
", " +
AutocompleteResultType.class.getSimpleName() +
", and " +
DefaultAutocompleteHistoryManager.class.getSimpleName() +
AutocompleteHistoryManager.class.getSimpleName() +
" for specified adapterClass: " + adapterClass, e);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ public abstract class AbstractPlacesAutocompleteAdapter extends ArrayAdapter<Pla
@NonNull
private final PlacesApiFilter mFilter;

protected AbstractPlacesAutocompleteAdapter(@NonNull final Context context,
@NonNull final PlacesApi api,
@Nullable final AutocompleteResultType autocompleteResultType,
@Nullable AutocompleteHistoryManager history) {
public AbstractPlacesAutocompleteAdapter(@NonNull final Context context,
@NonNull final PlacesApi api,
@Nullable final AutocompleteResultType autocompleteResultType,
@Nullable final AutocompleteHistoryManager history) {
super(context, 0);

mFilter = new PlacesApiFilter(
Expand Down

0 comments on commit 9ced768

Please sign in to comment.