Skip to content

Commit 4b772a9

Browse files
committed
refresh items on resume
1 parent 24ae124 commit 4b772a9

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,7 @@ class ItemsFragment : Fragment(), ItemsAdapter.ItemOperationsListener, Breadcrum
6161
override fun onResume() {
6262
super.onResume()
6363
val config = context.config
64-
if (showHidden != config.shouldShowHidden) {
65-
showHidden = !showHidden
66-
refreshItems()
67-
}
64+
showHidden = config.shouldShowHidden
6865

6966
context.updateTextColors(mView as ViewGroup)
7067
mView.items_fastscroller.updateHandleColor()
@@ -73,9 +70,10 @@ class ItemsFragment : Fragment(), ItemsAdapter.ItemOperationsListener, Breadcrum
7370
storedItems = ArrayList()
7471
(items_list.adapter as ItemsAdapter).updateTextColor(newColor)
7572
mView.breadcrumbs.updateColor(newColor)
76-
refreshItems()
7773
storedTextColor = newColor
7874
}
75+
76+
refreshItems()
7977
}
8078

8179
override fun onPause() {

0 commit comments

Comments
 (0)