Merge "Bring fullscreen backdrop frame back" into tm-dev am: 957b746c51
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17469883 Change-Id: Iad85756b885c420c874eda34f265f3d0044bccae Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -8093,14 +8093,17 @@ public final class ViewRootImpl implements ViewParent,
|
||||
private void setFrame(Rect frame) {
|
||||
mWinFrame.set(frame);
|
||||
|
||||
final WindowConfiguration winConfig = getConfiguration().windowConfiguration;
|
||||
mPendingBackDropFrame.set(mPendingDragResizing && !winConfig.useWindowFrameForBackdrop()
|
||||
? winConfig.getMaxBounds()
|
||||
: frame);
|
||||
// Surface position is now inherited from parent, and BackdropFrameRenderer uses backdrop
|
||||
// frame to position content. Thus, we just keep the size of backdrop frame, and remove the
|
||||
// offset to avoid double offset from display origin.
|
||||
mPendingBackDropFrame.set(frame);
|
||||
mPendingBackDropFrame.offsetTo(0, 0);
|
||||
|
||||
mInsetsController.onFrameChanged(mOverrideInsetsFrame != null ?
|
||||
mOverrideInsetsFrame : frame);
|
||||
mOverrideInsetsFrame : frame);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user