Clear search toolbar upon opening.

This commit is contained in:
Greyson Parrelli
2022-08-25 16:27:42 -04:00
parent 397793064d
commit 726f48bc33
2 changed files with 5 additions and 0 deletions

View File

@@ -80,6 +80,10 @@ class Material3SearchToolbar @JvmOverloads constructor(
}
}
fun clearText() {
input.setText("");
}
interface Listener {
fun onSearchTextChange(text: String)
fun onSearchClosed()