From 4b772a9bfb7d4f14a61016cf8187d90bab22f97b Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 23 Oct 2017 12:54:58 +0200 Subject: [PATCH] refresh items on resume --- .../filemanager/fragments/ItemsFragment.kt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/filemanager/fragments/ItemsFragment.kt b/app/src/main/kotlin/com/simplemobiletools/filemanager/fragments/ItemsFragment.kt index e473b4a9..d1dc2cb3 100644 --- a/app/src/main/kotlin/com/simplemobiletools/filemanager/fragments/ItemsFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/filemanager/fragments/ItemsFragment.kt @@ -61,10 +61,7 @@ class ItemsFragment : Fragment(), ItemsAdapter.ItemOperationsListener, Breadcrum override fun onResume() { super.onResume() val config = context.config - if (showHidden != config.shouldShowHidden) { - showHidden = !showHidden - refreshItems() - } + showHidden = config.shouldShowHidden context.updateTextColors(mView as ViewGroup) mView.items_fastscroller.updateHandleColor() @@ -73,9 +70,10 @@ class ItemsFragment : Fragment(), ItemsAdapter.ItemOperationsListener, Breadcrum storedItems = ArrayList() (items_list.adapter as ItemsAdapter).updateTextColor(newColor) mView.breadcrumbs.updateColor(newColor) - refreshItems() storedTextColor = newColor } + + refreshItems() } override fun onPause() {