From c0af778af1bf99e3536450c6ecc054d1d8d44953 Mon Sep 17 00:00:00 2001 From: Brian Isganitis Date: Wed, 2 Apr 2025 13:21:54 -0700 Subject: [PATCH] Disable LayoutTransitions for transient taskbar. Taskbar stashes once an app is launched from taskbar, or remains stashed if you launch something from All Apps. The layout transitions therefore are unlikely to be seen by the user. Disabling them means when the user unstashes, they will see the end result of the transition immediately. The problem with them being enabled for transient taskbar is we set icon alpha to 0 if Taskbar is stashed, which conflicts with the alpha layout transition animation. Flag: com.android.window.flags.enable_taskbar_recents_layout_transition Fix: 406809935 Test: Manual Change-Id: Ibcfc04e5c9af104725a69c8cceccef49544d7bd3 --- .../src/com/android/launcher3/taskbar/TaskbarViewController.java | 1 + 1 file changed, 1 insertion(+) diff --git a/quickstep/src/com/android/launcher3/taskbar/TaskbarViewController.java b/quickstep/src/com/android/launcher3/taskbar/TaskbarViewController.java index 8a9062a6f8..a26d0811b5 100644 --- a/quickstep/src/com/android/launcher3/taskbar/TaskbarViewController.java +++ b/quickstep/src/com/android/launcher3/taskbar/TaskbarViewController.java @@ -1227,6 +1227,7 @@ public class TaskbarViewController implements TaskbarControllers.LoggableTaskbar public void commitRunningAppsToUI() { mModelCallbacks.commitRunningAppsToUI(); if (ENABLE_TASKBAR_RECENTS_LAYOUT_TRANSITION.isTrue() + && !mActivity.isTransientTaskbar() && mTaskbarView.getLayoutTransition() == null) { // Set up after the first commit so that the initial recents do not animate (janky). mTaskbarView.setLayoutTransition(createLayoutTransitionForRunningApps());