Skip to content

Commit

Permalink
Fix crash on double click on a cell
Browse files Browse the repository at this point in the history
  • Loading branch information
MGaetan89 committed Mar 29, 2020
1 parent 6a3a9c3 commit b06bc94
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 b06bc94

Please sign in to comment.