mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-18 10:18:20 +00:00
Revert "Use clear-all recent tasks call"
This reverts commit 68df758665.
Reason for revert: Should be in master
Change-Id: I1a0d54c606c8cf1e52d5bdbfcd1acc6d0211ab49
This commit is contained in:
Binary file not shown.
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user