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) }