Update orientation state while gesture animation start.
While quickswitch in landscape mode, the orientation handler would be update to LandscapePagedViewHandler when receive onLauncherStart, however, it might be too late because the VelocityTracker can already tracking with PortraitPagedViewHandler at AbsSwipeUpHandler#setupRecentsViewUi, which leads the wrong judgement while PagedView#onTouchEvent handling the ACTION_UP that the velocity can nearly 0 from mOrientationHandler.getPrimaryVelocity. By update the orientation handler earlier at onGestureAnimationStart, the velocity tracking result should stay consistent from ACTION_DOWN till ACTION_UP. Bug: 213867585 Bug: 209936664 Bug: 221805258 Test: run below tests w/o shell transition. atest FlickerTests:QuickSwitchBetweenTwoAppsForwardTest atest FlickerTests:QuickSwitchBetweenTwoAppsBackTest Change-Id: If73fa8d88cc372b6f783fb6cdda4148d11a2ee19
Loading
Please register or sign in to comment