add folder un/hiding from thumbnail view

This commit is contained in:
tibbi 2017-02-23 20:14:00 +01:00
parent f27afeb674
commit d03bdfc91a
1 changed files with 3 additions and 0 deletions

View File

@ -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()
}