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

Commit d6050a9e authored by Riddle Hsu's avatar Riddle Hsu Committed by Android (Google) Code Review
Browse files

Merge "Update layer of rotation leash when restoring pip to original task" into main

parents 11a123ac 32a9155a
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -4707,8 +4707,13 @@ class Task extends TaskFragment {
                        // If the moveToFront is a part of finishing transition, then make sure
                        // the z-order of tasks are up-to-date.
                        if (topActivity.mTransitionController.inFinishingTransition(topActivity)) {
                            Transition.assignLayers(taskDisplayArea,
                                    taskDisplayArea.getPendingTransaction());
                            final SurfaceControl.Transaction tx =
                                    taskDisplayArea.getPendingTransaction();
                            Transition.assignLayers(taskDisplayArea, tx);
                            final SurfaceControl leash = topActivity.getFixedRotationLeash();
                            if (leash != null) {
                                tx.setLayer(leash, topActivity.getLastLayer());
                            }
                        }
                    }
                }