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

Skip to content
Commit 895bf736 authored by Yifei Zhang's avatar Yifei Zhang
Browse files

swipe-dismiss: add IDecorViewGestureListener

- To allow implicit gesture interception at client side and provide
  compatibility behavior to Wear OS apps depending on legacy swipe
  dismiss behavior.

WMS:
- Add `register/unreigsterDecorViewGestureListener(IDecorViewGestureListener, displayId)`.
- Protect by MONITOR_INPUT permission

IWindowSession / Session:
- Add `reportDecorViewGestureInterceptionChanged(IWindow, boolean intercepted)`.

ViewRootImpl:
- Add MSG_DECOR_VIEW_GESTURE_INTERCEPTION, asynchronously report gesture
  interception result to window session.

DecorView:
- Add WearGestureInterceptionDetector for WearOS system gesture
  interception logic.
- Reports gesture interception through ViewRootImpl

More context: go/wear-gestural-navigation-2023

Test: manual, http://shortn/_tEmDzQ2LOS
Bug: 297923810
Change-Id: I279963433e5e44940f884883be6807f182577bd1
parent 0714e655
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment