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

Commit 9b30bb6d authored by Perry Wu's avatar Perry Wu
Browse files

[PIP2] Fix NPE crash when entering Maps

Adds null checks for entering Maps pip.

Flag: com.android.wm.shell.enable_pip2
Bug: 378124752
Test: manually enter maps pip
Change-Id: Ie746c80d14257ed50f1de16acb1a1796cc513bf8
parent 4b817c8f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -420,7 +420,8 @@ public class PipTransition extends PipTransitionController implements
        }

        // Update the src-rect-hint in params in place, to set up initial animator transform.
        params.getSourceRectHint().set(adjustedSourceRectHint);
        params.copyOnlySet(new PictureInPictureParams.Builder()
                .setSourceRectHint(adjustedSourceRectHint).build());

        // Config-at-end transitions need to have their activities transformed before starting
        // the animation; this makes the buffer seem like it's been updated to final size.