• Chris Ye's avatar
    Resolve conflict with gesture navigation when dragging cursor handle view on... · f9211375
    Chris Ye authored
    Resolve conflict with gesture navigation when dragging cursor handle view on the edge of the screen.
    
    Since Android 10(API 29) has supported system gesture navigation, if users try to swipe the cursor handle on the edge of screen, which will conflict with system navigation back. We should resolve this conflict via `View.setSystemGestureExclusionRects()` in `PopupTouchHandleDrawable.onSizeChanged()`
    
    Actually, it should be consistent with the behavior of the `Editor.HandleView`
    ```
    @Override
    protected void onSizeChanged(int w, int h, int oldw, int oldh) {
        super.onSizeChanged(w, h, oldw, oldh);
        setSystemGestureExclusionRects(Collections.singletonList(new Rect(0, 0, w, h)));
    }
    ```
    
    Bug: 1149803
    Change-Id: Icd7669bcccfa975fbb97c0e3758a3648add0e3c4
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2543647Reviewed-by: default avatarChangwan Ryu <changwan@chromium.org>
    Commit-Queue: Changwan Ryu <changwan@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#828515}
    f9211375
AUTHORS 45.5 KB