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

Commit 791b646d authored by Mohammed Althaf T's avatar Mohammed Althaf T 😊
Browse files

feat: Don't close folder on wiggle

parent 56608df0
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -488,7 +488,7 @@ public class QuickstepLauncher extends Launcher {

            // Close any opened folder
            Folder folder = Folder.getOpen(this);
            if (folder != null && folder.isOpen()) {
            if (folder != null && folder.isOpen() && !folder.isFolderWobbling()) {
                folder.close(false);
            }
        }
+7 −0
Original line number Diff line number Diff line
@@ -315,6 +315,13 @@ public class Folder extends AbstractFloatingView implements ClipPathView, DragSo
        return startDrag(v, new DragOptions());
    }

    public boolean isFolderWobbling() {
        Launcher launcher = mLauncherDelegate.getLauncher();
        if (launcher != null) {
            return launcher.getWorkspace().isWobbling();
        } else return false;
    }

    public boolean startDrag(View v, DragOptions options) {
        Object tag = v.getTag();
        if (tag instanceof WorkspaceItemInfo) {