disable swipe refreshing when search is open

This commit is contained in:
tibbi 2021-01-16 17:22:55 +01:00
parent 9f4e27f920
commit fad3697bc6
1 changed files with 2 additions and 0 deletions

View File

@ -410,6 +410,7 @@ class ItemsFragment : Fragment(), ItemOperationsListener, Breadcrumbs.Breadcrumb
fun searchOpened() {
isSearchOpen = true
lastSearchedText = ""
mView.items_swipe_refresh.isEnabled = false
}
fun searchClosed() {
@ -419,6 +420,7 @@ class ItemsFragment : Fragment(), ItemOperationsListener, Breadcrumbs.Breadcrumb
}
skipItemUpdating = false
lastSearchedText = ""
mView.items_swipe_refresh.isEnabled = true
mView.apply {
items_list.beVisible()