Merge pull request #581 from gh123man/gh123man/dontAllowExcludeOnShowAll

Dont allow exclude when showing all folder content
This commit is contained in:
Tibor Kaputa 2018-01-15 22:10:08 +01:00 committed by GitHub
commit 2c890afe19
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -157,6 +157,7 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener {
menu.apply { menu.apply {
findItem(R.id.hide_folder).isVisible = !isFolderHidden && !mShowAll findItem(R.id.hide_folder).isVisible = !isFolderHidden && !mShowAll
findItem(R.id.unhide_folder).isVisible = isFolderHidden && !mShowAll findItem(R.id.unhide_folder).isVisible = isFolderHidden && !mShowAll
findItem(R.id.exclude_folder).isVisible = !mShowAll
findItem(R.id.folder_view).isVisible = mShowAll findItem(R.id.folder_view).isVisible = mShowAll
findItem(R.id.open_camera).isVisible = mShowAll findItem(R.id.open_camera).isVisible = mShowAll