diff --git a/commons/src/main/kotlin/com/simplemobiletools/commons/adapters/MyRecyclerViewAdapter.kt b/commons/src/main/kotlin/com/simplemobiletools/commons/adapters/MyRecyclerViewAdapter.kt index 1ce97ddcf..b31fc8cb5 100644 --- a/commons/src/main/kotlin/com/simplemobiletools/commons/adapters/MyRecyclerViewAdapter.kt +++ b/commons/src/main/kotlin/com/simplemobiletools/commons/adapters/MyRecyclerViewAdapter.kt @@ -313,7 +313,7 @@ abstract class MyRecyclerViewAdapter(val activity: BaseSimpleActivity, val recyc } } - private fun viewClicked(any: Any) { + fun viewClicked(any: Any) { if (actModeCallback.isSelectable) { val currentPosition = adapterPosition - positionOffset val isSelected = selectedKeys.contains(getItemSelectionKey(currentPosition)) @@ -324,7 +324,7 @@ abstract class MyRecyclerViewAdapter(val activity: BaseSimpleActivity, val recyc lastLongPressedItem = -1 } - private fun viewLongClicked() { + fun viewLongClicked() { val currentPosition = adapterPosition - positionOffset if (!actModeCallback.isSelectable) { activity.startSupportActionMode(actModeCallback)