Clear command queue of OverviewCommandHelper on home tap

Fixes: 194934483
Test: manual
Change-Id: Id83b341245793c38c305e6ada5581ac4e49527a7
This commit is contained in:
Tracy Zhou
2021-07-28 22:02:18 -07:00
parent bf89b27f90
commit 86bd1dce8d
3 changed files with 22 additions and 0 deletions

View File

@@ -109,6 +109,11 @@ public class OverviewCommandHelper {
MAIN_EXECUTOR.execute(() -> addCommand(cmd));
}
@UiThread
public void clearPendingCommands() {
mPendingCommands.clear();
}
private TaskView getNextTask(RecentsView view) {
final TaskView runningTaskView = view.getRunningTaskView();