Skip to content

Commit 2fe8c65

Browse files
committed
avoid showing Root initially at the top breadcrumb at app launch
1 parent 0dcc6f4 commit 2fe8c65

File tree

1 file changed

+4
-1
lines changed
  • app/src/main/kotlin/com/simplemobiletools/filemanager/pro/fragments

1 file changed

+4
-1
lines changed

app/src/main/kotlin/com/simplemobiletools/filemanager/pro/fragments/ItemsFragment.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ class ItemsFragment : Fragment(), ItemOperationsListener, Breadcrumbs.Breadcrumb
6868
items_swipe_refresh.setOnRefreshListener { refreshItems() }
6969
items_fab.setOnClickListener { createNewItem() }
7070
breadcrumbs.listener = this@ItemsFragment
71-
breadcrumbs.updateFontSize(context!!.getTextSize())
7271
}
7372
}
7473

@@ -174,6 +173,10 @@ class ItemsFragment : Fragment(), ItemOperationsListener, Breadcrumbs.Breadcrumb
174173
}
175174

176175
storedItems = items
176+
if (items_list.adapter == null) {
177+
breadcrumbs.updateFontSize(context!!.getTextSize())
178+
}
179+
177180
ItemsAdapter(activity as SimpleActivity, storedItems, this@ItemsFragment, items_list, isPickMultipleIntent, items_fastscroller,
178181
items_swipe_refresh) {
179182
if ((it as? ListItem)?.isSectionTitle == true) {

0 commit comments

Comments
 (0)