From f94d9503d7bb741012276177c8b562ee015d0bff Mon Sep 17 00:00:00 2001 From: kunfei Date: Tue, 15 Oct 2019 13:41:59 +0800 Subject: [PATCH] up --- .../java/io/legado/app/base/adapter/CommonRecyclerAdapter.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/base/adapter/CommonRecyclerAdapter.kt b/app/src/main/java/io/legado/app/base/adapter/CommonRecyclerAdapter.kt index 41c709057..a87416469 100644 --- a/app/src/main/java/io/legado/app/base/adapter/CommonRecyclerAdapter.kt +++ b/app/src/main/java/io/legado/app/base/adapter/CommonRecyclerAdapter.kt @@ -130,7 +130,9 @@ abstract class CommonRecyclerAdapter(protected val context: Context) : Rec if (items != null) { this.items.addAll(items) } - notifyDataSetChanged() + if (notify) { + notifyDataSetChanged() + } } }