Merge "Stylus shouldnt trigger gestures during handwriting"

This commit is contained in:
Taran Singh
2022-08-08 18:19:50 +00:00
committed by Android (Google) Code Review

View File

@@ -32,11 +32,10 @@ final class HandwritingEventReceiverSurface {
public static final String TAG = HandwritingEventReceiverSurface.class.getSimpleName();
static final boolean DEBUG = HandwritingModeController.DEBUG;
// Place the layer below the highest layer to place it under gesture monitors. If the surface
// is above gesture monitors, then edge-back and swipe-up gestures won't work when this surface
// is intercepting.
// Place the layer at the highest layer so stylus cannot trigger gesture monitors
// (e.g. navigation bar, edge-back, etc) while handwriting is ongoing.
// TODO(b/217538817): Specify the ordering in WM by usage.
private static final int HANDWRITING_SURFACE_LAYER = Integer.MAX_VALUE - 1;
private static final int HANDWRITING_SURFACE_LAYER = Integer.MAX_VALUE;
private final InputWindowHandle mWindowHandle;
private final InputChannel mClientChannel;