Adjust mark as unread and mark previous as read action visibility (#6703)
(cherry picked from commit 08ee858f64f6dbc9d71a6fc19c4c29f4acc884cb)
This commit is contained in:
parent
d8c295a293
commit
2026f34956
@ -1278,7 +1278,8 @@ class MangaController :
|
||||
toolbar.findToolbarItem(R.id.action_bookmark)?.isVisible = chapters.any { !it.chapter.bookmark }
|
||||
toolbar.findToolbarItem(R.id.action_remove_bookmark)?.isVisible = chapters.all { it.chapter.bookmark }
|
||||
toolbar.findToolbarItem(R.id.action_mark_as_read)?.isVisible = chapters.any { !it.chapter.read }
|
||||
toolbar.findToolbarItem(R.id.action_mark_as_unread)?.isVisible = chapters.all { it.chapter.read }
|
||||
toolbar.findToolbarItem(R.id.action_mark_as_unread)?.isVisible = chapters.any { it.chapter.read }
|
||||
toolbar.findToolbarItem(R.id.action_mark_previous_as_read)?.isVisible = chapters.size == 1
|
||||
}
|
||||
|
||||
override fun onActionItemClicked(mode: ActionMode, item: MenuItem): Boolean {
|
||||
|
Loading…
x
Reference in New Issue
Block a user