summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2018-08-22 21:12:56 +0000
committerWinson Chung <winsonc@google.com>2018-08-22 21:12:56 +0000
commitdbbed570949b7f41c77109c0553387a2305368bb (patch)
tree4644883d2c582e50c9e11648b784f867bdd8adb5
parent68df758665dbb6e14b13e96c79ef8886a3cdac41 (diff)
downloadandroid_packages_apps_Trebuchet-dbbed570949b7f41c77109c0553387a2305368bb.tar.gz
android_packages_apps_Trebuchet-dbbed570949b7f41c77109c0553387a2305368bb.tar.bz2
android_packages_apps_Trebuchet-dbbed570949b7f41c77109c0553387a2305368bb.zip
Revert "Use clear-all recent tasks call"
This reverts commit 68df758665dbb6e14b13e96c79ef8886a3cdac41. Reason for revert: Should be in master Change-Id: I1a0d54c606c8cf1e52d5bdbfcd1acc6d0211ab49
-rw-r--r--quickstep/libs/sysui_shared.jarbin136447 -> 133150 bytes
-rw-r--r--quickstep/src/com/android/quickstep/views/RecentsView.java6
2 files changed, 4 insertions, 2 deletions
diff --git a/quickstep/libs/sysui_shared.jar b/quickstep/libs/sysui_shared.jar
index 9d91d7ecc..27de1e907 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 d0b7622e7..e18708b19 100644
--- a/quickstep/src/com/android/quickstep/views/RecentsView.java
+++ b/quickstep/src/com/android/quickstep/views/RecentsView.java
@@ -935,8 +935,10 @@ public abstract class RecentsView<T extends BaseActivity> extends PagedView impl
mPendingAnimation = pendingAnimation;
mPendingAnimation.addEndListener((onEndListener) -> {
if (onEndListener.isSuccess) {
- // Remove all the task views now
- ActivityManagerWrapper.getInstance().removeAllRecentTasks();
+ int taskViewCount = getTaskViewCount();
+ for (int i = 0; i < taskViewCount; i++) {
+ removeTask(getTaskViewAt(i).getTask(), -1, onEndListener, false);
+ }
removeAllViews();
onAllTasksRemoved();
}