commit | dcd9a0cdd6b5352f6f76a9b34f7f1f52710a7acb | [log] [tgz] |
---|---|---|
author | Vinit Nayak <peanutbutter@google.com> | Fri Jun 18 23:20:17 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Fri Jun 18 23:20:17 2021 +0000 |
tree | 69e1d3abbf1bfb09e3b0d491acdc1916ba5b5ca9 | |
parent | 4efc3697046a875bb1829d977599916bb22e0576 [diff] | |
parent | 0d50bfacb91eefe5b803f2499aa1b693744e430f [diff] |
Merge "Default to requesting command type TOGGLE for OverviewCommandHelper" into sc-v2-dev am: 70565c5e7d am: 0d50bfacb9 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15017522 Change-Id: I3e010dd812b4b8cc2a3d23081f2fc5328401ef88
diff --git a/quickstep/src/com/android/launcher3/taskbar/TaskbarNavButtonController.java b/quickstep/src/com/android/launcher3/taskbar/TaskbarNavButtonController.java index 8549ca2..8b0f426 100644 --- a/quickstep/src/com/android/launcher3/taskbar/TaskbarNavButtonController.java +++ b/quickstep/src/com/android/launcher3/taskbar/TaskbarNavButtonController.java
@@ -94,10 +94,7 @@ } private void navigateToOverview() { - int commandType = mService.getOverviewCommandHelper().isOverviewVisible() ? - OverviewCommandHelper.TYPE_TOGGLE : - OverviewCommandHelper.TYPE_SHOW; - mService.getOverviewCommandHelper().addCommand(commandType); + mService.getOverviewCommandHelper().addCommand(OverviewCommandHelper.TYPE_TOGGLE); } private void executeBack() {
diff --git a/quickstep/src/com/android/quickstep/OverviewCommandHelper.java b/quickstep/src/com/android/quickstep/OverviewCommandHelper.java index 728fec2..2beef0a 100644 --- a/quickstep/src/com/android/quickstep/OverviewCommandHelper.java +++ b/quickstep/src/com/android/quickstep/OverviewCommandHelper.java
@@ -136,11 +136,6 @@ } } - public boolean isOverviewVisible() { - BaseActivityInterface activityInterface = - mOverviewComponentObserver.getActivityInterface(); - return activityInterface.getVisibleRecentsView() != null; - } /** * Executes the task and returns true if next task can be executed. If false, then the next * task is deferred until {@link #scheduleNextTask} is called