From 10f7e08c2e2f25ef6e7487eefe314f917920d448 Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 10 Mar 2020 11:51:30 +0100 Subject: [PATCH] properly handle breadcrumbs text size --- app/build.gradle | 2 +- .../filemanager/pro/fragments/ItemsFragment.kt | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index a5af4d00..e05c506c 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -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' diff --git a/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/fragments/ItemsFragment.kt b/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/fragments/ItemsFragment.kt index 34d2bc23..e4ea58b0 100644 --- a/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/fragments/ItemsFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/fragments/ItemsFragment.kt @@ -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()