handle dragging the scrollbar at empty folders

This commit is contained in:
tibbi 2017-12-07 16:57:45 +01:00
parent e20dde8a33
commit e45d2293f4
1 changed files with 2 additions and 1 deletions

View File

@ -147,7 +147,8 @@ class ItemsFragment : Fragment(), ItemsAdapter.ItemOperationsListener, Breadcrum
}
items_fastscroller.allowBubbleDisplay = context.config.showInfoBubble
items_fastscroller.setViews(items_list, items_swipe_refresh) {
items_fastscroller.updateBubbleText(storedItems[it].getBubbleText())
val item = storedItems.getOrNull(it)
items_fastscroller.updateBubbleText(item?.getBubbleText() ?: "")
}
} else {
(currAdapter as ItemsAdapter).updateItems(storedItems)