Snap for 6220271 from 94c1178e47 to rvc-release

Change-Id: I09f6c142a932968afd1ea1af3bacad6a69542e3e
This commit is contained in:
android-build-team Robot
2020-02-20 03:22:02 +00:00
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);
}
});
}
@@ -296,4 +296,15 @@ public class SystemUiProxy implements ISystemUiProxy {
}
}
}
@Override
public void setSplitScreenMinimized(boolean minimized) {
if (mSystemUiProxy != null) {
try {
mSystemUiProxy.setSplitScreenMinimized(minimized);
} catch (RemoteException e) {
Log.w(TAG, "Failed call stopScreenPinning", e);
}
}
}
}