Merge "Do not calculate rotated override bounds for organized tasks" into sc-v2-dev am: 017a2a88c1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15786401 Change-Id: I0d813b98aa7a6d48d227cdd5fffd38cd87b0a2d6
This commit is contained in:
@@ -1990,14 +1990,7 @@ class Task extends TaskFragment {
|
|||||||
taskDisplayArea.onRootTaskWindowingModeChanged(this);
|
taskDisplayArea.onRootTaskWindowingModeChanged(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mDisplayContent == null) {
|
if (!isOrganized() && !getRequestedOverrideBounds().isEmpty() && mDisplayContent != null) {
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Use override windowing mode to prevent extra bounds changes if inheriting the mode.
|
|
||||||
final int overrideWindowingMode = getRequestedOverrideWindowingMode();
|
|
||||||
if (overrideWindowingMode != WINDOWING_MODE_PINNED
|
|
||||||
&& !getRequestedOverrideBounds().isEmpty()) {
|
|
||||||
// If the parent (display) has rotated, rotate our bounds to best-fit where their
|
// If the parent (display) has rotated, rotate our bounds to best-fit where their
|
||||||
// bounds were on the pre-rotated display.
|
// bounds were on the pre-rotated display.
|
||||||
final int newRotation = getWindowConfiguration().getRotation();
|
final int newRotation = getWindowConfiguration().getRotation();
|
||||||
|
|||||||
Reference in New Issue
Block a user