Merge "Update mCompatFrame in applyGravityAndUpdateFrame." into nyc-dev
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user