Clean up launcher state when ENABLE_HOME_TRANSITION_LISTENER is enabled.

This prevents taskbar showing up on home screen. We already did this clean
up when the flag is off, so now we're matching parity. Investigation for
root cause is still on-going but for now this will fix the issue for
TEAMFOODers.

Bug: 279514548
Test: See bug for repo steps
Flag: N/A
Change-Id: I9a0c3b56f48b2c7c43e303978699124146c8b61b
This commit is contained in:
Jon Miranda
2024-02-09 08:43:31 -08:00
parent ac7c1e3736
commit 3c9de6841c
@@ -222,8 +222,7 @@ public class TaskbarLauncherStateController {
public void onStateTransitionCompletedAfterSwipeToHome(LauncherState finalState) {
// TODO(b/279514548) Cleans up bad state that can occur when user interacts with
// taskbar on top of transparent activity.
if (!FeatureFlags.enableHomeTransitionListener()
&& (finalState == LauncherState.NORMAL)
if ((finalState == LauncherState.NORMAL)
&& mLauncher.hasBeenResumed()) {
updateStateForFlag(FLAG_VISIBLE, true);
applyState();