Merge "Don't check parent's persistTaskBounds unless child is UNDEFINED." into rvc-dev am: 7291aad962 am: 2d5ef8bed6
Change-Id: I3f796cce02845511381321f1166d623aa537c206
This commit is contained in:
@@ -1930,9 +1930,11 @@ class Task extends WindowContainer<WindowContainer> {
|
|||||||
// Check if the new configuration supports persistent bounds (eg. is Freeform) and if so
|
// Check if the new configuration supports persistent bounds (eg. is Freeform) and if so
|
||||||
// restore the last recorded non-fullscreen bounds.
|
// restore the last recorded non-fullscreen bounds.
|
||||||
final boolean prevPersistTaskBounds = getWindowConfiguration().persistTaskBounds();
|
final boolean prevPersistTaskBounds = getWindowConfiguration().persistTaskBounds();
|
||||||
final boolean nextPersistTaskBounds =
|
boolean nextPersistTaskBounds =
|
||||||
getRequestedOverrideConfiguration().windowConfiguration.persistTaskBounds()
|
getRequestedOverrideConfiguration().windowConfiguration.persistTaskBounds();
|
||||||
|| newParentConfig.windowConfiguration.persistTaskBounds();
|
if (getRequestedOverrideWindowingMode() == WINDOWING_MODE_UNDEFINED) {
|
||||||
|
nextPersistTaskBounds = newParentConfig.windowConfiguration.persistTaskBounds();
|
||||||
|
}
|
||||||
if (!prevPersistTaskBounds && nextPersistTaskBounds
|
if (!prevPersistTaskBounds && nextPersistTaskBounds
|
||||||
&& mLastNonFullscreenBounds != null && !mLastNonFullscreenBounds.isEmpty()) {
|
&& mLastNonFullscreenBounds != null && !mLastNonFullscreenBounds.isEmpty()) {
|
||||||
// Bypass onRequestedOverrideConfigurationChanged here to avoid infinite loop.
|
// Bypass onRequestedOverrideConfigurationChanged here to avoid infinite loop.
|
||||||
|
|||||||
Reference in New Issue
Block a user