diff --git a/services/core/java/com/android/server/inputmethod/HandwritingEventReceiverSurface.java b/services/core/java/com/android/server/inputmethod/HandwritingEventReceiverSurface.java index 8180e66166d93..0c889c2765bb3 100644 --- a/services/core/java/com/android/server/inputmethod/HandwritingEventReceiverSurface.java +++ b/services/core/java/com/android/server/inputmethod/HandwritingEventReceiverSurface.java @@ -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;