From ab589c52cfa1dcc9132e79392bc23a0cf8d83422 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sat, 21 Apr 2018 23:18:43 +0200 Subject: [PATCH] refresh directories at toggling Temporarily show hidden immediately --- .../com/simplemobiletools/gallery/activities/MainActivity.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt index 027ff2055..8eeadaa0c 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt @@ -356,6 +356,7 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener { } private fun toggleTemporarilyShowHidden(show: Boolean) { + mLoadedInitialPhotos = false config.temporarilyShowHidden = show getDirectories() invalidateOptionsMenu()