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

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

feat: Hide folder from recent panel

parent 1ddc2e44
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -169,6 +169,7 @@ public class GridFolder extends Folder implements OnAlarmListener {


    @Override
    @Override
    public void onFolderOpenStart() {
    public void onFolderOpenStart() {
        setVisibility(View.VISIBLE);
        mLastStateBeforeOpen = mLauncher.getStateManager().getState();
        mLastStateBeforeOpen = mLauncher.getStateManager().getState();
        if (!mLauncher.isInState(NORMAL)) {
        if (!mLauncher.isInState(NORMAL)) {
            mLauncher.getStateManager().goToState(LauncherState.NORMAL, false);
            mLauncher.getStateManager().goToState(LauncherState.NORMAL, false);
+7 −0
Original line number Original line Diff line number Diff line
@@ -110,6 +110,7 @@ import com.android.launcher3.anim.PendingAnimation;
import com.android.launcher3.appprediction.PredictionRowView;
import com.android.launcher3.appprediction.PredictionRowView;
import com.android.launcher3.config.FeatureFlags;
import com.android.launcher3.config.FeatureFlags;
import com.android.launcher3.dragndrop.DragOptions;
import com.android.launcher3.dragndrop.DragOptions;
import com.android.launcher3.folder.Folder;
import com.android.launcher3.hybridhotseat.HotseatPredictionController;
import com.android.launcher3.hybridhotseat.HotseatPredictionController;
import com.android.launcher3.logging.InstanceId;
import com.android.launcher3.logging.InstanceId;
import com.android.launcher3.logging.StatsLogManager;
import com.android.launcher3.logging.StatsLogManager;
@@ -440,7 +441,13 @@ public class QuickstepLauncher extends Launcher {
            } else {
            } else {
                SystemUiProxy.INSTANCE.get(this).setShelfHeight(visible, profile.hotseatBarSizePx);
                SystemUiProxy.INSTANCE.get(this).setShelfHeight(visible, profile.hotseatBarSizePx);
            }
            }

            Folder folder = Folder.getOpen(this);
            if (folder != null && !folder.isFolderWobbling()) {
                folder.setVisibility((state == NORMAL) ? View.VISIBLE : View.INVISIBLE);
            }
        }
        }

        if (state == NORMAL && !inTransition) {
        if (state == NORMAL && !inTransition) {
            ((RecentsView) getOverviewPanel()).setSwipeDownShouldLaunchApp(false);
            ((RecentsView) getOverviewPanel()).setSwipeDownShouldLaunchApp(false);
        }
        }
+7 −0
Original line number Original line Diff line number Diff line
@@ -312,6 +312,13 @@ public class Folder extends AbstractFloatingView implements ClipPathView, DragSo
        return startDrag(v, new DragOptions());
        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) {
    public boolean startDrag(View v, DragOptions options) {
        Object tag = v.getTag();
        Object tag = v.getTag();
        if (tag instanceof WorkspaceItemInfo) {
        if (tag instanceof WorkspaceItemInfo) {