mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 22:47:59 +01:00
fix #967, do not allow toggling file visibility in the recycle bin
This commit is contained in:
parent
1c38f74ae7
commit
ab06f366f8
1 changed files with 3 additions and 2 deletions
|
@ -177,8 +177,9 @@ class MediaAdapter(activity: BaseSimpleActivity, var media: MutableList<Thumbnai
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
menu.findItem(R.id.cab_hide).isVisible = unhiddenCnt > 0
|
val isInRecycleBin = getSelectedMedia().firstOrNull()?.getIsInRecycleBin() == true
|
||||||
menu.findItem(R.id.cab_unhide).isVisible = hiddenCnt > 0
|
menu.findItem(R.id.cab_hide).isVisible = unhiddenCnt > 0 && !isInRecycleBin
|
||||||
|
menu.findItem(R.id.cab_unhide).isVisible = hiddenCnt > 0 && !isInRecycleBin
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun checkFavoriteBtnVisibility(menu: Menu) {
|
private fun checkFavoriteBtnVisibility(menu: Menu) {
|
||||||
|
|
Loading…
Reference in a new issue