Merge "Remove the usage of givenContentInsets for non-IME windows"
This commit is contained in:
committed by
Android (Google) Code Review
commit
c76b8474a1
@@ -31,6 +31,10 @@ import java.util.Objects;
|
||||
*
|
||||
* The insets frame will by default as the window frame size. If the providers are set, the
|
||||
* calculation result based on the source size will be used as the insets frame.
|
||||
*
|
||||
* The InsetsFrameProvider should be self-contained. Nothing describing the window itself, such as
|
||||
* contentInsets, visibleInsets, etc. won't affect the insets providing to other windows when this
|
||||
* is set.
|
||||
* @hide
|
||||
*/
|
||||
public class InsetsFrameProvider implements Parcelable {
|
||||
|
||||
@@ -1202,7 +1202,6 @@ public class DisplayPolicy {
|
||||
return null;
|
||||
}
|
||||
return (displayFrames, windowContainer, inOutFrame) -> {
|
||||
inOutFrame.inset(win.mGivenContentInsets);
|
||||
final LayoutParams lp = win.mAttrs.forRotation(displayFrames.mRotation);
|
||||
final InsetsFrameProvider ifp = lp.providedInsets[index];
|
||||
InsetsFrameProvider.calculateInsetsFrame(displayFrames.mUnrestricted,
|
||||
|
||||
Reference in New Issue
Block a user