From 4c66a313707711d213ff1d8c8c136a76430d5486 Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 3 Apr 2020 23:36:53 +0200 Subject: [PATCH] do not allow selecting the thread date time label --- .../simplemobiletools/smsmessenger/adapters/ThreadAdapter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/adapters/ThreadAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/adapters/ThreadAdapter.kt index f8ac9f2e..77d34f28 100644 --- a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/adapters/ThreadAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/adapters/ThreadAdapter.kt @@ -46,7 +46,7 @@ class ThreadAdapter( } } - override fun getSelectableItemCount() = messages.size + override fun getSelectableItemCount() = messages.filter { it is Message }.size override fun getIsItemSelectable(position: Int) = !isThreadDateTime(position)