From d03bdfc91a1922be47bd0a12f9710675374f4720 Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 23 Feb 2017 20:14:00 +0100 Subject: [PATCH] add folder un/hiding from thumbnail view --- .../com/simplemobiletools/gallery/activities/MediaActivity.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt index a7956d83e..aadce2b89 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt @@ -147,6 +147,8 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener { } private fun hideFolder() { + addNoMedia(mPath) + if (!config.showHiddenFolders) finish() else @@ -154,6 +156,7 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener { } private fun unhideFolder() { + removeNoMedia(mPath) invalidateOptionsMenu() }