Skip to content

Commit

Permalink
Check MotionEvent for null in dispatchTouchEvent()
Browse files Browse the repository at this point in the history
Because, apparently, it can be null sometimes somewhere.
  • Loading branch information
markusfisch committed Apr 11, 2024
1 parent 04ed5f1 commit 8333cc7
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ public void onBackPressed() {

@Override
public boolean dispatchTouchEvent(MotionEvent ev) {
if (ev == null) {
return false;
}
if (pieView.inListMode() && gestureDetector.onTouchEvent(ev)) {
return true;
}
Expand Down

0 comments on commit 8333cc7

Please sign in to comment.