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

Commit a3a3f0dc authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Do not collect WindowState when moving to a different display

WindowState won't be the transition target, so exclude them to
reduce noise.

Bug: 373410849
Flag: EXEMPT bugfix
Test: atest TransitionTests#testCollectReparentChange
Change-Id: I3b420607bce46f61f1a9328f192b16e16e99632e
parent 428aef40
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1117,7 +1117,9 @@ class WindowContainer<E extends WindowContainer> extends ConfigurationContainer<
     */
    void onDisplayChanged(DisplayContent dc) {
        if (mDisplayContent != null && mDisplayContent != dc) {
            if (asWindowState() == null) {
                mTransitionController.collect(this);
            }
            // Cancel any change transition queued-up for this container on the old display when
            // this container is moved from the old display.
            mDisplayContent.mClosingChangingContainers.remove(this);