properly handle breadcrumbs text size

This commit is contained in:
tibbi 2020-03-10 11:51:30 +01:00
parent 6a49ff4cf7
commit 10f7e08c2e
2 changed files with 3 additions and 1 deletions

View file

@ -58,7 +58,7 @@ android {
}
dependencies {
implementation 'com.simplemobiletools:commons:5.22.20'
implementation 'com.simplemobiletools:commons:5.23.0'
implementation 'com.github.Stericson:RootTools:df729dcb13'
implementation 'com.github.Stericson:RootShell:1.6'
implementation 'com.alexvasilkov:gesture-views:2.5.2'

View file

@ -62,6 +62,7 @@ class ItemsFragment : Fragment(), ItemOperationsListener, Breadcrumbs.Breadcrumb
items_swipe_refresh.setOnRefreshListener { refreshItems() }
items_fab.setOnClickListener { createNewItem() }
breadcrumbs.listener = this@ItemsFragment
breadcrumbs.updateFontSize(context!!.getTextSize())
}
}
@ -97,6 +98,7 @@ class ItemsFragment : Fragment(), ItemOperationsListener, Breadcrumbs.Breadcrumb
if (storedFontSize != configFontSize) {
getRecyclerAdapter()?.updateFontSizes()
storedFontSize = configFontSize
mView.breadcrumbs.updateFontSize(context!!.getTextSize())
}
mView.items_fastscroller.updateBubbleColors()