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

Commit 2e55e92f authored by Mohammed Althaf T's avatar Mohammed Althaf T 😊 Committed by Saalim Quadri
Browse files

feat: Don't close folder on wiggle



[Saalim: Adapted to a15]

Signed-off-by: default avatarSaalim Quadri <danascape@gmail.com>
parent a8e5309a
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -506,7 +506,7 @@ public class QuickstepLauncher extends Launcher implements RecentsViewContainer,


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


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

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