From 9ba125e04a0150893b944660b6d909584ba2c52d Mon Sep 17 00:00:00 2001 From: Alex Baker Date: Fri, 29 May 2020 18:52:35 -0500 Subject: [PATCH] Fix remote list picker click --- .../java/com/todoroo/astrid/adapter/FilterViewHolder.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/todoroo/astrid/adapter/FilterViewHolder.kt b/app/src/main/java/com/todoroo/astrid/adapter/FilterViewHolder.kt index 7c178e12b..f2cdb2555 100644 --- a/app/src/main/java/com/todoroo/astrid/adapter/FilterViewHolder.kt +++ b/app/src/main/java/com/todoroo/astrid/adapter/FilterViewHolder.kt @@ -75,8 +75,10 @@ class FilterViewHolder : RecyclerView.ViewHolder { size.text = locale!!.formatNumber(count) size.visibility = View.VISIBLE } - row.setOnClickListener { - onClick?.invoke(filter) + if (onClick != null) { + row.setOnClickListener { + onClick?.invoke(filter) + } } }