From a7e24f0c6bb1c598735eb902cf8cdff8de5dd1da Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Fri, 23 Feb 2018 20:53:16 -0500 Subject: Update/fast adapter (#138) * Update version and add debug key * Update fast adapter * Add debug separation * Inline functions and remove unused --- .../src/main/kotlin/ca/allanwang/kau/kpref/activity/KPrefActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kpref-activity/src/main/kotlin') diff --git a/kpref-activity/src/main/kotlin/ca/allanwang/kau/kpref/activity/KPrefActivity.kt b/kpref-activity/src/main/kotlin/ca/allanwang/kau/kpref/activity/KPrefActivity.kt index 75e9c36..6de57c2 100644 --- a/kpref-activity/src/main/kotlin/ca/allanwang/kau/kpref/activity/KPrefActivity.kt +++ b/kpref-activity/src/main/kotlin/ca/allanwang/kau/kpref/activity/KPrefActivity.kt @@ -70,7 +70,7 @@ abstract class KPrefActivity : KauBaseActivity(), KPrefActivityContract { globalOptions = GlobalOptions(core, this) recycler.withLinearAdapter(adapter) adapter.withSelectable(false) - .withOnClickListener { v, _, item, _ -> item.onClick(v); true } + .withOnClickListener { v, _, item, _ -> item.onClick(v!!); true } showNextPrefs(R.string.kau_settings, onCreateKPrefs(savedInstanceState), true) } -- cgit v1.2.3