Adding prompt for marking all as unread

This commit is contained in:
Jays2Kings 2021-03-27 21:13:00 -04:00
parent 697e1460dc
commit 5c4a6ef8e0
2 changed files with 7 additions and 1 deletions

View File

@ -816,7 +816,12 @@ class MangaDetailsController :
}.negativeButton(android.R.string.cancel).show()
}
R.id.remove_all, R.id.remove_read, R.id.remove_non_bookmarked -> massDeleteChapters(item.itemId)
R.id.action_mark_all_as_unread -> markAsUnread(presenter.chapters)
R.id.action_mark_all_as_unread -> {
MaterialDialog(view!!.context).message(R.string.mark_all_chapters_as_unread)
.positiveButton(R.string.mark_as_unread) {
markAsUnread(presenter.chapters)
}.negativeButton(android.R.string.cancel).show()
}
R.id.download_next, R.id.download_next_5, R.id.download_custom, R.id.download_unread, R.id.download_all -> downloadChapters(
item.itemId
)

View File

@ -399,6 +399,7 @@
<string name="source_not_installed_">Source not installed: %1$s</string>
<string name="no_description">No description</string>
<string name="mark_all_chapters_as_read">Mark all chapters as read?</string>
<string name="mark_all_chapters_as_unread">Mark all chapters as unread?</string>
<string name="remove_from_library">Remove from library</string>
<string name="select_starting_chapter">Select starting chapter</string>
<string name="select_ending_chapter">Select ending chapter</string>