Merge "Default to requesting command type TOGGLE for OverviewCommandHelper" into sc-v2-dev am: 70565c5e7d

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15017522

Change-Id: I008bab1a7f4b850ee1a3dcf8cdb5b4d700790f8f
This commit is contained in:
Vinit Nayak
2021-06-18 23:03:26 +00:00
committed by Automerger Merge Worker
2 changed files with 1 additions and 9 deletions
@@ -94,10 +94,7 @@ public class TaskbarNavButtonController {
}
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() {
@@ -136,11 +136,6 @@ public class OverviewCommandHelper {
}
}
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