From 03dd831d1f9edcfe56a60b200036e7ebfe1b8bef Mon Sep 17 00:00:00 2001 From: Brian Isganitis Date: Wed, 2 Apr 2025 13:21:54 -0700 Subject: 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 (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:c0af778af1bf99e3536450c6ecc054d1d8d44953) Merged-In: Ibcfc04e5c9af104725a69c8cceccef49544d7bd3 Change-Id: Ibcfc04e5c9af104725a69c8cceccef49544d7bd3 --- quickstep/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 4b600eed15..ce38e666f6 100644 --- a/quickstep/src/com/android/launcher3/taskbar/TaskbarViewController.java +++ b/quickstep/src/com/android/launcher3/taskbar/TaskbarViewController.java @@ -1218,6 +1218,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()); -- cgit v1.2.3-59-g8ed1b