Fix NPE crash when merge transition to remote transition.
After enable shell transition, the opening/closing target is for the app. In legacy RecentsAnimationController, the mode of the new RemoteAnimationTarget is decide based on the recents activity type, so basically the mode for all non-home/recents activity is closing. So while create the recents window animator, the target apps will be filter out in RemoteAnimationTargets#ctor because the mode is changed. To make the remote animation targets compatible with shell transition, there should only need to check the opening apps as target. Also fix that the topMostSimulators can be null if the size of remoteTargetHandles is zero. Bug: 207297486 Test: Enable shell transition, run atest TaplTestsQuickstep#testQuickSwitchFromApp Test: Enable shell transition, enter recents, swipe to right-most page( the page shows "Clear all"), then click the task and verify Launcher won't crash. Test on both NexusLauncher and 3rd-party Launcher. Change-Id: I9bde3d7864d3edd54145c66acae0cd1013d89c6b
Loading
Please register or sign in to comment