diff --git a/app/src/main/kotlin/com/simplemobiletools/filemanager/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/filemanager/activities/MainActivity.kt index d74758c3..6c10aca2 100644 --- a/app/src/main/kotlin/com/simplemobiletools/filemanager/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/filemanager/activities/MainActivity.kt @@ -50,6 +50,11 @@ class MainActivity : SimpleActivity() { checkIfRootAvailable() } + override fun onResume() { + super.onResume() + invalidateOptionsMenu() + } + override fun onDestroy() { super.onDestroy() config.temporarilyShowHidden = false 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 d1dc2cb3..0a37808b 100644 --- a/app/src/main/kotlin/com/simplemobiletools/filemanager/fragments/ItemsFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/filemanager/fragments/ItemsFragment.kt @@ -60,12 +60,9 @@ class ItemsFragment : Fragment(), ItemsAdapter.ItemOperationsListener, Breadcrum override fun onResume() { super.onResume() - val config = context.config - showHidden = config.shouldShowHidden - context.updateTextColors(mView as ViewGroup) mView.items_fastscroller.updateHandleColor() - val newColor = config.textColor + val newColor = context.config.textColor if (storedTextColor != newColor) { storedItems = ArrayList() (items_list.adapter as ItemsAdapter).updateTextColor(newColor) @@ -82,7 +79,6 @@ class ItemsFragment : Fragment(), ItemsAdapter.ItemOperationsListener, Breadcrum } private fun storeConfigVariables() { - showHidden = context.config.shouldShowHidden storedTextColor = context.config.textColor }