Skip to content

Instantly share code, notes, and snippets.

@aviraxp
Created October 1, 2018 16:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aviraxp/3c3a933a084e55c4be4158c010dcce19 to your computer and use it in GitHub Desktop.
Save aviraxp/3c3a933a084e55c4be4158c010dcce19 to your computer and use it in GitHub Desktop.
case MSG_GESTURE_MOTION_DOWN: {
int k = 0;
while (k < ViewRootImpl.this.mBackupEventList.size()) {
try {
boolean ishandled = ViewRootImpl.this.mView.dispatchPointerEvent(
(MotionEvent) ViewRootImpl.this.mBackupEventList.get(k));
k++;
} catch (NullPointerException e) {
Log.e(ViewRootImpl.TAG, "mView does not exist, discard points. " + e);
break;
}
}
} break;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment