From e45d2293f488e8d8a0b0b8f5c8c1cf42d720aa95 Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 7 Dec 2017 16:57:45 +0100 Subject: [PATCH] handle dragging the scrollbar at empty folders --- .../simplemobiletools/filemanager/fragments/ItemsFragment.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/filemanager/fragments/ItemsFragment.kt b/app/src/main/kotlin/com/simplemobiletools/filemanager/fragments/ItemsFragment.kt index 7154f9e6..bff4055a 100644 --- a/app/src/main/kotlin/com/simplemobiletools/filemanager/fragments/ItemsFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/filemanager/fragments/ItemsFragment.kt @@ -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)