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

Commit b47350e3 authored by bin ren's avatar bin ren
Browse files

Fix pip enter crash in landscape split-screen pair



On the mobile device, select two apps to enter split screen mode and switch to landscape, then click the button to enter PIP. Crashes may occur when starting a new Activity as a pip activity, e.g. Weibo.

Bug: 382303517
Test: Enable auto rotation.
      Enter split screen with Task A and Task B.
      Rotate to landscape.
      A uses application context to launch a translucent Task C.
      C sets orientation to portrait and calls enterPip when creating.

Change-Id: I78dcc2c3a116784556b1487aff7f6c54c8c52279
Signed-off-by: default avatarrenbin3 <renbin3@xiaomi.com>
parent f848df33
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2871,7 +2871,8 @@ public class StageCoordinator implements SplitLayout.SplitLayoutHandler,
                    mSplitLayout.update(startTransaction, false /* resetImePosition */);
                }

                if (mMixedHandler.isEnteringPip(change, transitType)) {
                if (mMixedHandler.isEnteringPip(change, transitType)
                        && getSplitItemStage(change.getLastParent()) != STAGE_TYPE_UNDEFINED) {
                    pipChange = change;
                }