Merge pull request #1193 from KryptKode/ref/viewholder-methods
change ViewHolder's viewClicked and viewLongClicked to public methods
This commit is contained in:
commit
f0b56ece9e
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue