Dismiss action toolbar after download action in updates (closes #4729)

This commit is contained in:
arkon 2021-03-28 10:59:35 -04:00
parent 3d99a8ebdb
commit 355d5af8ae

View file

@ -210,6 +210,7 @@ class UpdatesController :
*/
private fun downloadChapters(chapters: List<UpdatesItem>) {
presenter.downloadChapters(chapters)
destroyActionModeIfNeeded()
}
/**
@ -251,6 +252,7 @@ class UpdatesController :
if (presenter.preferences.removeAfterMarkedAsRead()) {
deleteChapters(chapters)
}
destroyActionModeIfNeeded()
}
/**
@ -259,10 +261,12 @@ class UpdatesController :
*/
private fun markAsUnread(chapters: List<UpdatesItem>) {
presenter.markChapterRead(chapters, false)
destroyActionModeIfNeeded()
}
override fun deleteChapters(chaptersToDelete: List<UpdatesItem>) {
presenter.deleteChapters(chaptersToDelete)
destroyActionModeIfNeeded()
}
private fun destroyActionModeIfNeeded() {