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

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

feat: Hide folder from recent panel

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

    @Override
    public void onFolderOpenStart() {
        setVisibility(View.VISIBLE);
        mLastStateBeforeOpen = mLauncher.getStateManager().getState();
        if (!mLauncher.isInState(NORMAL)) {
            mLauncher.getStateManager().goToState(LauncherState.NORMAL, false);
+7 −0
Original line number Diff line number Diff line
@@ -123,6 +123,7 @@ import com.android.launcher3.apppairs.AppPairIcon;
import com.android.launcher3.appprediction.PredictionRowView;
import com.android.launcher3.config.FeatureFlags;
import com.android.launcher3.desktop.DesktopRecentsTransitionController;
import com.android.launcher3.folder.Folder;
import com.android.launcher3.hybridhotseat.HotseatPredictionController;
import com.android.launcher3.logging.InstanceId;
import com.android.launcher3.logging.StatsLogManager;
@@ -499,7 +500,13 @@ public class QuickstepLauncher extends Launcher implements RecentsViewContainer,
                    && !mIsOverlayVisible;
            SystemUiProxy.INSTANCE.get(this)
                    .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) {
            ((RecentsView) getOverviewPanel()).setSwipeDownShouldLaunchApp(false);
        }
+7 −0
Original line number Diff line number Diff line
@@ -344,6 +344,13 @@ public class Folder extends AbstractFloatingView implements ClipPathView, DragSo
        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) {
        Object tag = v.getTag();
        if (tag instanceof ItemInfo item) {