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

This commit is contained in:
Sergey Pinkevich authored and Android (Google) Code Review committed 2024-01-05 11:34:55 +00:00
commit 0f8d28024e
1 file changed
+4 -2
@@ -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,