Make the handwriting surface NOT_TOUCHABLE
Looks like we forgot to do it. INPUT_FEATURE_INTERCEPTS_STYLUS is meant to be used in conjunction with FLAG_NOT_TOUCHABLE. Without the latter, the window will still receive all pointer events. Bug: 210039666 Test: None Change-Id: I724da1432dd3f38b82676b5ca924040f4aa78a94
This commit is contained in:
@@ -57,7 +57,8 @@ final class HandwritingEventReceiverSurface {
|
||||
mWindowHandle.name = name;
|
||||
mWindowHandle.token = mClientChannel.getToken();
|
||||
mWindowHandle.layoutParamsType = WindowManager.LayoutParams.TYPE_SECURE_SYSTEM_OVERLAY;
|
||||
mWindowHandle.layoutParamsFlags = WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL;
|
||||
mWindowHandle.layoutParamsFlags = WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL
|
||||
| WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE;
|
||||
mWindowHandle.dispatchingTimeoutMillis = DEFAULT_DISPATCHING_TIMEOUT_MILLIS;
|
||||
mWindowHandle.visible = true;
|
||||
mWindowHandle.focusable = false;
|
||||
|
||||
Reference in New Issue
Block a user