I have a DialogFragment
and in it\'s layout I have a EditText
and a ListView
. The Listview basically shows the list of contacts (Initially
In the below code, you are populating the list with the result of commonMethods.getEmailContacts
// Get the email contacts list based on the user query
emailContacts.addAll(commonMethods.getEmailContacts(appContext, textValue));
Surely you first need to do emailContacts.Clear()
otherwise the list is not going to change?