Animate out/in the correct task view when recents change.

Flag: com.android.launcher3.taskbar_recents_layout_transition
Bug: 343521765
Test: go/testedequals
Change-Id: I6c7708ed9f03eff8469b5f2e75ce00e545b03f54
This commit is contained in:
Brian Isganitis committed 2024-12-09 15:35:43 -05:00
1 parent 8e2b850df7
commit 3c24c421f6
4 files changed
+112 -3

No files matched your search

@@ -1096,6 +1096,7 @@ public class TaskbarViewController implements TaskbarControllers.LoggableTaskbar
public void commitRunningAppsToUI() {
mModelCallbacks.commitRunningAppsToUI();
if (taskbarRecentsLayoutTransition() && mTaskbarView.getLayoutTransition() == null) {
// Set up after the first commit so that the initial recents do not animate (janky).
mTaskbarView.setLayoutTransition(createLayoutTransitionForRunningApps());
}
}