shorten a bubble text getter

This commit is contained in:
tibbi 2018-01-06 21:41:05 +01:00
parent a86538ba39
commit bf843e46dc
1 changed files with 1 additions and 2 deletions

View File

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