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

Commit 56b17935 authored by Brian Isganitis's avatar Brian Isganitis
Browse files

Immediately close taskbar all apps on swipe up gesture.

Test: Manual
Fix: 219981339
Change-Id: I306a8aa1c55464718a1318f87007d68c383e461e
parent 80fed353
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -34,7 +34,6 @@ import com.android.launcher3.LauncherState;
import com.android.launcher3.QuickstepTransitionManager;
import com.android.launcher3.R;
import com.android.launcher3.Utilities;
import com.android.launcher3.config.FeatureFlags;
import com.android.launcher3.logging.InstanceId;
import com.android.launcher3.logging.InstanceIdSequence;
import com.android.launcher3.model.data.ItemInfo;
+7 −0
Original line number Diff line number Diff line
@@ -68,4 +68,11 @@ public class TaskbarUIController {
    public void setSystemGestureInProgress(boolean inProgress) {
        mControllers.taskbarStashController.setSystemGestureInProgress(inProgress);
    }

    /**
     * Manually closes the all apps window.
     */
    public void hideAllApps() {
        mControllers.taskbarAllAppsController.hide();
    }
}
+5 −0
Original line number Diff line number Diff line
@@ -131,6 +131,11 @@ public final class TaskbarAllAppsController implements OnDeviceProfileChangeList
                .setPredictedApps(mPredictedApps);
    }

    /** Closes the {@link TaskbarAllAppsContainerView}. */
    public void hide() {
        mProxyView.close(true);
    }

    /**
     * Removes the all apps window from the hierarchy, if all floating views are closed and there is
     * no system drag operation in progress.
+7 −1
Original line number Diff line number Diff line
@@ -68,6 +68,7 @@ import com.android.systemui.shared.recents.model.ThumbnailData;
import com.android.systemui.shared.system.RemoteAnimationTargetCompat;

import java.util.HashMap;
import java.util.Optional;
import java.util.function.Consumer;
import java.util.function.Predicate;

@@ -192,7 +193,12 @@ public abstract class BaseActivityInterface<STATE_TYPE extends BaseState<STATE_T
        activity.getStateManager().moveToRestState();
    }

    public void closeOverlay() { }
    /**
     * Closes any overlays.
     */
    public void closeOverlay() {
        Optional.ofNullable(getTaskbarController()).ifPresent(TaskbarUIController::hideAllApps);
    }

    public void switchRunningTaskViewToScreenshot(HashMap<Integer, ThumbnailData> thumbnailDatas,
            Runnable runnable) {
+1 −0
Original line number Diff line number Diff line
@@ -278,6 +278,7 @@ public final class LauncherActivityInterface extends

    @Override
    public void closeOverlay() {
        super.closeOverlay();
        Launcher launcher = getCreatedActivity();
        if (launcher == null) {
            return;