Dismiss action toolbar after download action in updates (closes #4729)
This commit is contained in:
parent
3d99a8ebdb
commit
355d5af8ae
1 changed files with 4 additions and 0 deletions
|
@ -210,6 +210,7 @@ class UpdatesController :
|
||||||
*/
|
*/
|
||||||
private fun downloadChapters(chapters: List<UpdatesItem>) {
|
private fun downloadChapters(chapters: List<UpdatesItem>) {
|
||||||
presenter.downloadChapters(chapters)
|
presenter.downloadChapters(chapters)
|
||||||
|
destroyActionModeIfNeeded()
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -251,6 +252,7 @@ class UpdatesController :
|
||||||
if (presenter.preferences.removeAfterMarkedAsRead()) {
|
if (presenter.preferences.removeAfterMarkedAsRead()) {
|
||||||
deleteChapters(chapters)
|
deleteChapters(chapters)
|
||||||
}
|
}
|
||||||
|
destroyActionModeIfNeeded()
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -259,10 +261,12 @@ class UpdatesController :
|
||||||
*/
|
*/
|
||||||
private fun markAsUnread(chapters: List<UpdatesItem>) {
|
private fun markAsUnread(chapters: List<UpdatesItem>) {
|
||||||
presenter.markChapterRead(chapters, false)
|
presenter.markChapterRead(chapters, false)
|
||||||
|
destroyActionModeIfNeeded()
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun deleteChapters(chaptersToDelete: List<UpdatesItem>) {
|
override fun deleteChapters(chaptersToDelete: List<UpdatesItem>) {
|
||||||
presenter.deleteChapters(chaptersToDelete)
|
presenter.deleteChapters(chaptersToDelete)
|
||||||
|
destroyActionModeIfNeeded()
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun destroyActionModeIfNeeded() {
|
private fun destroyActionModeIfNeeded() {
|
||||||
|
|
Reference in a new issue