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