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

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

feat: Hide folder from recent panel

parent 357f9536
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -169,6 +169,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
@@ -50,6 +50,7 @@ import com.android.launcher3.Workspace;
import com.android.launcher3.accessibility.LauncherAccessibilityDelegate;
import com.android.launcher3.anim.AnimatorPlaybackController;
import com.android.launcher3.appprediction.PredictionRowView;
import com.android.launcher3.folder.Folder;
import com.android.launcher3.hybridhotseat.HotseatPredictionController;
import com.android.launcher3.logging.InstanceId;
import com.android.launcher3.logging.StatsLogManager;
@@ -226,6 +227,12 @@ public class QuickstepLauncher extends BaseQuickstepLauncher {
            UiThreadHelper.runAsyncCommand(this, SET_SHELF_HEIGHT, visible ? 1 : 0,
                    profile.hotseatBarSizePx);
        }

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

        if (state == NORMAL && !inTransition) {
            ((RecentsView) getOverviewPanel()).setSwipeDownShouldLaunchApp(false);
        }