瀏覽代碼

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

arkon 4 年之前
父節點
當前提交
355d5af8ae
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      app/src/main/java/eu/kanade/tachiyomi/ui/recent/updates/UpdatesController.kt

+ 4 - 0
app/src/main/java/eu/kanade/tachiyomi/ui/recent/updates/UpdatesController.kt

@@ -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() {