Allow resize for secondary split screen
We use to resize the stack whenever there is new override bounds and accidentally make that for primary split screen only in ag/9720001 Bug: 146879048 Test: atest PinnedStackTests Test: atest ActivityLifecyclePipTests.testSplitScreenBelowPip Test: atest ActivityLifecycleSplitScreenTests.testResumedWhenRecreatedFromInNonFocusedStack Test: atest ActivityLifecycleSplitScreenTests.testOccludingMovedBetweenStacks Change-Id: If9cfe76c79e054cc10288ae3b955478e80a2ce92
This commit is contained in:
@@ -879,6 +879,10 @@ class ActivityStack extends WindowContainer<WindowContainer> implements BoundsAn
|
||||
null /* tempTaskBounds */, null /* tempTaskInsetBounds */,
|
||||
null /* tempOtherTaskBounds */, null /* tempOtherTaskInsetBounds */,
|
||||
PRESERVE_WINDOWS, true /* deferResume */);
|
||||
} else if (overrideWindowingMode != WINDOWING_MODE_PINNED) {
|
||||
// For pinned stack, resize is now part of the {@link WindowContainerTransaction}
|
||||
resize(new Rect(newBounds), null /* tempTaskBounds */,
|
||||
null /* tempTaskInsetBounds */, PRESERVE_WINDOWS, true /* deferResume */);
|
||||
}
|
||||
}
|
||||
if (prevIsAlwaysOnTop != isAlwaysOnTop()) {
|
||||
|
||||
Reference in New Issue
Block a user