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

Commit cce07809 authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Fixing screen center not getting calculated properly

Bug: 32578597
Change-Id: Icdf5dc2d82eab3d90b380736d7256ca2d9b2df2e
parent cc42c5bd
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