Fixing screen center not getting calculated properly
Bug: 32578597 Change-Id: Icdf5dc2d82eab3d90b380736d7256ca2d9b2df2e
This commit is contained in:
1 parent
cc42c5bd10
commit
cce078099c
1 file changed
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user