From 912bee7c058cfa35c82902c8c2f1a5ddc07b713c Mon Sep 17 00:00:00 2001 From: kunfei Date: Mon, 21 Feb 2022 09:06:35 +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 --- .../java/io/legado/app/base/adapter/DiffRecyclerAdapter.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/io/legado/app/base/adapter/DiffRecyclerAdapter.kt b/app/src/main/java/io/legado/app/base/adapter/DiffRecyclerAdapter.kt index dc001fbb4..86f3a11e1 100644 --- a/app/src/main/java/io/legado/app/base/adapter/DiffRecyclerAdapter.kt +++ b/app/src/main/java/io/legado/app/base/adapter/DiffRecyclerAdapter.kt @@ -46,6 +46,9 @@ abstract class DiffRecyclerAdapter(protected val context recyclerView.adapter = this } + /** + * items与上一次提交的对象必须不同,如果指向相同地址即使数据变化也不会刷新 + */ @Synchronized fun setItems(items: List?) { kotlin.runCatching {