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

Skip to content
Commit 11bc9d55 authored by Shan Huang's avatar Shan Huang
Browse files

Generate progress events from app process for app animations.

The goal is to address touch latency when apps should handle
back. Main changes invovled:
- SysUI now only steals pointers from apps when the back navigation type is home, another activity or another task.
- Previously apps receive an ACTION_CANCEL when the back threshold is crossed. To keep behavior the same, we now generate this from the app process, by having the DecorView returning true from onInterceptTouchEvent when it should.
- We now track touch and compute progress from the app process when back nav type is APP_CALLBACK.

Bug: 261654570
Test: atest BackNavigationControllerTest
Test: atest OnBackInvokedCallbackGestureTest
Test: atest BackAnimationControllerTest
Test: atest BackTouchTrackerTest
Test: atest WindowOnBackInvokedDispatcherTest
Flag: None

Change-Id: Iab6a97ff6316367de83ad32ca87879d8a4c995f3
parent 4b4854d2
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