avoid showing Root initially at the top breadcrumb at app launch

This commit is contained in:
tibbi 2021-01-26 11:10:29 +01:00
parent 0dcc6f4da1
commit 2fe8c6564a

View file

@ -68,7 +68,6 @@ class ItemsFragment : Fragment(), ItemOperationsListener, Breadcrumbs.Breadcrumb
items_swipe_refresh.setOnRefreshListener { refreshItems() }
items_fab.setOnClickListener { createNewItem() }
breadcrumbs.listener = this@ItemsFragment
breadcrumbs.updateFontSize(context!!.getTextSize())
}
}
@ -174,6 +173,10 @@ class ItemsFragment : Fragment(), ItemOperationsListener, Breadcrumbs.Breadcrumb
}
storedItems = items
if (items_list.adapter == null) {
breadcrumbs.updateFontSize(context!!.getTextSize())
}
ItemsAdapter(activity as SimpleActivity, storedItems, this@ItemsFragment, items_list, isPickMultipleIntent, items_fastscroller,
items_swipe_refresh) {
if ((it as? ListItem)?.isSectionTitle == true) {