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

Commit fe48b7a5 authored by Vadim Tryshev's avatar Vadim Tryshev
Browse files

Opening all apps from all drag indicators

Both the one on Home and the one on Overview open app apps.

Bug: 72500733
Test: Manual
Change-Id: I524937a2baed71f1dafd92add06657ae13d71ca1
parent e6bbefb7
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);
        }
    }
}