Fix some touch issues during gesture nav transition
- Don't recreate the laucher transition controller if we've already ended it, as it could clobber a touch interaction that started in the meantime - Test: swipe up from an app to overivew, swipe to dismiss it during the transition. - Previously, we were ending the controller twice (once on touch down as we started proxying, and again in setupLauncherUiAfterSwipeUpToRecentsAnimation()), and the second one could happen after starting the dismiss interaction. - Don't recreateControllers() if orientation didn't change - Test: swipe up to go from an app to home, swipe up to all apps during the transition. - Previously, we were getting the following sequence: 1. Touch down on home to start swiping to all apps - all current controllers get this down event to start determining whether to intercept 2. Before reaching touch slop, we recreateControllers(), so all new controllers won't get the down event and thus won't intercept - Now, we avoid unnecessarily recreateControllers(), so the original controllers can still intercept. Test: see above Fixes: 189700453 Change-Id: Icfa5b6cdb32122adaf6ac8e8cb197b0c477dac60
Loading
Please register or sign in to comment