diff options
Diffstat (limited to 'quickstep/src/com/android/launcher3/uioverrides/UiFactory.java')
-rw-r--r-- | quickstep/src/com/android/launcher3/uioverrides/UiFactory.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/quickstep/src/com/android/launcher3/uioverrides/UiFactory.java b/quickstep/src/com/android/launcher3/uioverrides/UiFactory.java index ff9d601ef..bc9069a9a 100644 --- a/quickstep/src/com/android/launcher3/uioverrides/UiFactory.java +++ b/quickstep/src/com/android/launcher3/uioverrides/UiFactory.java @@ -60,15 +60,14 @@ public class UiFactory { WindowManagerWrapper.getInstance().setShelfHeight(visible != 0, height); public static TouchController[] createTouchControllers(Launcher launcher) { - boolean swipeUpEnabled = OverviewInteractionState.INSTANCE.get(launcher) - .isSwipeUpGestureEnabled(); ArrayList<TouchController> list = new ArrayList<>(); list.add(launcher.getDragController()); - if (!swipeUpEnabled || launcher.getDeviceProfile().isVerticalBarLayout()) { - list.add(new OverviewToAllAppsTouchController(launcher)); + TouchController overviewToAllAppsController = + RecentsUiFactory.createOverviewToAllAppsTouchController(launcher); + if (overviewToAllAppsController != null) { + list.add(overviewToAllAppsController); } - if (launcher.getDeviceProfile().isVerticalBarLayout()) { list.add(new LandscapeEdgeSwipeController(launcher)); } else { |