Merge "Fix a bug to handle the touch ACTION_DOWN properly when inline suggestion view is obscured" into rvc-dev

This commit is contained in:
TreeHugger Robot
2020-06-03 17:37:21 +00:00
committed by Android (Google) Code Review

View File

@@ -58,7 +58,9 @@ public class InlineSuggestionRoot extends FrameLayout {
case MotionEvent.ACTION_DOWN: {
mDownX = event.getX();
mDownY = event.getY();
} break;
}
// Intentionally fall through to the next case so that when the window is obscured
// we transfer the touch to the remote IME window and don't handle it locally.
case MotionEvent.ACTION_MOVE: {
final float distance = MathUtils.dist(mDownX, mDownY,