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:
Hongwei Wang
2019-12-26 14:54:55 -08:00
parent b1575f6a52
commit 47c14f41df

View File

@@ -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()) {