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

Verified Commit f9935601 authored by Yash Garg's avatar Yash Garg 💬
Browse files

Folder: Dont mark folder as unmovable when its grid folder

parent 1091d9ed
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -34,6 +34,8 @@ import com.android.launcher3.folder.FolderIcon;
import com.android.launcher3.views.ActivityContext;
import com.android.launcher3.widget.NavigableAppWidgetHostView;

import foundation.e.bliss.folder.GridFolder;

public class ShortcutAndWidgetContainer extends ViewGroup implements FolderIcon.FolderIconParent {
    static final String TAG = "ShortcutAndWidgetContainer";

@@ -249,8 +251,11 @@ public class ShortcutAndWidgetContainer extends ViewGroup implements FolderIcon.
    @Override
    public void drawFolderLeaveBehindForIcon(FolderIcon child) {
        CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams();
        if (!(child.getFolder() instanceof GridFolder)) {
            // While the folder is open, the position of the icon cannot change.
            // With Grid folder and auto reorder it is necessary we change position
            lp.canReorder = false;
        }
        if (mContainerType == CellLayout.HOTSEAT) {
            CellLayout cl = (CellLayout) getParent();
            cl.setFolderLeaveBehindCell(lp.cellX, lp.cellY);