mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 22:47:59 +01:00
show "Temporarily show excluded" only if we have any excluded folders
This commit is contained in:
parent
d28d57f961
commit
550f42f110
1 changed files with 2 additions and 1 deletions
|
@ -309,7 +309,8 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener {
|
|||
menu.findItem(R.id.temporarily_show_hidden).isVisible = (!isRPlus() || isExternalStorageManager()) && !config.shouldShowHidden
|
||||
menu.findItem(R.id.stop_showing_hidden).isVisible = (!isRPlus() || isExternalStorageManager()) && config.temporarilyShowHidden
|
||||
|
||||
menu.findItem(R.id.temporarily_show_excluded).isVisible = !menu.findItem(R.id.temporarily_show_hidden).isVisible && !config.temporarilyShowExcluded
|
||||
menu.findItem(R.id.temporarily_show_excluded).isVisible =
|
||||
!menu.findItem(R.id.temporarily_show_hidden).isVisible && !config.temporarilyShowExcluded && config.excludedFolders.isNotEmpty()
|
||||
menu.findItem(R.id.stop_showing_excluded).isVisible = !menu.findItem(R.id.temporarily_show_hidden).isVisible && config.temporarilyShowExcluded
|
||||
|
||||
updateMenuItemColors(menu)
|
||||
|
|
Loading…
Reference in a new issue