From b1f522d1a763fd68a126f9fc55222ccf33a337a2 Mon Sep 17 00:00:00 2001 From: Johannes Gallmann Date: Thu, 30 Nov 2023 15:40:23 +0100 Subject: [PATCH] Fix delayed taskbar animation for predictive back Bug: 311613831 Flag: NONE Test: Manual, i.e. testing predictive back to home and analysing taskbar animation Change-Id: I87d9ba065a43ee99ff1c7b35478b2828a482bd7b --- .../android/quickstep/LauncherBackAnimationController.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/quickstep/src/com/android/quickstep/LauncherBackAnimationController.java b/quickstep/src/com/android/quickstep/LauncherBackAnimationController.java index 406e9f46ae..a4b3c25a08 100644 --- a/quickstep/src/com/android/quickstep/LauncherBackAnimationController.java +++ b/quickstep/src/com/android/quickstep/LauncherBackAnimationController.java @@ -54,6 +54,7 @@ import com.android.launcher3.AbstractFloatingView; import com.android.launcher3.QuickstepTransitionManager; import com.android.launcher3.R; import com.android.launcher3.Utilities; +import com.android.launcher3.taskbar.LauncherTaskbarUIController; import com.android.launcher3.uioverrides.QuickstepLauncher; import com.android.quickstep.util.RectFSpringAnim; import com.android.systemui.shared.system.QuickStepContract; @@ -405,6 +406,10 @@ public class LauncherBackAnimationController { if (mLauncher.isDestroyed()) { return; } + LauncherTaskbarUIController taskbarUIController = mLauncher.getTaskbarUIController(); + if (taskbarUIController != null) { + taskbarUIController.onLauncherVisibilityChanged(true); + } // TODO: Catch the moment when launcher becomes visible after the top app un-occludes // launcher and start animating afterwards. Currently we occasionally get a flicker from // animating when launcher is still invisible.