@Override public void afterTextChanged(Editable recherche) { matchingPois.clear(); for (PointOfInterest poi : allPois) { if (poi.matches(recherche.toString())) { matchingPois.add(poi); } } poiAdapter.notifyDataSetChanged(); }