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

Commit 82196f44 authored by Jiaming Liu's avatar Jiaming Liu
Browse files

Make SplitScreenTransitions only reparent Task surfaces

SplitScreenTransitions should not reparent Activity surfaces to the
transition parent, because the transition parent is not necessarily
the real parent.

Fix: 392033362
Test: SplitTransitionTests
Flag: EXEMPT bugfix
Change-Id: I5df3c949a7fb814c6354556e017957833ea0f001
parent c009172c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -150,7 +150,7 @@ class SplitScreenTransitions {

            final int rootIdx = TransitionUtil.rootIndexFor(change, info);
            if (mode == TRANSIT_CHANGE) {
                if (change.getParent() != null) {
                if (change.getParent() != null && change.getTaskInfo() != null) {
                    // This is probably reparented, so we want the parent to be immediately visible
                    final TransitionInfo.Change parentChange = info.getChange(change.getParent());
                    t.show(parentChange.getLeash());