Make viewClicked
, viewLongClicked
public
This commit is contained in:
parent
5b5a6b083f
commit
c353ddf2cf
1 changed files with 2 additions and 2 deletions
|
@ -330,7 +330,7 @@ abstract class MyRecyclerViewListAdapter<T>(
|
|||
}
|
||||
}
|
||||
|
||||
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<T>(
|
|||
lastLongPressedItem = -1
|
||||
}
|
||||
|
||||
private fun viewLongClicked() {
|
||||
fun viewLongClicked() {
|
||||
val currentPosition = adapterPosition - positionOffset
|
||||
if (!actModeCallback.isSelectable) {
|
||||
activity.startActionMode(actModeCallback)
|
||||
|
|
Loading…
Reference in a new issue