Merge "Update mCompatFrame in applyGravityAndUpdateFrame." into nyc-dev

am: 1493fdd325

* commit '1493fdd325890b8c4ffdad4857108a18601f9779':
  Update mCompatFrame in applyGravityAndUpdateFrame.
This commit is contained in:
Robert Carr
2016-03-03 21:46:13 +00:00
committed by android-build-merger

View File

@@ -2546,6 +2546,14 @@ final class WindowState implements WindowManagerPolicy.WindowState {
if (fitToDisplay) {
Gravity.applyDisplay(mAttrs.gravity, mDisplayFrame, mFrame);
}
// We need to make sure we update the CompatFrame as it is used for
// cropping decisions, etc, on systems where we lack a decor layer.
mCompatFrame.set(mFrame);
if (mEnforceSizeCompat) {
// See comparable block in computeFrameLw.
mCompatFrame.scale(mInvGlobalScale);
}
}
boolean isChildWindow() {