make the temporary hidden visibility toggling clearer
This commit is contained in:
parent
5811f0dc56
commit
a55943f0f0
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue