Stash transient Taskbar on overlay task stack changes.

Test: Manual
Fix: 299515360
Flag: No
Change-Id: I3c182fa51bcb7af908aebf168f017923aff8c789
This commit is contained in:
Brian Isganitis committed 2023-09-11 20:32:44 +00:00
1 parent cbaf0a7f70
commit 3cfc2a338d
1 file changed
+9 -3
@@ -62,13 +62,13 @@ public final class TaskbarOverlayController {
@Override
public void onTaskCreated(int taskId, ComponentName componentName) {
// Created task will be below existing overlay, so move out of the way.
hideWindow();
hideWindowOnTaskStackChange();
}
@Override
public void onTaskMovedToFront(int taskId) {
// New front task will be below existing overlay, so move out of the way.
hideWindow();
hideWindowOnTaskStackChange();
}
@Override
@@ -79,9 +79,15 @@ public final class TaskbarOverlayController {
// callback.
if (mControllers.getSharedState() != null
&& mControllers.getSharedState().allAppsVisible) {
hideWindow();
hideWindowOnTaskStackChange();
}
}
private void hideWindowOnTaskStackChange() {
// A task was launched while overlay window was open, so stash Taskbar.
mControllers.taskbarStashController.updateAndAnimateTransientTaskbar(true);
hideWindow();
}
};
private DeviceProfile mLauncherDeviceProfile;