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

Commit 5369328b authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Do not set different gravity for non-moveable nav bar" into udc-dev am: 64c27756

parents eb50417b 64c27756
Loading
Loading
Loading
Loading
+6 −3
Original line number Original line Diff line number Diff line
@@ -359,11 +359,14 @@ class WindowTestsBase extends SystemServiceTestsBase {
                    new InsetsFrameProvider(owner, 0, WindowInsets.Type.tappableElement()),
                    new InsetsFrameProvider(owner, 0, WindowInsets.Type.tappableElement()),
                    new InsetsFrameProvider(owner, 0, WindowInsets.Type.mandatorySystemGestures())
                    new InsetsFrameProvider(owner, 0, WindowInsets.Type.mandatorySystemGestures())
            };
            };
            // If the navigation bar cannot move then it is always at the bottom.
            if (mDisplayContent.getDisplayPolicy().navigationBarCanMove()) {
                for (int rot = Surface.ROTATION_0; rot <= Surface.ROTATION_270; rot++) {
                for (int rot = Surface.ROTATION_0; rot <= Surface.ROTATION_270; rot++) {
                    mNavBarWindow.mAttrs.paramsForRotation[rot] =
                    mNavBarWindow.mAttrs.paramsForRotation[rot] =
                            getNavBarLayoutParamsForRotation(rot, owner);
                            getNavBarLayoutParamsForRotation(rot, owner);
                }
                }
            }
            }
        }
        if (addAll || ArrayUtils.contains(requestedWindows, W_DOCK_DIVIDER)) {
        if (addAll || ArrayUtils.contains(requestedWindows, W_DOCK_DIVIDER)) {
            mDockedDividerWindow = createCommonWindow(null, TYPE_DOCK_DIVIDER,
            mDockedDividerWindow = createCommonWindow(null, TYPE_DOCK_DIVIDER,
                    "mDockedDividerWindow");
                    "mDockedDividerWindow");