remove a redundant showHidden setting

This commit is contained in:
tibbi 2017-10-23 12:58:37 +02:00
parent 4b772a9bfb
commit f00aee04b6
2 changed files with 6 additions and 5 deletions

View file

@ -50,6 +50,11 @@ class MainActivity : SimpleActivity() {
checkIfRootAvailable()
}
override fun onResume() {
super.onResume()
invalidateOptionsMenu()
}
override fun onDestroy() {
super.onDestroy()
config.temporarilyShowHidden = false

View file

@ -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
}