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)