We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee24460 commit f37bf2eCopy full SHA for f37bf2e
1 file changed
app/src/main/kotlin/org/fossify/phone/adapters/RecentCallsAdapter.kt
@@ -112,7 +112,7 @@ class RecentCallsAdapter(
112
113
override fun getSelectableItemCount() = currentList.filterIsInstance<RecentCall>().size
114
115
- override fun getIsItemSelectable(position: Int) = currentList[position] is RecentCall
+ override fun getIsItemSelectable(position: Int) = currentList.getOrNull(position) is RecentCall
116
117
override fun getItemSelectionKey(position: Int) = currentList.getOrNull(position)?.getItemId()
118
0 commit comments