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

Commit 23972338 authored by Tony Wickham's avatar Tony Wickham
Browse files

Rename LandscapeStatesTouchController -> OverviewToAllAppsTouchController

I find this less confusing, as the controller is also used in portrait
mode when swipe down is disabled.

Change-Id: Ifd6b4453a1b59e1f8305c1461d89ed99de2fe7d6
parent e833bf3e
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -28,11 +28,13 @@ import com.android.quickstep.TouchInteractionService;
import com.android.quickstep.views.RecentsView;

/**
 * Touch controller from going from OVERVIEW to ALL_APPS
 * Touch controller from going from OVERVIEW to ALL_APPS.
 *
 * This is used in landscape mode. It is also used in portrait mode for the fallback recents.
 */
public class LandscapeStatesTouchController extends PortraitStatesTouchController {
public class OverviewToAllAppsTouchController extends PortraitStatesTouchController {

    public LandscapeStatesTouchController(Launcher l) {
    public OverviewToAllAppsTouchController(Launcher l) {
        super(l);
    }

@@ -69,4 +71,5 @@ public class LandscapeStatesTouchController extends PortraitStatesTouchControlle
        }
        return fromState;
    }

}
+2 −3
Original line number Diff line number Diff line
@@ -21,7 +21,6 @@ import static com.android.launcher3.LauncherState.OVERVIEW;
import static com.android.launcher3.LauncherState.ALL_APPS;

import android.content.Context;
import android.content.SharedPreferences;

import com.android.launcher3.AbstractFloatingView;
import com.android.launcher3.DeviceProfile;
@@ -42,13 +41,13 @@ public class UiFactory {
        if (!swipeUpEnabled) {
            return new TouchController[] {
                    launcher.getDragController(),
                    new LandscapeStatesTouchController(launcher),
                    new OverviewToAllAppsTouchController(launcher),
                    new LauncherTaskViewcontroller(launcher)};
        }
        if (launcher.getDeviceProfile().isVerticalBarLayout()) {
            return new TouchController[] {
                    launcher.getDragController(),
                    new LandscapeStatesTouchController(launcher),
                    new OverviewToAllAppsTouchController(launcher),
                    new LandscapeEdgeSwipeController(launcher),
                    new LauncherTaskViewcontroller(launcher)};
        } else {