From 100d8b3ec061525186d9baf1b16a4ade30fc46c9 Mon Sep 17 00:00:00 2001 From: Tracy Zhou Date: Tue, 16 Jul 2024 23:34:20 -0700 Subject: [PATCH] Fix double task bar I was too excited when I finally got the repro on my device. After some debugging, I found it (ag/27947503) Fixes: 350790048 Test: with the change, double task bar is gone. Flag: EXEMPT bugfix Change-Id: I969dbf5e9d2c5cc277dfb366858023e6eeff14e2 --- .../android/launcher3/taskbar/TaskbarStashController.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/quickstep/src/com/android/launcher3/taskbar/TaskbarStashController.java b/quickstep/src/com/android/launcher3/taskbar/TaskbarStashController.java index 267e19c7f8..430c0032a6 100644 --- a/quickstep/src/com/android/launcher3/taskbar/TaskbarStashController.java +++ b/quickstep/src/com/android/launcher3/taskbar/TaskbarStashController.java @@ -331,9 +331,10 @@ public class TaskbarStashController implements TaskbarControllers.LoggableTaskba applyState(/* duration = */ 0); // Hide the background while stashed so it doesn't show on fast swipes home - boolean shouldHideTaskbarBackground = enableScalingRevealHomeAnimation() - && DisplayController.isTransientTaskbar(mActivity) - && isStashed(); + boolean shouldHideTaskbarBackground = mActivity.isPhoneMode() || + (enableScalingRevealHomeAnimation() + && DisplayController.isTransientTaskbar(mActivity) + && isStashed()); mTaskbarBackgroundAlphaForStash.setValue(shouldHideTaskbarBackground ? 0 : 1);