From ab23dc8648b67f20a598e8e3ddaef4e54c3e86c6 Mon Sep 17 00:00:00 2001 From: Jordan Silva Date: Thu, 17 Oct 2024 17:41:36 +0100 Subject: [PATCH] Fix split selection translation when focused task is selected for splitscreen After enabling large tile for desktop windowing, some animations and translations for dismiss were changed. The changes involved to translate the tasks when a large tile (i.e., focused task and desktop window) are dismissed and no other focusedTaskView is selected to replace the previous one. However, when we split a focused task, we don't replace it by another task in the grid. And also triggers the createTaskDismissAnimation, entering the same condition described before (focused task dismissed, nextFocusedTaskView = null), causing the weird and broken animation for split. To fix this, we skip this animation when is dismissing a task for split selection. Fix: 374104009 Flag: com.android.launcher3.enable_large_desktop_windowing_tile Test: Manual. With flag enabled and multiple apps opened in Overview, split the focused task. Change-Id: Ib79ad5abc0660a0b654f23b22b90f9889c6f7806 --- quickstep/src/com/android/quickstep/views/RecentsView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickstep/src/com/android/quickstep/views/RecentsView.java b/quickstep/src/com/android/quickstep/views/RecentsView.java index 7554c4496a..170422f814 100644 --- a/quickstep/src/com/android/quickstep/views/RecentsView.java +++ b/quickstep/src/com/android/quickstep/views/RecentsView.java @@ -3807,7 +3807,7 @@ public abstract class RecentsView< } } else if (!showAsGrid || (enableLargeDesktopWindowingTile() && dismissedTaskView.isLargeTile() - && nextFocusedTaskView == null)) { + && nextFocusedTaskView == null && !dismissingForSplitSelection)) { int offset = getOffsetToDismissedTask(scrollDiffPerPage, dismissedIndex, taskCount); int scrollDiff = newScroll[i] - oldScroll[i] + offset; if (scrollDiff != 0) {