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

View file

@ -147,6 +147,8 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener {
} }
private fun hideFolder() { private fun hideFolder() {
addNoMedia(mPath)
if (!config.showHiddenFolders) if (!config.showHiddenFolders)
finish() finish()
else else
@ -154,6 +156,7 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener {
} }
private fun unhideFolder() { private fun unhideFolder() {
removeNoMedia(mPath)
invalidateOptionsMenu() invalidateOptionsMenu()
} }