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

Commit 646e8f0b authored by Gaurav Bhola's avatar Gaurav Bhola
Browse files

Prevent assign layer on DisplayArea while in a transition

FLAG: EXEMPT (Bug fix)
Fix: 379122353
Test: manually by doing setLayer on DA in start and end transaction
Change-Id: I7c0eb2e171b8dff6315370509b41a5d938d14ad0
parent 74e02acd
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -640,8 +640,8 @@ class TransitionController {
        }
        // Always allow WindowState to assign layers since it won't affect transition.
        return wc.asWindowState() != null || (!isPlaying()
                // Don't assign task while collecting.
                && !(wc.asTask() != null && isCollecting()));
                // Don't assign task or display area layers while collecting.
                && !((wc.asTask() != null || wc.asDisplayArea() != null) && isCollecting()));
    }

    @WindowConfiguration.WindowingMode