Search in sources :

Example 6 with NoButtonNavbarToOverviewTouchController

use of com.android.launcher3.uioverrides.touchcontrollers.NoButtonNavbarToOverviewTouchController in project android_packages_apps_Launcher3 by ArrowOS.

the class QuickstepLauncher method createTouchControllers.

@Override
public TouchController[] createTouchControllers() {
    Mode mode = SysUINavigationMode.getMode(this);
    ArrayList<TouchController> list = new ArrayList<>();
    list.add(getDragController());
    switch(mode) {
        case NO_BUTTON:
            list.add(new NoButtonQuickSwitchTouchController(this));
            list.add(new NavBarToHomeTouchController(this));
            list.add(new NoButtonNavbarToOverviewTouchController(this));
            break;
        case TWO_BUTTONS:
            list.add(new TwoButtonNavbarTouchController(this));
            list.add(getDeviceProfile().isVerticalBarLayout() ? new TransposedQuickSwitchTouchController(this) : new QuickSwitchTouchController(this));
            list.add(new PortraitStatesTouchController(this));
            break;
        case THREE_BUTTONS:
        default:
            list.add(new PortraitStatesTouchController(this));
    }
    if (!getDeviceProfile().isMultiWindowMode) {
        list.add(new StatusBarTouchController(this));
    }
    list.add(new LauncherTaskViewController(this));
    return list.toArray(new TouchController[list.size()]);
}
Also used : NoButtonNavbarToOverviewTouchController(com.android.launcher3.uioverrides.touchcontrollers.NoButtonNavbarToOverviewTouchController) TwoButtonNavbarTouchController(com.android.launcher3.uioverrides.touchcontrollers.TwoButtonNavbarTouchController) StatusBarTouchController(com.android.launcher3.uioverrides.touchcontrollers.StatusBarTouchController) SysUINavigationMode(com.android.quickstep.SysUINavigationMode) Mode(com.android.quickstep.SysUINavigationMode.Mode) ArrayList(java.util.ArrayList) TransposedQuickSwitchTouchController(com.android.launcher3.uioverrides.touchcontrollers.TransposedQuickSwitchTouchController) NavBarToHomeTouchController(com.android.launcher3.uioverrides.touchcontrollers.NavBarToHomeTouchController) PortraitStatesTouchController(com.android.launcher3.uioverrides.touchcontrollers.PortraitStatesTouchController) NoButtonQuickSwitchTouchController(com.android.launcher3.uioverrides.touchcontrollers.NoButtonQuickSwitchTouchController) TransposedQuickSwitchTouchController(com.android.launcher3.uioverrides.touchcontrollers.TransposedQuickSwitchTouchController) StatusBarTouchController(com.android.launcher3.uioverrides.touchcontrollers.StatusBarTouchController) NoButtonNavbarToOverviewTouchController(com.android.launcher3.uioverrides.touchcontrollers.NoButtonNavbarToOverviewTouchController) TwoButtonNavbarTouchController(com.android.launcher3.uioverrides.touchcontrollers.TwoButtonNavbarTouchController) TouchController(com.android.launcher3.util.TouchController) QuickSwitchTouchController(com.android.launcher3.uioverrides.touchcontrollers.QuickSwitchTouchController) TaskViewTouchController(com.android.launcher3.uioverrides.touchcontrollers.TaskViewTouchController) PortraitStatesTouchController(com.android.launcher3.uioverrides.touchcontrollers.PortraitStatesTouchController) NoButtonQuickSwitchTouchController(com.android.launcher3.uioverrides.touchcontrollers.NoButtonQuickSwitchTouchController) NoButtonQuickSwitchTouchController(com.android.launcher3.uioverrides.touchcontrollers.NoButtonQuickSwitchTouchController) TransposedQuickSwitchTouchController(com.android.launcher3.uioverrides.touchcontrollers.TransposedQuickSwitchTouchController) QuickSwitchTouchController(com.android.launcher3.uioverrides.touchcontrollers.QuickSwitchTouchController) NavBarToHomeTouchController(com.android.launcher3.uioverrides.touchcontrollers.NavBarToHomeTouchController)

Aggregations

NavBarToHomeTouchController (com.android.launcher3.uioverrides.touchcontrollers.NavBarToHomeTouchController)6 NoButtonNavbarToOverviewTouchController (com.android.launcher3.uioverrides.touchcontrollers.NoButtonNavbarToOverviewTouchController)6 NoButtonQuickSwitchTouchController (com.android.launcher3.uioverrides.touchcontrollers.NoButtonQuickSwitchTouchController)6 PortraitStatesTouchController (com.android.launcher3.uioverrides.touchcontrollers.PortraitStatesTouchController)6 QuickSwitchTouchController (com.android.launcher3.uioverrides.touchcontrollers.QuickSwitchTouchController)6 StatusBarTouchController (com.android.launcher3.uioverrides.touchcontrollers.StatusBarTouchController)6 TaskViewTouchController (com.android.launcher3.uioverrides.touchcontrollers.TaskViewTouchController)6 TransposedQuickSwitchTouchController (com.android.launcher3.uioverrides.touchcontrollers.TransposedQuickSwitchTouchController)6 TouchController (com.android.launcher3.util.TouchController)6 SysUINavigationMode (com.android.quickstep.SysUINavigationMode)6 Mode (com.android.quickstep.SysUINavigationMode.Mode)6 ArrayList (java.util.ArrayList)6 TwoButtonNavbarTouchController (com.android.launcher3.uioverrides.touchcontrollers.TwoButtonNavbarTouchController)5 FlingAndHoldTouchController (com.android.launcher3.uioverrides.touchcontrollers.FlingAndHoldTouchController)1 LandscapeEdgeSwipeController (com.android.launcher3.uioverrides.touchcontrollers.LandscapeEdgeSwipeController)1 OverviewToAllAppsTouchController (com.android.launcher3.uioverrides.touchcontrollers.OverviewToAllAppsTouchController)1