Skip to content

Commit

Permalink
Add documentation and fixed empty block
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmanuelMess committed Mar 18, 2022
1 parent 93ee88a commit f8dbfbb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,16 @@ class AppBar(
}
}

/**
* Sets the app title, or sets it as empty if null is passed
*/
fun setTitle(title: String?) {
toolbar.title = title
}

/**
* Sets the app title
*/
fun setTitle(@StringRes title: Int) {
toolbar.setTitle(title)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ class SearchView(

init {
searchView.setOnSearchListener(object : OnSearchListener {
override fun onSuggestionClicked(searchSuggestion: SearchSuggestion) {}
override fun onSuggestionClicked(searchSuggestion: SearchSuggestion) = Unit

override fun onSearchAction(currentQuery: String) {
onSearch(currentQuery)
hideSearchView()
Expand Down

0 comments on commit f8dbfbb

Please sign in to comment.