commit | 68df758665dbb6e14b13e96c79ef8886a3cdac41 | [log] [tgz] |
---|---|---|
author | Winson Chung <winsonc@google.com> | Mon Jul 30 15:58:01 2018 -0700 |
committer | Winson Chung <winsonc@google.com> | Fri Aug 03 11:15:33 2018 -0700 |
tree | 0c9ea76d368ca51729e15d4c7563c45782b8f2a3 | |
parent | fc254baf881f50abf9bcdf78a30fc175762385d4 [diff] |
Use clear-all recent tasks call Bug: 80471073 Change-Id: Ibce9d521ba8d3903ff1f2fbdabfd391b15630bd7
diff --git a/quickstep/libs/sysui_shared.jar b/quickstep/libs/sysui_shared.jar index 27de1e9..9d91d7e 100644 --- a/quickstep/libs/sysui_shared.jar +++ b/quickstep/libs/sysui_shared.jar Binary files differ
diff --git a/quickstep/src/com/android/quickstep/views/RecentsView.java b/quickstep/src/com/android/quickstep/views/RecentsView.java index e18708b..d0b7622 100644 --- a/quickstep/src/com/android/quickstep/views/RecentsView.java +++ b/quickstep/src/com/android/quickstep/views/RecentsView.java
@@ -935,10 +935,8 @@ mPendingAnimation = pendingAnimation; mPendingAnimation.addEndListener((onEndListener) -> { if (onEndListener.isSuccess) { - int taskViewCount = getTaskViewCount(); - for (int i = 0; i < taskViewCount; i++) { - removeTask(getTaskViewAt(i).getTask(), -1, onEndListener, false); - } + // Remove all the task views now + ActivityManagerWrapper.getInstance().removeAllRecentTasks(); removeAllViews(); onAllTasksRemoved(); }