make the temporary hidden visibility toggling clearer

This commit is contained in:
tibbi 2017-07-29 22:08:12 +02:00
parent 5811f0dc56
commit a55943f0f0
2 changed files with 4 additions and 4 deletions

View File

@ -212,10 +212,10 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener {
private fun tryToggleTemporarilyShowHidden(show: Boolean) { private fun tryToggleTemporarilyShowHidden(show: Boolean) {
if (config.temporarilyShowHidden) { if (config.temporarilyShowHidden) {
toggleTemporarilyShowHidden(show) toggleTemporarilyShowHidden(false)
} else { } else {
handleHiddenFolderPasswordProtection { handleHiddenFolderPasswordProtection {
toggleTemporarilyShowHidden(show) toggleTemporarilyShowHidden(true)
} }
} }
} }

View File

@ -318,10 +318,10 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener {
private fun tryToggleTemporarilyShowHidden(show: Boolean) { private fun tryToggleTemporarilyShowHidden(show: Boolean) {
if (config.temporarilyShowHidden) { if (config.temporarilyShowHidden) {
toggleTemporarilyShowHidden(show) toggleTemporarilyShowHidden(false)
} else { } else {
handleHiddenFolderPasswordProtection { handleHiddenFolderPasswordProtection {
toggleTemporarilyShowHidden(show) toggleTemporarilyShowHidden(true)
} }
} }
} }