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
diff --git a/quickstep/src/com/android/quickstep/views/QuickstepDragIndicator.java b/quickstep/src/com/android/quickstep/views/QuickstepDragIndicator.java
index 82ec84e..5e9cd6e 100644
--- a/quickstep/src/com/android/quickstep/views/QuickstepDragIndicator.java
+++ b/quickstep/src/com/android/quickstep/views/QuickstepDragIndicator.java
@@ -50,9 +50,7 @@
@Override
public void onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo info) {
super.onInitializeAccessibilityNodeInfo(info);
- if (isInOverview()) {
- info.setContentDescription(getContext().getString(R.string.all_apps_button_label));
- }
+ info.setContentDescription(getContext().getString(R.string.all_apps_button_label));
}
@Override
@@ -64,15 +62,9 @@
@Override
public void onClick(View view) {
- if (isInOverview()) {
- mLauncher.getUserEventDispatcher().logActionOnControl(
- Action.Touch.TAP, ControlType.ALL_APPS_BUTTON, ContainerType.TASKSWITCHER);
- 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);
- }
+ mLauncher.getUserEventDispatcher().logActionOnControl(Action.Touch.TAP,
+ ControlType.ALL_APPS_BUTTON,
+ isInOverview() ? ContainerType.TASKSWITCHER : ContainerType.WORKSPACE);
+ mLauncher.getStateManager().goToState(ALL_APPS);
}
}