Search in sources :

Example 1 with SplitSelectSystemShortcut

use of com.android.quickstep.TaskShortcutFactory.SplitSelectSystemShortcut in project android_packages_apps_Launcher3 by crdroidandroid.

the class TaskOverlayFactory method addSplitOptions.

public static void addSplitOptions(List<SystemShortcut> outShortcuts, BaseDraggingActivity activity, TaskView taskView, DeviceProfile deviceProfile) {
    PagedOrientationHandler orientationHandler = taskView.getRecentsView().getPagedOrientationHandler();
    List<SplitPositionOption> positions = orientationHandler.getSplitPositionOptions(deviceProfile);
    for (SplitPositionOption option : positions) {
        outShortcuts.add(new SplitSelectSystemShortcut(activity, taskView, option));
    }
}
Also used : SplitPositionOption(com.android.launcher3.util.SplitConfigurationOptions.SplitPositionOption) PagedOrientationHandler(com.android.launcher3.touch.PagedOrientationHandler) SplitSelectSystemShortcut(com.android.quickstep.TaskShortcutFactory.SplitSelectSystemShortcut)

Aggregations

PagedOrientationHandler (com.android.launcher3.touch.PagedOrientationHandler)1 SplitPositionOption (com.android.launcher3.util.SplitConfigurationOptions.SplitPositionOption)1 SplitSelectSystemShortcut (com.android.quickstep.TaskShortcutFactory.SplitSelectSystemShortcut)1