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

Commit 76e93799 authored by Tarandeep Singh's avatar Tarandeep Singh
Browse files

Use ViewRoot's attrs in Window

App window can override attributes available in Window#getAttributes(),
instead use ViewRootImpl attributes.
Bug: 111084606
Test: Manually verify with apps that use adjust_resize

Change-Id: I6091a08879d897bd708972347ac80be859d29f35
parent 4c0ab8e3
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -2125,7 +2125,8 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback {
                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;
            Insets insetsToApply;
            if (ViewRootImpl.sNewInsetsMode == 0) {