Fix mismatching surfaces position when entering split with two intents

Updates the sequence of indicating side stage position in startIntents
to make sure to use the same and the correct split position to update
both window bounds and surface bounds.

Bug: 290167860
Test: repro steps of the bug
Change-Id: I299a5d6a7195c26a9caad904796e39c0db3113bf
This commit is contained in:
Jerry Chang
2023-07-10 03:31:14 +00:00
parent 861cc9ab0e
commit 50aac992d8

View File

@@ -732,12 +732,12 @@ public class StageCoordinator implements SplitLayout.SplitLayoutHandler,
mMainStage.activate(wct, false /* reparent */);
}
setSideStagePosition(splitPosition, wct);
mSplitLayout.setDivideRatio(splitRatio);
updateWindowBounds(mSplitLayout, wct);
wct.reorder(mRootTaskInfo.token, true);
setRootForceTranslucent(false, wct);
setSideStagePosition(splitPosition, wct);
options1 = options1 != null ? options1 : new Bundle();
addActivityOptions(options1, mSideStage);
if (shortcutInfo1 != null) {