From c353ddf2cf46713d37278d543d875dccb8aa42e2 Mon Sep 17 00:00:00 2001 From: Naveen Date: Sun, 13 Nov 2022 02:30:04 +0530 Subject: [PATCH] Make `viewClicked`, `viewLongClicked` public --- .../commons/adapters/MyRecyclerViewListAdapter.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commons/src/main/kotlin/com/simplemobiletools/commons/adapters/MyRecyclerViewListAdapter.kt b/commons/src/main/kotlin/com/simplemobiletools/commons/adapters/MyRecyclerViewListAdapter.kt index 1aee34232..a2cc34801 100644 --- a/commons/src/main/kotlin/com/simplemobiletools/commons/adapters/MyRecyclerViewListAdapter.kt +++ b/commons/src/main/kotlin/com/simplemobiletools/commons/adapters/MyRecyclerViewListAdapter.kt @@ -330,7 +330,7 @@ abstract class MyRecyclerViewListAdapter( } } - private fun viewClicked(any: T) { + fun viewClicked(any: T) { if (actModeCallback.isSelectable) { val currentPosition = adapterPosition - positionOffset val isSelected = selectedKeys.contains(getItemSelectionKey(currentPosition)) @@ -341,7 +341,7 @@ abstract class MyRecyclerViewListAdapter( lastLongPressedItem = -1 } - private fun viewLongClicked() { + fun viewLongClicked() { val currentPosition = adapterPosition - positionOffset if (!actModeCallback.isSelectable) { activity.startActionMode(actModeCallback)