Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c76b8474 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Remove the usage of givenContentInsets for non-IME windows"

parents db3a82a1 77a0bd88
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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 {
+0 −1
Original line number Diff line number Diff line
@@ -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,