Skip to content

Commit

Permalink
Merge pull request #266 from rubensousa/docs
Browse files Browse the repository at this point in the history
Update drag and drop docs
  • Loading branch information
rubensousa authored Sep 4, 2024
2 parents 15167cc + 56189bb commit 3a222d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/recipes/dragdrop.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ private val dragHelper = DpadDragHelper(
override fun onDragStarted(viewHolder: RecyclerView.ViewHolder) {
// ViewHolder is now being dragged
}
override fun onDragStopped() {
override fun onDragStopped(fromUser: Boolean) {
// Dragging was cancelled either by user or programmatically
}
}
Expand Down Expand Up @@ -71,4 +71,4 @@ dragHelper.stopDrag()

!!! note
Users can also stop dragging by pressing the following keys: `KeyEvent.KEYCODE_DPAD_CENTER`,
`KeyEvent.KEYCODE_ENTER`, `KeyEvent.KEYCODE_BACK`. These are customizable in the constructor of `DpadDragHelper`
`KeyEvent.KEYCODE_ENTER`. These are customizable in the constructor of `DpadDragHelper`

0 comments on commit 3a222d7

Please sign in to comment.