Skip to content

Commit 0738e2e

Browse files
implementação do botão de busca.
1 parent a316dd4 commit 0738e2e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

solutions/devsprint-bruno-almeida-1/app/src/main/java/com/devpass/githubapp/presentation/RepositoryListActivity.kt

+6-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,12 @@ class RepositoryListActivity : AppCompatActivity(), SearchView.OnQueryTextListen
8181
return true
8282
}
8383

84-
override fun onQueryTextChange(p0: String?): Boolean {
84+
override fun onQueryTextChange(p0: String): Boolean {
85+
p0.let {
86+
if (it.isEmpty()){
87+
viewModel.getListRepositories()
88+
}
89+
}
8590
return true
8691
}
8792

0 commit comments

Comments
 (0)