remove a redundant showHidden setting
This commit is contained in:
parent
4b772a9bfb
commit
f00aee04b6
2 changed files with 6 additions and 5 deletions
|
@ -50,6 +50,11 @@ class MainActivity : SimpleActivity() {
|
||||||
checkIfRootAvailable()
|
checkIfRootAvailable()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun onResume() {
|
||||||
|
super.onResume()
|
||||||
|
invalidateOptionsMenu()
|
||||||
|
}
|
||||||
|
|
||||||
override fun onDestroy() {
|
override fun onDestroy() {
|
||||||
super.onDestroy()
|
super.onDestroy()
|
||||||
config.temporarilyShowHidden = false
|
config.temporarilyShowHidden = false
|
||||||
|
|
|
@ -60,12 +60,9 @@ class ItemsFragment : Fragment(), ItemsAdapter.ItemOperationsListener, Breadcrum
|
||||||
|
|
||||||
override fun onResume() {
|
override fun onResume() {
|
||||||
super.onResume()
|
super.onResume()
|
||||||
val config = context.config
|
|
||||||
showHidden = config.shouldShowHidden
|
|
||||||
|
|
||||||
context.updateTextColors(mView as ViewGroup)
|
context.updateTextColors(mView as ViewGroup)
|
||||||
mView.items_fastscroller.updateHandleColor()
|
mView.items_fastscroller.updateHandleColor()
|
||||||
val newColor = config.textColor
|
val newColor = context.config.textColor
|
||||||
if (storedTextColor != newColor) {
|
if (storedTextColor != newColor) {
|
||||||
storedItems = ArrayList()
|
storedItems = ArrayList()
|
||||||
(items_list.adapter as ItemsAdapter).updateTextColor(newColor)
|
(items_list.adapter as ItemsAdapter).updateTextColor(newColor)
|
||||||
|
@ -82,7 +79,6 @@ class ItemsFragment : Fragment(), ItemsAdapter.ItemOperationsListener, Breadcrum
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun storeConfigVariables() {
|
private fun storeConfigVariables() {
|
||||||
showHidden = context.config.shouldShowHidden
|
|
||||||
storedTextColor = context.config.textColor
|
storedTextColor = context.config.textColor
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue