refresh items on resume
This commit is contained in:
parent
24ae1241ca
commit
4b772a9bfb
1 changed files with 3 additions and 5 deletions
|
@ -61,10 +61,7 @@ class ItemsFragment : Fragment(), ItemsAdapter.ItemOperationsListener, Breadcrum
|
||||||
override fun onResume() {
|
override fun onResume() {
|
||||||
super.onResume()
|
super.onResume()
|
||||||
val config = context.config
|
val config = context.config
|
||||||
if (showHidden != config.shouldShowHidden) {
|
showHidden = config.shouldShowHidden
|
||||||
showHidden = !showHidden
|
|
||||||
refreshItems()
|
|
||||||
}
|
|
||||||
|
|
||||||
context.updateTextColors(mView as ViewGroup)
|
context.updateTextColors(mView as ViewGroup)
|
||||||
mView.items_fastscroller.updateHandleColor()
|
mView.items_fastscroller.updateHandleColor()
|
||||||
|
@ -73,9 +70,10 @@ class ItemsFragment : Fragment(), ItemsAdapter.ItemOperationsListener, Breadcrum
|
||||||
storedItems = ArrayList()
|
storedItems = ArrayList()
|
||||||
(items_list.adapter as ItemsAdapter).updateTextColor(newColor)
|
(items_list.adapter as ItemsAdapter).updateTextColor(newColor)
|
||||||
mView.breadcrumbs.updateColor(newColor)
|
mView.breadcrumbs.updateColor(newColor)
|
||||||
refreshItems()
|
|
||||||
storedTextColor = newColor
|
storedTextColor = newColor
|
||||||
}
|
}
|
||||||
|
|
||||||
|
refreshItems()
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onPause() {
|
override fun onPause() {
|
||||||
|
|
Loading…
Reference in a new issue