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

Commit ff646727 authored by Sunny Goyal's avatar Sunny Goyal Committed by Android (Google) Code Review
Browse files

Merge "Fixing screen center not getting calculated properly" into ub-launcher3-master

parents c3e4e228 cce07809
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1678,7 +1678,7 @@ public class Workspace extends PagedView
        if (mWorkspaceFadeInAdjacentScreens &&
                !workspaceInModalState() &&
                !mIsSwitchingState) {
            int screenCenter = getScrollX() + getViewportOffsetX() + getViewportWidth() / 2;
            int screenCenter = getScrollX() + getViewportWidth() / 2;
            for (int i = numCustomPages(); i < getChildCount(); i++) {
                CellLayout child = (CellLayout) getChildAt(i);
                if (child != null) {
@@ -1815,7 +1815,7 @@ public class Workspace extends PagedView
                }
            });
        }

        updatePageAlphaValues();
    }

    @Override