avoid showing Root initially at the top breadcrumb at app launch
This commit is contained in:
parent
0dcc6f4da1
commit
2fe8c6564a
1 changed files with 4 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue