refresh items on resume

This commit is contained in:
tibbi 2017-10-23 12:54:58 +02:00
parent 24ae1241ca
commit 4b772a9bfb

View file

@ -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() {