Merge "Recycle motion event after cancel delegate from assistant input consumer" into ub-launcher3-master

This commit is contained in:
TreeHugger Robot 2019-03-20 00:22:20 +00:00 committed by Android (Google) Code Review
commit 7b43eba730
1 changed files with 1 additions and 0 deletions

View File

@ -160,6 +160,7 @@ public class AssistantTouchConsumer implements InputConsumer {
MotionEvent event = MotionEvent.obtain(ev);
event.setAction(MotionEvent.ACTION_CANCEL);
mConsumerDelegate.onMotionEvent(event);
event.recycle();
}
} else {
mState = STATE_DELEGATE_ACTIVE;