When introducing the fitToDisplay variable, it should have been
fitToDisplay = task != null -> (implies) !task.isFloating();
but was written as task != null && !task.isFloating.
Bug:
28182018
Change-Id: If0be86f1ed8bb88914ce167e9f5273b6b3dc2571
final int ph = containingFrame.height();
final Task task = getTask();
final boolean nonFullscreenTask = isInMultiWindowMode();
- final boolean fitToDisplay = task != null && !nonFullscreenTask && !layoutInParentFrame();
+ final boolean fitToDisplay = (task == null || !nonFullscreenTask) && !layoutInParentFrame();
float x, y;
int w,h;