Skip to content

Commit

Permalink
Merge pull request #299 from MGaetan89/fix_double_click
Browse files Browse the repository at this point in the history
Fix crash on double click on a cell
  • Loading branch information
evrencoskun authored Mar 30, 2020
2 parents 6e0709f + b06bc94 commit c99206e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,5 +114,5 @@ protected ITableViewListener getTableViewListener() {

abstract protected void longPressAction(@NonNull MotionEvent e);

abstract protected boolean doubleClickAction(MotionEvent e);
abstract protected boolean doubleClickAction(@NonNull MotionEvent e);
}
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ protected void longPressAction(@NonNull MotionEvent e) {
}

@Override
protected boolean doubleClickAction(MotionEvent e) {
protected boolean doubleClickAction(@NonNull MotionEvent e) {
// Get interacted view from x,y coordinate.
View childView = mCellRecyclerView.findChildViewUnder(e.getX(), e.getY());
View childView = mRecyclerView.findChildViewUnder(e.getX(), e.getY());

if (childView != null) {
// Find the view holder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ protected void longPressAction(@NonNull MotionEvent e) {
}

@Override
protected boolean doubleClickAction(MotionEvent e) {
protected boolean doubleClickAction(@NonNull MotionEvent e) {
// Get interacted view from x,y coordinate.
View childView = mRecyclerView.findChildViewUnder(e.getX(), e.getY());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ protected void longPressAction(@NonNull MotionEvent e) {
}

@Override
protected boolean doubleClickAction(MotionEvent e) {
protected boolean doubleClickAction(@NonNull MotionEvent e) {
// Get interacted view from x,y coordinate.
View childView = mRecyclerView.findChildViewUnder(e.getX(), e.getY());

Expand Down

0 comments on commit c99206e

Please sign in to comment.