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
Loading
Please register or sign in to comment