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

Commit c404ec62 authored by Evan Rosky's avatar Evan Rosky
Browse files

Only fire extra pause for pip-ing apps

Otherwise we end up doing an extra pause+resume for
everything.

Bug: 220196913
Test: atest ActivityLifecycleTests
Change-Id: I4d13eaba5117f60901f266ce1b29e648e532d7b7
parent 63a29ead
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -491,7 +491,8 @@ class Transition extends Binder implements BLASTSyncEngine.TransactionReadyListe
                            // Avoid commit visibility to false here, or else we will get a sudden
                            // "flash" / surface going invisible for a split second.
                            commitVisibility = false;
                        } else {
                        } else if (ar.getDeferHidingClient()) {
                            // Legacy PIP-enter requires pause event with user-leaving.
                            mController.mAtm.mTaskSupervisor.mUserLeaving = true;
                            ar.getTaskFragment().startPausing(false /* uiSleeping */,
                                    null /* resuming */, "finishTransition");