Merge "Fix squished UI elements" into nyc-dev
This commit is contained in:
@@ -644,9 +644,12 @@ public class TaskStack implements DimLayer.DimLayerUser,
|
|||||||
Rect bounds = null;
|
Rect bounds = null;
|
||||||
final TaskStack dockedStack = mService.mStackIdToStack.get(DOCKED_STACK_ID);
|
final TaskStack dockedStack = mService.mStackIdToStack.get(DOCKED_STACK_ID);
|
||||||
if (mStackId == DOCKED_STACK_ID
|
if (mStackId == DOCKED_STACK_ID
|
||||||
|| (dockedStack != null && StackId.isResizeableByDockedStack(mStackId))) {
|
|| (dockedStack != null && StackId.isResizeableByDockedStack(mStackId)
|
||||||
|
&& !dockedStack.isFullscreen())) {
|
||||||
// The existence of a docked stack affects the size of other static stack created since
|
// The existence of a docked stack affects the size of other static stack created since
|
||||||
// the docked stack occupies a dedicated region on screen.
|
// the docked stack occupies a dedicated region on screen, but only if the dock stack is
|
||||||
|
// not fullscreen. If it's fullscreen, it means that we are in the transition of
|
||||||
|
// dismissing it, so we must not resize this stack.
|
||||||
bounds = new Rect();
|
bounds = new Rect();
|
||||||
displayContent.getLogicalDisplayRect(mTmpRect);
|
displayContent.getLogicalDisplayRect(mTmpRect);
|
||||||
mTmpRect2.setEmpty();
|
mTmpRect2.setEmpty();
|
||||||
|
|||||||
Reference in New Issue
Block a user