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

Commit 3057b1c2 authored by Winson Chung's avatar Winson Chung
Browse files

Fixing issue with folder opening in the wrong bounds (Bug. 11025207)

Change-Id: I8baa5d5e8936e89c542d8ac0d98bc0ad939e01eb
parent c5da25f7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -888,7 +888,7 @@ public class Folder extends LinearLayout implements DragSource, View.OnClickList
        int centerY = (int) (mTempRect.top + mTempRect.height() * scale / 2);
        int centeredLeft = centerX - width / 2;
        int centeredTop = centerY - height / 2;
        int currentPage = mLauncher.getWorkspace().getCurrentPage();
        int currentPage = mLauncher.getWorkspace().getNextPage();
        // In case the workspace is scrolling, we need to use the final scroll to compute
        // the folders bounds.
        mLauncher.getWorkspace().setFinalScrollForPageChange(currentPage);