Default to requesting command type TOGGLE for OverviewCommandHelper

Parity with how sysui switches between apps for double
tapping recents button.

Fixes: 190660016
Test: Double tap to switch works, tapping fast also works
Change-Id: If6dda377d8accf564f3385e78c6721c677310361
This commit is contained in:
Vinit Nayak
2021-06-17 12:37:02 -07:00
parent 47f8a1c3ef
commit e91e4f0328
2 changed files with 1 additions and 9 deletions

View File

@@ -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() {