how to implement filterable in RealmRecyclerViewAdapter
Move the filtering to publishResults and use the UI thread Realm’s queries to evaluate the new results. private class AirportAdapter extends RealmRecyclerViewAdapter<AirportR, RecyclerView.ViewHolder> implements Filterable { Realm realm; public AirportAdapter(Context context, Realm realm, OrderedRealmCollection<AirportR> airports) { super(context, airports, true); this.realm = realm; } @Override public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.airport_show, … Read more