adding a crashfix

This commit is contained in:
tibbi 2019-06-13 14:10:04 +02:00
parent 6d2b939abe
commit da98a541b1
1 changed files with 4 additions and 0 deletions

View File

@ -267,6 +267,10 @@ class ItemsFragment : Fragment(), ItemOperationsListener, Breadcrumbs.Breadcrumb
fun searchQueryChanged(text: String) {
val searchText = text.trim()
Thread {
if (context == null) {
return@Thread
}
when {
searchText.isEmpty() -> activity?.runOnUiThread {
mView.apply {