mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 22:47:59 +01:00
hide some menu items at the Favorites folder
This commit is contained in:
parent
8af3b1eee3
commit
cc5bf379c4
1 changed files with 3 additions and 3 deletions
|
@ -188,9 +188,9 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener {
|
||||||
|
|
||||||
val isFolderHidden = File(mPath).containsNoMedia()
|
val isFolderHidden = File(mPath).containsNoMedia()
|
||||||
menu.apply {
|
menu.apply {
|
||||||
findItem(R.id.hide_folder).isVisible = !isFolderHidden && !mShowAll
|
findItem(R.id.hide_folder).isVisible = !isFolderHidden && !mShowAll && mPath != FAVORITES
|
||||||
findItem(R.id.unhide_folder).isVisible = isFolderHidden && !mShowAll
|
findItem(R.id.unhide_folder).isVisible = isFolderHidden && !mShowAll && mPath != FAVORITES
|
||||||
findItem(R.id.exclude_folder).isVisible = !mShowAll
|
findItem(R.id.exclude_folder).isVisible = !mShowAll && mPath != FAVORITES
|
||||||
|
|
||||||
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
|
||||||
|
|
Loading…
Reference in a new issue