Connect split-screen things to systemui divider

Since divider stuff lives in sysui instead of framework

Bug: 133381284
Test: Manual, open 2 apps in split and drag-up to show
      recents.
Change-Id: If6740b7ee4829bf4cac6e829e81943f16a41f977
(cherry picked from commit 3ef159becd)
This commit is contained in:
Evan Rosky
2019-11-20 17:00:06 -08:00
committed by Tracy Zhou
parent d71c3b185d
commit e7e91fd60e
2 changed files with 14 additions and 6 deletions
@@ -81,12 +81,9 @@ public class RecentsAnimationController {
mWindowThresholdCrossed = windowThresholdCrossed;
UI_HELPER_EXECUTOR.execute(() -> {
mController.setAnimationTargetsBehindSystemBars(!windowThresholdCrossed);
if (mShouldMinimizeSplitScreen && windowThresholdCrossed) {
// NOTE: As a workaround for conflicting animations (Launcher animating the task
// leash, and SystemUI resizing the docked stack, which resizes the task), we
// currently only set the minimized mode, and not the inverse.
// TODO: Synchronize the minimize animation with the launcher animation
mController.setSplitScreenMinimized(windowThresholdCrossed);
SystemUiProxy p = SystemUiProxy.INSTANCE.getNoCreate();
if (p != null && mShouldMinimizeSplitScreen) {
p.setSplitScreenMinimized(windowThresholdCrossed);
}
});
}