Last active
November 17, 2016 11:49
-
-
Save matdziu/8c37c5a8ae67a8da83f2168f8e544cdc to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| @Override | |
| public boolean onQueryTextChange(String newText) { | |
| if (!newText.isEmpty()) { | |
| adapter.setNamesList(namesAPI.searchForName(query)); | |
| adapter.notifyDataSetChanged(); | |
| apiCallsTextView.setText("API CALLS: " + apiCalls++); | |
| } | |
| return true; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment