From 3aa44ba16e52ceaf37dd28a8075b302c42785526 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Thu, 27 Sep 2018 19:56:25 -0400 Subject: Fix more lints --- .../main/kotlin/com/pitchedapps/frost/fragments/RecyclerFragmentBase.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/src/main/kotlin/com/pitchedapps/frost/fragments/RecyclerFragmentBase.kt') diff --git a/app/src/main/kotlin/com/pitchedapps/frost/fragments/RecyclerFragmentBase.kt b/app/src/main/kotlin/com/pitchedapps/frost/fragments/RecyclerFragmentBase.kt index e3b8f3d3..4f9133a6 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/fragments/RecyclerFragmentBase.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/fragments/RecyclerFragmentBase.kt @@ -47,7 +47,7 @@ abstract class GenericRecyclerFragment> : RecyclerFragment abstract fun mapper(data: T): Item - val adapter: ModelAdapter = ModelAdapter(this::mapper) + val adapter: ModelAdapter = ModelAdapter { this.mapper(it) } final override fun bind(recyclerView: FrostRecyclerView) { recyclerView.adapter = getAdapter() -- cgit v1.2.3