Merge "Java crash on RecentsView.isTaskViewVisible method" into main

This commit is contained in:
Sergey Pinkevich
2024-01-05 11:34:55 +00:00
committed by Android (Google) Code Review

View File

@@ -667,8 +667,10 @@ public class SplitSelectStateController {
MAIN_EXECUTOR.execute(() -> {
// Only animate from taskView if it's already visible
boolean shouldLaunchFromTaskView = mLaunchingTaskView != null &&
mLaunchingTaskView.getRecentsView().isTaskViewVisible(mLaunchingTaskView);
boolean shouldLaunchFromTaskView = mLaunchingTaskView != null
&& mLaunchingTaskView.getRecentsView() != null
&& mLaunchingTaskView.getRecentsView().isTaskViewVisible(
mLaunchingTaskView);
mSplitAnimationController.playSplitLaunchAnimation(
shouldLaunchFromTaskView ? mLaunchingTaskView : null,
mLaunchingIconView,