Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cedadafc authored by Taran Singh's avatar Taran Singh Committed by Android (Google) Code Review
Browse files

Merge "Stylus shouldnt trigger gestures during handwriting"

parents 17246f8f e7b4a4cf
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -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;