Merge "Fix double task bar" into main

This commit is contained in:
Tracy Zhou authored and Android (Google) Code Review committed 2024-07-17 20:14:51 +00:00
commit ae637b60e0
1 file changed
+4 -3
@@ -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);