From 4f3239779f47588e4f92a1c6b0c9bfa4b987fd7e Mon Sep 17 00:00:00 2001 From: kunfei Date: Thu, 6 Feb 2020 23:21:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../legado/app/ui/main/bookshelf/books/BooksDiffCallBack.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/ui/main/bookshelf/books/BooksDiffCallBack.kt b/app/src/main/java/io/legado/app/ui/main/bookshelf/books/BooksDiffCallBack.kt index 481411bba..9f7afd8bb 100644 --- a/app/src/main/java/io/legado/app/ui/main/bookshelf/books/BooksDiffCallBack.kt +++ b/app/src/main/java/io/legado/app/ui/main/bookshelf/books/BooksDiffCallBack.kt @@ -56,8 +56,10 @@ class BooksDiffCallBack(private val oldItems: List, private val newItems: bundle.putString("cover", null) if (oldItem.getUnreadChapterNum() != newItem.getUnreadChapterNum() || oldItem.lastCheckCount != newItem.lastCheckCount - ) + ) { bundle.putString("refresh", null) + } + if (bundle.isEmpty) { return null }