diff options
author | 2025-04-02 13:21:54 -0700 | |
---|---|---|
committer | 2025-04-04 21:39:43 -0700 | |
commit | 03dd831d1f9edcfe56a60b200036e7ebfe1b8bef (patch) | |
tree | 87ec93e351703665d734f8bb6b4eeb6e19cecdc9 | |
parent | 0d23daefd1c1c5c6dabd7b34595e451d4a9fbf42 (diff) |
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
-rw-r--r-- | quickstep/src/com/android/launcher3/taskbar/TaskbarViewController.java | 1 |
1 files changed, 1 insertions, 0 deletions
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()); |