From a55943f0f0cec22ff60ef6ebcf41723b7eeaad48 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sat, 29 Jul 2017 22:08:12 +0200 Subject: [PATCH] make the temporary hidden visibility toggling clearer --- .../com/simplemobiletools/gallery/activities/MainActivity.kt | 4 ++-- .../com/simplemobiletools/gallery/activities/MediaActivity.kt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 25e104d4c..722a51631 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt @@ -212,10 +212,10 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener { private fun tryToggleTemporarilyShowHidden(show: Boolean) { if (config.temporarilyShowHidden) { - toggleTemporarilyShowHidden(show) + toggleTemporarilyShowHidden(false) } else { handleHiddenFolderPasswordProtection { - toggleTemporarilyShowHidden(show) + toggleTemporarilyShowHidden(true) } } } 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 c8f872de6..ec00fa19b 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt @@ -318,10 +318,10 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener { private fun tryToggleTemporarilyShowHidden(show: Boolean) { if (config.temporarilyShowHidden) { - toggleTemporarilyShowHidden(show) + toggleTemporarilyShowHidden(false) } else { handleHiddenFolderPasswordProtection { - toggleTemporarilyShowHidden(show) + toggleTemporarilyShowHidden(true) } } }