Last active
August 15, 2019 09:27
-
-
Save yashprakash13/6348ca800e312a908f516a3609a7948c to your computer and use it in GitHub Desktop.
getItemsFromDb
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
private fun getItemsFromDb(searchText: String) { | |
var searchText = searchText | |
searchText = "%$searchText%" | |
myViewModel.searchForItems(desc = searchText).observe(this@MainActivity, Observer { list -> | |
list?.let { | |
Log.e("List = ", list.toString()) | |
} | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment