Restrict TaskDisplayArea background color setting to tasks with

fullscreen windowing mode.

Recall: http://recall/clips/3a64e84e-dc27-4a87-a539-2171ad8ba311

Bug: 204253858
Test: Open and close an activity in freeform windowing mode. Ensure that
a blank gray screen does not appear.

Change-Id: I3927d9c6b3f9a72253ef87abcd59325c495f8206
(cherry picked from commit 0ce2d88658d887a4f548e2e05319b3165858bc6c)
This commit is contained in:
Merissa Tan
2022-04-07 13:12:43 -07:00
parent 2411df5697
commit 010e054846

View File

@@ -2995,7 +2995,7 @@ class WindowContainer<E extends WindowContainer> extends ConfigurationContainer<
AnimationRunnerBuilder animationRunnerBuilder = new AnimationRunnerBuilder();
if (isTaskTransitOld(transit)) {
if (isTaskTransitOld(transit) && getWindowingMode() == WINDOWING_MODE_FULLSCREEN) {
animationRunnerBuilder.setTaskBackgroundColor(getTaskAnimationBackgroundColor());
// TODO: Remove when we migrate to shell (b/202383002)
if (mWmService.mTaskTransitionSpec != null) {