From 71c228322fc5375ce90cbd7dfa11951e1185e9d1 Mon Sep 17 00:00:00 2001 From: kunfei Date: Sat, 15 Feb 2020 12:56:20 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/legado/app/base/adapter/CommonRecyclerAdapter.kt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 3dc0e8106..c8f85889b 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 @@ -19,13 +19,14 @@ import java.util.* abstract class CommonRecyclerAdapter(protected val context: Context) : RecyclerView.Adapter() { - constructor(context: Context, vararg delegates: Pair>) : this( - context - ) { + constructor(context: Context, vararg delegates: ItemViewDelegate) : this(context) { addItemViewDelegates(*delegates) } - constructor(context: Context, vararg delegates: ItemViewDelegate) : this(context) { + constructor( + context: Context, + vararg delegates: Pair> + ) : this(context) { addItemViewDelegates(*delegates) }