mirror of
https://github.com/SimpleMobileTools/Simple-SMS-Messenger.git
synced 2025-01-14 01:28:35 +01:00
properly reset search results and placeholders on close
This commit is contained in:
parent
be8003718f
commit
f05fffc206
@ -147,7 +147,11 @@ class MainActivity : SimpleActivity() {
|
||||
}
|
||||
|
||||
main_menu.onSearchClosedListener = {
|
||||
search_holder.fadeOut()
|
||||
search_holder.animate().alpha(0f).setDuration(SHORT_ANIMATION_DURATION).withEndAction {
|
||||
search_holder.beGone()
|
||||
searchTextChanged("", true)
|
||||
}.start()
|
||||
|
||||
conversations_fab.beVisible()
|
||||
}
|
||||
|
||||
@ -429,8 +433,8 @@ class MainActivity : SimpleActivity() {
|
||||
.build()
|
||||
}
|
||||
|
||||
private fun searchTextChanged(text: String) {
|
||||
if (!main_menu.isSearchOpen) {
|
||||
private fun searchTextChanged(text: String, forceUpdate: Boolean = false) {
|
||||
if (!main_menu.isSearchOpen && !forceUpdate) {
|
||||
return
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user