disable swipe refreshing when search is open
This commit is contained in:
parent
9f4e27f920
commit
fad3697bc6
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue