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

Commit e1ad8e8c authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Opening all apps from all drag indicators" into ub-launcher3-master

parents e2ec732a fe48b7a5
Loading
Loading
Loading
Loading
+5 −13
Original line number Diff line number Diff line
@@ -50,10 +50,8 @@ public class QuickstepDragIndicator extends LauncherDragIndicator {
    @Override
    public void onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo info) {
        super.onInitializeAccessibilityNodeInfo(info);
        if (isInOverview()) {
        info.setContentDescription(getContext().getString(R.string.all_apps_button_label));
    }
    }

    @Override
    protected void initCustomActions(AccessibilityNodeInfo info) {
@@ -64,15 +62,9 @@ public class QuickstepDragIndicator extends LauncherDragIndicator {

    @Override
    public void onClick(View view) {
        if (isInOverview()) {
            mLauncher.getUserEventDispatcher().logActionOnControl(
                    Action.Touch.TAP, ControlType.ALL_APPS_BUTTON, ContainerType.TASKSWITCHER);
        mLauncher.getUserEventDispatcher().logActionOnControl(Action.Touch.TAP,
                ControlType.ALL_APPS_BUTTON,
                isInOverview() ? ContainerType.TASKSWITCHER : ContainerType.WORKSPACE);
        mLauncher.getStateManager().goToState(ALL_APPS);
            super.onClick(view);
        } else {
            mLauncher.getUserEventDispatcher().logActionOnControl(
                    Action.Touch.TAP, ControlType.ALL_APPS_BUTTON, ContainerType.WORKSPACE);
            mLauncher.getStateManager().goToState(OVERVIEW);
        }
    }
}