ListView does not update until keyboard is hidden

后端 未结 3 1012
名媛妹妹
名媛妹妹 2021-02-20 10:09

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

3条回答
  •  深忆病人
    2021-02-20 10:39

    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?

提交回复
热议问题