Created
December 28, 2020 21:45
-
-
Save magdamiu/0839d28fc44d2745670b4406610a3383 to your computer and use it in GitHub Desktop.
Update the Adapter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Clean all elements of the recycler | |
public void clear() { | |
emails.clear(); | |
notifyDataSetChanged(); | |
} | |
// Add a list of items | |
public void addAll(List<Email> list) { | |
emails.addAll(list); | |
notifyDataSetChanged(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment