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

Commit bba16179 authored by Taran Singh's avatar Taran Singh Committed by Android (Google) Code Review
Browse files

Merge "Use ViewRoot's attrs in Window"

parents 253528c2 76e93799
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
@@ -2125,7 +2125,8 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback {
                return new Pair<>(Insets.NONE, insets);
                return new Pair<>(Insets.NONE, insets);
            }
            }


            boolean includeIme = (getAttributes().softInputMode & SOFT_INPUT_MASK_ADJUST)
            boolean includeIme =
                    (getViewRootImpl().mWindowAttributes.softInputMode & SOFT_INPUT_MASK_ADJUST)
                            == SOFT_INPUT_ADJUST_RESIZE;
                            == SOFT_INPUT_ADJUST_RESIZE;
            Insets insetsToApply;
            Insets insetsToApply;
            if (ViewRootImpl.sNewInsetsMode == 0) {
            if (ViewRootImpl.sNewInsetsMode == 0) {