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

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

Merge "Update task surface visibility with reparent for pip" into main

parents 32477236 9abde299
Loading
Loading
Loading
Loading
+8 −0
Original line number Original line Diff line number Diff line
@@ -4805,6 +4805,14 @@ class Task extends TaskFragment {
                                topActivity.getSyncTransaction());
                                topActivity.getSyncTransaction());
                    }
                    }
                    lastParentBeforePip.moveToFront("movePinnedActivityToOriginalTask");
                    lastParentBeforePip.moveToFront("movePinnedActivityToOriginalTask");
                    // If the reparent is not included in transition, make sure the visibility of
                    // task is still updated by core. Otherwise if the task is collected (e.g.
                    // rotation change) after leaving this scope, the visibility operation will be
                    // put in sync transaction, then it is not synced with reparent.
                    if (com.android.window.flags.Flags.removePrepareSurfaceInPlacement()
                            && lastParentBeforePip.mSyncState == SYNC_STATE_NONE) {
                        lastParentBeforePip.prepareSurfaces();
                    }
                }
                }
                if (isPip2ExperimentEnabled) {
                if (isPip2ExperimentEnabled) {
                    super.setWindowingMode(windowingMode);
                    super.setWindowingMode(windowingMode);