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

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

Revert "feat: Hide folder from recent panel"

This reverts commit ab8b513d.
parent 2478f414
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -179,7 +179,6 @@ 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);
+0 −7
Original line number Original line Diff line number Diff line
@@ -124,7 +124,6 @@ import com.android.launcher3.apppairs.AppPairIcon;
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.desktop.DesktopRecentsTransitionController;
import com.android.launcher3.desktop.DesktopRecentsTransitionController;
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;
@@ -503,13 +502,7 @@ public class QuickstepLauncher extends Launcher implements RecentsViewContainer,
                    && !mIsOverlayVisible;
                    && !mIsOverlayVisible;
            SystemUiProxy.INSTANCE.get(this)
            SystemUiProxy.INSTANCE.get(this)
                    .setLauncherKeepClearAreaHeight(visible, profile.hotseatBarSizePx);
                    .setLauncherKeepClearAreaHeight(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);
        }
        }
+0 −7
Original line number Original line Diff line number Diff line
@@ -341,13 +341,6 @@ 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) {