From 355d5af8ae2d934c9bca87e3d41319da8c745fd3 Mon Sep 17 00:00:00 2001 From: arkon Date: Sun, 28 Mar 2021 10:59:35 -0400 Subject: [PATCH] Dismiss action toolbar after download action in updates (closes #4729) --- .../kanade/tachiyomi/ui/recent/updates/UpdatesController.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/recent/updates/UpdatesController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/recent/updates/UpdatesController.kt index 16c51c6a4..b5ef1487b 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/recent/updates/UpdatesController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/recent/updates/UpdatesController.kt @@ -210,6 +210,7 @@ class UpdatesController : */ private fun downloadChapters(chapters: List) { 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) { presenter.markChapterRead(chapters, false) + destroyActionModeIfNeeded() } override fun deleteChapters(chaptersToDelete: List) { presenter.deleteChapters(chaptersToDelete) + destroyActionModeIfNeeded() } private fun destroyActionModeIfNeeded() {