Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 010e0548 authored by Merissa Tan's avatar Merissa Tan
Browse files

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)
parent 2411df56
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {