Merge "Return bounds when it's in fullscreen display."
This commit is contained in:
committed by
Android (Google) Code Review
commit
7991ae1a5f
@@ -278,7 +278,7 @@ class TaskLaunchParamsModifier implements LaunchParamsModifier {
|
||||
// an existing task.
|
||||
adjustBoundsToAvoidConflictInDisplay(display, outParams.mBounds);
|
||||
}
|
||||
} else {
|
||||
} else if (display.inFreeformWindowingMode()) {
|
||||
if (source != null && source.inFreeformWindowingMode()
|
||||
&& resolvedMode == WINDOWING_MODE_FREEFORM
|
||||
&& outParams.mBounds.isEmpty()
|
||||
|
||||
@@ -1196,7 +1196,7 @@ public class TaskLaunchParamsModifierTests extends ActivityTestsBase {
|
||||
mActivity, /* source */ null, /* options */ null, mCurrent, mResult));
|
||||
|
||||
// Returned bounds with in fullscreen mode will be set to last non-fullscreen bounds.
|
||||
assertEquals(new Rect(0, 0, 200, 100), mCurrent.mBounds);
|
||||
assertEquals(new Rect(0, 0, 200, 100), mResult.mBounds);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user