Skip to content

Commit f00aee0

Browse files
committed
remove a redundant showHidden setting
1 parent 4b772a9 commit f00aee0

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

app/src/main/kotlin/com/simplemobiletools/filemanager/activities/MainActivity.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ class MainActivity : SimpleActivity() {
5050
checkIfRootAvailable()
5151
}
5252

53+
override fun onResume() {
54+
super.onResume()
55+
invalidateOptionsMenu()
56+
}
57+
5358
override fun onDestroy() {
5459
super.onDestroy()
5560
config.temporarilyShowHidden = false

app/src/main/kotlin/com/simplemobiletools/filemanager/fragments/ItemsFragment.kt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,9 @@ class ItemsFragment : Fragment(), ItemsAdapter.ItemOperationsListener, Breadcrum
6060

6161
override fun onResume() {
6262
super.onResume()
63-
val config = context.config
64-
showHidden = config.shouldShowHidden
65-
6663
context.updateTextColors(mView as ViewGroup)
6764
mView.items_fastscroller.updateHandleColor()
68-
val newColor = config.textColor
65+
val newColor = context.config.textColor
6966
if (storedTextColor != newColor) {
7067
storedItems = ArrayList()
7168
(items_list.adapter as ItemsAdapter).updateTextColor(newColor)
@@ -82,7 +79,6 @@ class ItemsFragment : Fragment(), ItemsAdapter.ItemOperationsListener, Breadcrum
8279
}
8380

8481
private fun storeConfigVariables() {
85-
showHidden = context.config.shouldShowHidden
8682
storedTextColor = context.config.textColor
8783
}
8884

0 commit comments

Comments
 (0)